opensips/opensips.spec

changeset 395
41738a0e98d1
parent 390
29651fde8b05
child 397
c98ae03f4266
equal deleted inserted replaced
5:2522198a3fb1 6:52e56c387df5
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: PLUS 36 Class: PLUS
37 Group: VoIP 37 Group: VoIP
38 License: GPL 38 License: GPL
39 Version: %{V_major}.%{V_minor} 39 Version: %{V_major}.%{V_minor}
40 Release: 20110200 40 Release: 20111128
41 41
42 # package options 42 # package options
43 %option with_cons yes 43 %option with_cons yes
44 %option with_fsl yes 44 %option with_fsl yes
45 %option with_ssl yes 45 %option with_ssl yes
203 %{l_shtool} subst \ 203 %{l_shtool} subst \
204 %if "%{with_dbgmem}" == "yes" 204 %if "%{with_dbgmem}" == "yes"
205 -e 's;\(-DF_MALLOC\);#\1;' \ 205 -e 's;\(-DF_MALLOC\);#\1;' \
206 -e 's;#\(-DDBG_QM_MALLOC\);\1;' \ 206 -e 's;#\(-DDBG_QM_MALLOC\);\1;' \
207 %endif 207 %endif
208 -e 's;\(#define PKG_MEM_POOL_SIZE\) \(1024\*1024\);\1 8*\2;' \ 208 -e 's;\(#define PKG_MEM_POOL_SIZE\) \(1024\*1024\);\1 4*\2;' \
209 Makefile.defs \ 209 Makefile.defs \
210 config.h 210 config.h
211 %{l_shtool} subst \ 211 %{l_shtool} subst \
212 %if "%{with_fsl}" == "yes" 212 %if "%{with_fsl}" == "yes"
213 -e 's;@fslldflags@;-L$(prefix)/lib;g' \ 213 -e 's;@fslldflags@;-L$(prefix)/lib;g' \
255 %{l_shtool} subst \ 255 %{l_shtool} subst \
256 -e 's;\(DB_PATH="\)[^"][^"]*;\1%{l_prefix}/var/opensips/db;' \ 256 -e 's;\(DB_PATH="\)[^"][^"]*;\1%{l_prefix}/var/opensips/db;' \
257 scripts/osipsconsolerc \ 257 scripts/osipsconsolerc \
258 scripts/opensipsctlrc 258 scripts/opensipsctlrc
259 %{l_shtool} subst \ 259 %{l_shtool} subst \
260 -e 's;=/var/run/\(opensips.pid\);=%{l_prefix}/var/opensips/\1;g' \
261 -e 's;/var/run/\(opensips.pid\);%{l_prefix}/var/opensips/\1;g' \ 260 -e 's;/var/run/\(opensips.pid\);%{l_prefix}/var/opensips/\1;g' \
262 -e 's;\(my \$fifo_reply_path\) = "/tmp/";\1 = "%{l_prefix}/var/opensips/";' \ 261 -e 's;\(my \$fifo_reply_path\) = "/tmp/";\1 = "%{l_prefix}/var/opensips/";' \
263 -e 's;\(my \$HISTORY_FILE\) = "/tmp/osipsconsole_history";\1 = "%{l_prefix}/var/opensips/osipsconsole_history";' \ 262 -e 's;\(my \$HISTORY_FILE\) = "/tmp/osipsconsole_history";\1 = "%{l_prefix}/var/opensips/osipsconsole_history";' \
264 scripts/opensipsctl \ 263 scripts/opensipsctl \
265 scripts/opensipsctlrc \ 264 scripts/opensipsctlrc \

mercurial