Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2011 11:00:14 -0500
From:      "Richard E. Neese" <r.neese@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/154332: pkg_add fix freeswitch-core
Message-ID:  <20110127110014.1eebae78.r.neese@gmail.com>
In-Reply-To: <201101271600.p0RG0FX5015786@freefall.freebsd.org>
References:  <201101271556.p0RFubQw016527@red.freebsd.org> <201101271600.p0RG0FX5015786@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart=_Thu__27_Jan_2011_11_00_14_-0500_B0CuNePK.zjOQ.k0
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=_Thu__27_Jan_2011_11_00_14_-0500_B0CuNePK.zjOQ.k0
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	27 Jan 2011 15:08:58 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	freeswitch-core
 PORTVERSION=	201044
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net
 MASTER_SITES=	ftp://ftp.secure-computing.net/pub/freeswitch/ \
 		ftp://ftp2.secure-computing.net/pub/freeswitch/ \
@@ -284,17 +284,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}/lib/${BASE_PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/include/${BASE_PORTNAME}
 	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/share/${BASE_PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/${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	27 Jan 2011 15:08:59 -0000
@@ -75,7 +75,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
@@ -152,7 +151,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
@@ -486,22 +485,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=_Thu__27_Jan_2011_11_00_14_-0500_B0CuNePK.zjOQ.k0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110127110014.1eebae78.r.neese>