Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jan 2011 18:20:06 GMT
From:      "Richard E. Neese" <r.neese@gmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/154332: pkg_add fix freeswitch-core
Message-ID:  <201101311820.p0VIK6wg059168@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/154332; it has been noted by GNATS.

From: "Richard E. Neese" <r.neese@gmail.com>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/154332: pkg_add fix freeswitch-core
Date: Mon, 31 Jan 2011 13:15:06 -0500

 This is a multi-part message in MIME format.
 
 --Multipart=_Mon__31_Jan_2011_13_15_06_-0500_86ZZPxlp6zp/xVMJ
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 On Thu, 27 Jan 2011 16:00:15 GMT
 FreeBSD-gnats-submit@FreeBSD.org wrote:
 
 > Thank you very much for your problem report.
 > It has the internal identification `ports/154332'.
 > The individual assigned to look at your
 > report is: freebsd-ports-bugs. 
 > 
 > You can access the state of your problem report at any time
 > via this link:
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=154332
 > 
 > >Category:       ports
 > >Responsible:    freebsd-ports-bugs
 > >Synopsis:       pkg_add fix freeswitch-core
 > >Arrival-Date:   Thu Jan 27 16:00:15 UTC 2011
 
 
 -- 
 Richard E. Neese <r.neese@gmail.com>
 
 --Multipart=_Mon__31_Jan_2011_13_15_06_-0500_86ZZPxlp6zp/xVMJ
 Content-Type: text/plain;
  name="freeswitch-core.diff"
 Content-Disposition: attachment;
  filename="freeswitch-core.diff"
 Content-Transfer-Encoding: 7bit
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/net/freeswitch-core/Makefile,v
 retrieving revision 1.18
 diff -u -r1.18 Makefile
 --- Makefile	24 Dec 2010 15:15:58 -0000	1.18
 +++ Makefile	31 Jan 2011 17:58:36 -0000
 @@ -79,16 +79,16 @@
  		MODTTSCMDLINE	"Enable mod_tts_commandline" off \
  		MODPOCKETSPHINX	"Enable mod_pockectsphinx (voice control)" on \
  		MODCIDLOOKUP	"Enable mod_cidlookup" on \
 -		MODDPDIRECTORY	"Enable mod_dialplan_directory" off \
 +		MODDPDIRECTORY	"Enable mod_dialplan_directory" on \
  		MODDIRECTORY	"Enable mod_directory" on \
   		MODDINGALING	"Enable mod_dingaling(google talk)" on \
  		MODEASYROUTE	"Enable mod_easyroute(routing tool)" on \
  		MODERLANGEVENT  "Enable mod_erlang_event (Call Center Dist)" off \
 -		MODFAX		"Enable mod_fax" on \
 +		MODSPANDSP	"Enable mod_spandsp" on \
  		MODLCR		"Enable mod_lcr (least cost routing)" on \
  		MODSOUNDTOUCH	"Enable mod_soundtouch" on \
  		MODRSS		"Enable mod_rss (rss feed reader)" on \
 -		MODSNOM		"Enable mod_snom (snom control)" off \
 +		MODSNOM		"Enable mod_snom (snom control)" on \
  		MODAVMD		"Enable mod_avmd (Adavced v-mail detection)" on \
  		MODVMD		"Enable mod_vmd (voice mail detection)" on \
  		MODSPY		"Enable mod_spy" on \
 @@ -96,7 +96,7 @@
  		MODCELT		"Enable mod_celt (celt 48k  codec)" on \
  		MODSILK		"Enable mod_silk (New Silk Codec)" on \
  		MODCODEC2	"Enable mod_codec2 (new codec)" on \
 -		MODFREETDM	"Enable mod_freetdm dahdi support (Testing)" off \
 +		MODFREETDM	"Enable mod_freetdm dahdi support (Testing)" on \
  		MODSKINNY	"Enable mod_skinny Skinny Support" on \
  		MODMEMCACHE	"Enable mod_memcache" on \
  		MODMULTICAST	"Enable mod_event_multicast" on \
 @@ -104,10 +104,10 @@
  		MODPORTAUDIO    "Enable mod_portaudio" on \
  		MODPASTREAM	"Enable mod_portaudio_stream (new)" on \
  		MODSHELLSTREAM	"Enable mod_shell_stream (new)" on \
 -		MODPERL		"Enable mod_perl (perl support)" off \
 -		MODPYTHON	"Enable mod_python (python)" off \
 -		MODCURL		"Enable mod_curl" off \
 -		MODXMLCURL	"Enable mod_xml_curl" off \
 +		MODPERL		"Enable mod_perl (perl support)" on \
 +		MODPYTHON	"Enable mod_python (python)" on \
 +		MODCURL		"Enable mod_curl" on \
 +		MODXMLCURL	"Enable mod_xml_curl" on \
  		MODDISTRIBUTOR	"Enable mod_distributor " off \
  		MODSNAPSHOT	"Enable mod_snapshot (testing)" off \
  		MODSAYDE	"Enable mod_say_de (German support)" off \
 @@ -134,11 +134,13 @@
  CFLAGS+=	-fPIC
  .endif
  
 -.for i in MODFLITE MODPOCKETSPHINX MODCIDLOOKUP MODDPDIRECTORY MODEASYROUTE MODLCR MODSOUNDTOUCH \
 -	MODRSS MODSNOM MODAVMD MODVMD MODSPY MODAMRWB MODCELT MODMULTICAST MODPORTAUDIO MODCURL MODXMLCURL \
 -	MODSAYDE MODSAYEN MODSAYES MODSAYFR MODSAYHU MODSAYIT MODSAYNL MODSAYRU MODSAYTH MODSAYZH \
 -	MODNIBBLEBILL MODDINGALING MODDIRECTORY MODMEMCACHE MODPASTREAM MODSHELLSTREAM \
 -	MODSILK MODUNIMRCP MODTTSCMDLINE MODDISTRIBUTOR MODSNAPSHOT MODSKINNY EXTENSIONS MODCALLCENTER MODCODEC2
 +.for i in MODFLITE MODPOCKETSPHINX MODCIDLOOKUP MODDPDIRECTORY MODEASYROUTE MODLCR \
 +	MODSOUNDTOUCH MODRSS MODSNOM MODAVMD MODVMD MODSPY MODAMRWB MODCELT \
 +	MODMULTICAST MODPORTAUDIO MODCURL MODXMLCURL MODSAYDE MODSAYEN MODSAYES \
 +	MODSAYFR MODSAYHU MODSAYIT MODSAYNL MODSAYRU MODSAYTH MODSAYZH MODNIBBLEBILL \
 +	MODDINGALING MODDIRECTORY MODMEMCACHE MODPASTREAM MODSHELLSTREAM MODSILK \
 +	MODUNIMRCP MODTTSCMDLINE MODDISTRIBUTOR MODSNAPSHOT MODSKINNY EXTENSIONS \
 +	MODCALLCENTER MODCODEC2
  .if !defined(WITH_${i})
  PLIST_SUB+=	WITH_${i}="@comment "
  .else
 @@ -175,10 +177,10 @@
  		db:${PORTSDIR}/databases/db42
  .endif
  
 -.if !defined(WITH_MODFAX)
 -PLIST_SUB+=	WITH_MODFAX="@comment "
 +.if !defined(WITH_MODSPANDSP)
 +PLIST_SUB+=	WITH_MODSPANDSP="@comment "
  .else
 -PLIST_SUB+=	WITH_MODFAX=""
 +PLIST_SUB+=	WITH_MODSPANDSP=""
  LIB_DEPENDS+=	jpeg:${PORTSDIR}/graphics/jpeg
  .endif
  
 @@ -221,7 +223,7 @@
  .if defined(WITH_MODTTSCMDLINE)
  	@${REINPLACE_CMD} -e 's|#asr_tts/mod_tts_commandline|asr_tts/mod_tts_commandline|g' ${WRKSRC}/modules.conf
  .endif
 -.for i in mod_cidlookup mod_easyroute mod_fax mod_lcr mod_soundtouch mod_rss mod_snom \
 +.for i in mod_cidlookup mod_easyroute mod_lcr mod_soundtouch mod_rss mod_snom \
  	mod_vmd mod_avmd mod_spy mod_curl mod_nibblebill mod_memcache mod_directory mod_distributor \
  	mod_snapshot mod_callcenter
  .if defined(WITH_${i:C/_//g:U})
 @@ -284,17 +286,16 @@
  	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf/directory/default
  .endif
  	@${MKDIR} ${PREFIX}/share/${BASE_PORTNAME}/sounds
 +	@for i in $$(${FIND} ${PREFIX}/etc/${BASE_PORTNAME}/conf/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/share/${BASE_PORTNAME}
 +	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/include/${BASE_PORTNAME}
 +	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/lib/${BASE_PORTNAME}
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/db/${BASE_PORTNAME}
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/log/${BASE_PORTNAME}
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/${BASE_PORTNAME}
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/run/${BASE_PORTNAME}
  	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/spool/${BASE_PORTNAME}
 -	@for i in $$(${FIND} ${PREFIX}/etc/${BASE_PORTNAME}/conf/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done
 -	@${CHMOD} -R 775 ${PREFIX}/etc/${BASE_PORTNAME}/conf
 -	@${CHMOD} -R 775 ${VARBASE}/log/${BASE_PORTNAME}
 -	@${CHMOD} -R 775 ${VARBASE}/${BASE_PORTNAME}
  	@${ECHO_MSG} "This port chown -R various directories ${FREESWITCH_USER}:${FREESWITCH_GROUP} "
  	@${ECHO_MSG} "this is for port security . in the event something should stop working."
  	@${ECHO_MSG} "Please take the time to check chownership of the dir's"
 Index: pkg-plist
 ===================================================================
 RCS file: /home/ncvs/ports/net/freeswitch-core/pkg-plist,v
 retrieving revision 1.6
 diff -u -r1.6 pkg-plist
 --- pkg-plist	24 Dec 2010 15:15:58 -0000	1.6
 +++ pkg-plist	31 Jan 2011 17:58:36 -0000
 @@ -3,14 +3,13 @@
  bin/fs_cli
  bin/fs_ivrd
  bin/fsxs
 -bin/fs_encode
  bin/gentls_cert
 -bin/tone2wav
  etc/freeswitch/conf/autoload_configs/acl.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/alsa.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/callcenter.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/cdr_csv.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/cdr_pg_csv.conf.xml.sample
 +etc/freeswitch/conf/autoload_configs/cdr_sqlite.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/cidlookup.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/conference.conf.xml.sample
  etc/freeswitch/conf/autoload_configs/console.conf.xml.sample
 @@ -75,7 +74,6 @@
  etc/freeswitch/conf/dialplan/skinny-patterns/90-External.xml.sample
  etc/freeswitch/conf/dialplan/skinny-patterns/99-Default_Drop.xml.sample
  etc/freeswitch/conf/directory/default.xml.sample
 -etc/freeswitch/conf/mime.types.sample
  %%WITH_EXTENSIONS%%etc/freeswitch/conf/directory/default/1000.xml.sample
  %%WITH_EXTENSIONS%%etc/freeswitch/conf/directory/default/1001.xml.sample
  %%WITH_EXTENSIONS%%etc/freeswitch/conf/directory/default/1002.xml.sample
 @@ -130,7 +128,7 @@
  etc/freeswitch/conf/lang/ru/vm/sounds.xml.sample
  etc/freeswitch/conf/lang/ru/vm/tts.xml.sample
  %%WITH_MODFREETDM%%etc/freeswitch/conf/m3ua.conf.sample
 -%%WITH_MODFREETDM%%etc/freeswitch/conf/mime.types.sample
 +etc/freeswitch/conf/mime.types.sample
  etc/freeswitch/conf/mrcp_profiles/loquendo-7-mrcp-v2.xml.sample
  etc/freeswitch/conf/mrcp_profiles/nuance-1.0.0-mrcp-v1.xml.sample
  etc/freeswitch/conf/mrcp_profiles/nuance-5.0-mrcp-v1.xml.sample
 @@ -152,7 +150,7 @@
  %%WITH_MODFREETDM%%etc/freeswitch/conf/wanpipe.conf.sample
  etc/freeswitch/conf/web-vm.tpl.sample
  %%WITH_MODFREETDM%%etc/freeswitch/conf/zt.conf.sample
 -@exec for i in $(find %D/etc/freeswitch/conf/ -type f -name *.sample); do if [ ! -f ${i%.sample} ]; then cp $i ${i%.sample}; fi; done
 +@exec for i in $(find %D/etc/freeswitch/conf/ -type f -name *.sample); do if [ ! -f ${i%%.sample} ]; then cp $i ${i%%.sample}; fi; done
  %%WITH_MODPOCKETSPHINX%%etc/freeswitch/grammar/default.dic
  %%WITH_MODPOCKETSPHINX%%etc/freeswitch/grammar/model/communicator/COPYING
  %%WITH_MODPOCKETSPHINX%%etc/freeswitch/grammar/model/communicator/feat.params
 @@ -259,6 +257,10 @@
  %%WITH_MODCALLCENTER%%lib/freeswitch/mod/mod_callcenter.so
  lib/freeswitch/mod/mod_cdr_csv.la
  lib/freeswitch/mod/mod_cdr_csv.so
 +%%WITH_MODCDRPGCSV%%lib/freeswitch/mod/mod_cdr_pg_csv.la
 +%%WITH_MODCDRPGCSV%%lib/freeswitch/mod/mod_cdr_pg_csv.so
 +lib/freeswitch/mod/mod_cdr_sqlite.la
 +lib/freeswitch/mod/mod_cdr_sqlite.so
  %%WITH_MODCELT%%lib/freeswitch/mod/mod_celt.la
  %%WITH_MODCELT%%lib/freeswitch/mod/mod_celt.so
  %%WITH_MODCIDLOOKUP%%lib/freeswitch/mod/mod_cidlookup.la
 @@ -313,6 +315,8 @@
  %%WITH_MODFLITE%%lib/freeswitch/mod/mod_flite.so
  %%WITH_MODFREETDM%%lib/freeswitch/mod/mod_freetdm.la
  %%WITH_MODFREETDM%%lib/freeswitch/mod/mod_freetdm.so
 +%%WITH_MODFSK%%lib/freeswitch/mod/mod_fsk.la
 +%%WITH_MODFSK%%lib/freeswitch/mod/mod_fsk.so
  lib/freeswitch/mod/mod_fsv.la
  lib/freeswitch/mod/mod_fsv.so
  lib/freeswitch/mod/mod_g723_1.la
 @@ -351,7 +355,6 @@
  %%WITH_MODPASTREAM%%lib/freeswitch/mod/mod_portaudio_stream.so
  %%WITH_MODPYTHON%%lib/freeswitch/mod/mod_python.la
  %%WITH_MODPYTHON%%lib/freeswitch/mod/mod_python.so
 -%%WITH_MODPYTHON%%%%PYTHON_SITELIBDIR%%/freeswitch.py
  %%WITH_MODRSS%%lib/freeswitch/mod/mod_rss.la
  %%WITH_MODRSS%%lib/freeswitch/mod/mod_rss.so
  %%WITH_MODSAYDE%%lib/freeswitch/mod/mod_say_de.la
 @@ -394,8 +397,8 @@
  lib/freeswitch/mod/mod_sofia.so
  %%WITH_MODSOUNDTOUCH%%lib/freeswitch/mod/mod_soundtouch.la
  %%WITH_MODSOUNDTOUCH%%lib/freeswitch/mod/mod_soundtouch.so
 -%%WITH_MODFAX%%lib/freeswitch/mod/mod_spandsp.la
 -%%WITH_MODFAX%%lib/freeswitch/mod/mod_spandsp.so
 +lib/freeswitch/mod/mod_spandsp.la
 +lib/freeswitch/mod/mod_spandsp.so
  lib/freeswitch/mod/mod_speex.la
  lib/freeswitch/mod/mod_speex.so
  lib/freeswitch/mod/mod_spidermonkey.la
 @@ -442,8 +445,8 @@
  www/freeswitch/htdocs/slimtest.htm
  @dirrm www/freeswitch/htdocs
  @dirrm www/freeswitch
 -@dirrm share/freeswitch/sounds
 -@dirrm share/freeswitch
 +@dirrmtry share/freeswitch/sounds
 +@dirrmtry share/freeswitch
  %%WITH_MODPERL%%@dirrm perl
  @dirrm lib/freeswitch/mod
  @dirrm lib/freeswitch/lib
 @@ -486,22 +489,28 @@
  @dirrm etc/freeswitch/conf/autoload_configs
  @dirrm etc/freeswitch/conf
  @dirrm etc/freeswitch
 +@exec mkdir -p %D/etc/freeswitch/conf/directory/default
  @exec mkdir -p %D/etc/freeswitch/scripts
  @exec mkdir -p %D/share/freeswitch/sounds
 +@exec chown -R freeswitch:freeswitch %D/share/freeswitch
 +@exec chown -R freeswitch:freeswitch %D/lib/freeswitch
 +@exec chown -R freeswitch:freeswitch %D/include/freeswitch
 +@exec chown -R freeswitch:freeswitch %D/etc/freeswitch
  @cwd /var
 -@dirrm spool/freeswitch/voicemail
 -@dirrm log/freeswitch/xml_cdr
 -@dirrm log/freeswitch
 -@dirrm freeswitch/recordings
 -@dirrm freeswitch
 -@dirrm db/freeswitch
 +@dirrmtry spool/freeswitch/voicemail
 +@dirrmtry spool/freeswitch
 +@dirrmtry log/freeswitch/xml_cdr
 +@dirrmtry log/freeswitch
 +@dirrmtry freeswitch/recordings
 +@dirrmtry freeswitch
 +@dirrmtry db/freeswitch
  @exec mkdir -p %D/spool/freeswitch/voicemail
  @exec mkdir -p %D/log/freeswitch/
  @exec mkdir -p %D/log/freeswitch/xml_cdr
  @exec mkdir -p %D/freeswitch
  @exec mkdir -p %D/freeswitch/recordings
  @exec mkdir -p %D/db/freeswitch
 -@exec chown -R freeswitch:freeswitch spool/freeswitch/voicemail
 -@exec chown -R freeswitch:freeswitch log/freeswitch/xml_cdr
 -@exec chown -R freeswitch:freeswitch freeswitch/recordings
 -@exec chown -R freeswitch:freeswitch db/freeswitch
 +@exec chown -R freeswitch:freeswitch %D/spool/freeswitch/voicemail
 +@exec chown -R freeswitch:freeswitch %D/log/freeswitch/xml_cdr
 +@exec chown -R freeswitch:freeswitch %D/freeswitch/recordings
 +@exec chown -R freeswitch:freeswitch %D/db/freeswitch
 
 --Multipart=_Mon__31_Jan_2011_13_15_06_-0500_86ZZPxlp6zp/xVMJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101311820.p0VIK6wg059168>