Lines 14-20
Link Here
|
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
15 |
KEYWORDS="~amd64 ~x86" |
16 |
|
16 |
|
17 |
IUSE="alsa +caps curl dahdi debug freetds iconv jabber ldap keepsrc misdn newt nosamples oss postgres radius snmp span speex ssl sqlite static vorbis" |
17 |
IUSE="imap alsa +caps curl dahdi debug freetds iconv jabber ldap keepsrc misdn newt nosamples oss postgres radius snmp span speex ssl sqlite static vorbis" |
18 |
|
18 |
|
19 |
RDEPEND="sys-libs/ncurses |
19 |
RDEPEND="sys-libs/ncurses |
20 |
dev-libs/popt |
20 |
dev-libs/popt |
Lines 40-45
Link Here
|
40 |
vorbis? ( media-libs/libvorbis )" |
40 |
vorbis? ( media-libs/libvorbis )" |
41 |
|
41 |
|
42 |
DEPEND="${RDEPEND} |
42 |
DEPEND="${RDEPEND} |
|
|
43 |
imap? ( net-libs/c-client ) |
43 |
!<net-misc/asterisk-addons-1.6 |
44 |
!<net-misc/asterisk-addons-1.6 |
44 |
!net-misc/asterisk-chan_unistim |
45 |
!net-misc/asterisk-chan_unistim |
45 |
!net-misc/zaptel" |
46 |
!net-misc/zaptel" |
Lines 74-79
Link Here
|
74 |
|
75 |
|
75 |
src_unpack() { |
76 |
src_unpack() { |
76 |
unpack ${A} |
77 |
unpack ${A} |
|
|
78 |
|
79 |
if [ -z "$( use imap )"]; then |
80 |
|
81 |
# this is the trick for changing the makeopts |
82 |
# that is recommended by digium folks, I think: |
83 |
# it overrides, or supplements /etc/asterisk.makeopts ~/asterisk.makeopts |
84 |
# -- not sure which, or if anyone uses those options already |
85 |
|
86 |
echo MENUSELECT_OPTS_app_voicemail=IMAP_STORAGE > "${S}/user_makeopts" |
87 |
|
88 |
fi; |
89 |
|
77 |
cd "${S}" |
90 |
cd "${S}" |
78 |
|
91 |
|
79 |
# |
92 |
# |
Lines 101-106
Link Here
|
101 |
# |
114 |
# |
102 |
epatch "${FILESDIR}"/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch |
115 |
epatch "${FILESDIR}"/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch |
103 |
|
116 |
|
|
|
117 |
# |
118 |
#allow to find system libs for imap |
119 |
# epatch "${FILESDIR}"/1.6.2/asterisk-1.6.2-configure-imap.patch |
120 |
sed -ie 's/imap_libs="-lc-client"/imap_libs="-lc-client -lssl -lpam"/'\ |
121 |
configure.ac |
122 |
|
104 |
AT_M4DIR=autoconf eautoreconf |
123 |
AT_M4DIR=autoconf eautoreconf |
105 |
|
124 |
|
106 |
# parse modules list |
125 |
# parse modules list |
Lines 134-146
Link Here
|
134 |
src_compile() { |
153 |
src_compile() { |
135 |
# |
154 |
# |
136 |
# start with configure |
155 |
# start with configure |
137 |
# |
156 |
# |
138 |
econf \ |
157 |
econf \ |
139 |
--libdir="/usr/$(get_libdir)" \ |
158 |
--libdir="/usr/$(get_libdir)" \ |
140 |
--localstatedir="/var" \ |
159 |
--localstatedir="/var" \ |
141 |
--with-gsm=internal \ |
160 |
--with-gsm=internal \ |
142 |
--with-popt \ |
161 |
--with-popt \ |
143 |
--with-z \ |
162 |
--with-z \ |
|
|
163 |
$(use_with imap) \ |
144 |
$(use_with alsa asound) \ |
164 |
$(use_with alsa asound) \ |
145 |
$(use_with caps cap) \ |
165 |
$(use_with caps cap) \ |
146 |
$(use_with curl) \ |
166 |
$(use_with curl) \ |
Lines 179-187
Link Here
|
179 |
### |
199 |
### |
180 |
# run menuselect |
200 |
# run menuselect |
181 |
|
201 |
|
182 |
emake menuselect.makeopts || die "emake menuselect.makeopts failed" |
202 |
if [ -z "$( use imap )"]; then |
183 |
|
203 |
|
184 |
### |
204 |
emake USER_MAKEOPTS="${S}/user_makeopts" menuselect.makeopts || die \ |
|
|
205 |
"emake menuselect.makeopts failed" |
206 |
|
207 |
else emake menuselect.makeopts || die "emake menuselect.makeopts failed" |
208 |
|
209 |
fi |
210 |
### |
185 |
# get list of modules with failed dependencies |
211 |
# get list of modules with failed dependencies |
186 |
|
212 |
|
187 |
failed_list="$(awk -F= '/^MENUSELECT_DEPSFAILED=/{ print $3 }' menuselect.makeopts)" |
213 |
failed_list="$(awk -F= '/^MENUSELECT_DEPSFAILED=/{ print $3 }' menuselect.makeopts)" |
Lines 217-222
Link Here
|
217 |
menuselect.makeopts || die "failed to set list of ${category} applications" |
243 |
menuselect.makeopts || die "failed to set list of ${category} applications" |
218 |
fi |
244 |
fi |
219 |
done |
245 |
done |
|
|
246 |
fi |
247 |
|
248 |
if [ -z "$( use imap )"]; then |
249 |
|
250 |
emake USER_MAKEOPTS="${S}/user_makeopts" menuselect.makeopts || die \ |
251 |
"emake menuselect.makeopts failed" |
220 |
fi |
252 |
fi |
221 |
|
253 |
|
222 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |
254 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |