asterisk/asterisk.spec

changeset 411
e4385d1fd937
parent 405
375c04ff28ba
child 414
fd611cde817f
equal deleted inserted replaced
13:d6eb9d227138 14:9c39edde9619
49 Distribution: OpenPKG Community 49 Distribution: OpenPKG Community
50 Class: BASE 50 Class: BASE
51 Group: VoIP 51 Group: VoIP
52 License: GPL 52 License: GPL
53 Version: %{V_opkg} 53 Version: %{V_opkg}
54 Release: 20120316 54 Release: 20120320
55 55
56 # package options 56 # package options
57 %option with_dahdi no 57 %option with_dahdi no
58 %option with_capi no 58 %option with_capi no
59 %option with_ogg no 59 %option with_ogg no
111 Patch2: asterisk.patch.proxymwi 111 Patch2: asterisk.patch.proxymwi
112 112
113 # build information 113 # build information
114 Prefix: %{l_prefix} 114 Prefix: %{l_prefix}
115 BuildRoot: %{l_buildroot} 115 BuildRoot: %{l_buildroot}
116 BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep, pkgconfig 116 BuildPreReq: OpenPKG, openpkg >= 20060823, bison, gcc, make, grep, pkgconfig
117 PreReq: OpenPKG, openpkg >= 20040130, MTA 117 PreReq: OpenPKG, openpkg >= 20060823, MTA
118 BuildPreReq: zlib, curl, openssl, ncurses, speex, sox, popt, gmime, libxml 118 BuildPreReq: zlib, curl, openssl, ncurses, speex, sox, popt, gmime, libxml
119 PreReq: zlib, curl, openssl, ncurses, speex, sox, popt, gmime, libxml 119 PreReq: zlib, curl, openssl, ncurses, speex, sox, popt, gmime, libxml
120 %if "%{with_ogg}" == "yes" 120 %if "%{with_ogg}" == "yes"
121 BuildPreReq: vorbis-libs 121 BuildPreReq: vorbis-libs
122 PreReq: vorbis-libs 122 PreReq: vorbis-libs
360 -e 's;\(CONFIG_DIR=\).*;\1%{l_prefix}/etc/asterisk;g' \ 360 -e 's;\(CONFIG_DIR=\).*;\1%{l_prefix}/etc/asterisk;g' \
361 -e 's;\(\$(MODULES_DIR)\);$(DESTDIR)\1;g' \ 361 -e 's;\(\$(MODULES_DIR)\);$(DESTDIR)\1;g' \
362 -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \ 362 -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \
363 -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \ 363 -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \
364 chan_capi-%{V_chan_capi}/Makefile 364 chan_capi-%{V_chan_capi}/Makefile
365 %{l_shtool} subst \
366 -e 's;if.*SSL_CTX_use_certificate_file.*;if (SSL_CTX_use_certificate_chain_file(cfg->ssl_ctx, cfg->certfile) == 0) {;' \
367 main/tcptls.c
365 368
366 %build 369 %build
367 # sanity check operating system 370 # sanity check operating system
368 %if "%{with_dahdi}" == "yes" 371 %if "%{with_dahdi}" == "yes"
369 dahdi_prefix="" 372 dahdi_prefix=""

mercurial