ports/154332: pkg_add fix freeswitch-core
Richard E. Neese
r.neese at gmail.com
Thu Jan 27 16:10:09 UTC 2011
The following reply was made to PR ports/154332; it has been noted by GNATS.
From: "Richard E. Neese" <r.neese at gmail.com>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-ports-bugs at FreeBSD.org
Cc:
Subject: Re: ports/154332: pkg_add fix freeswitch-core
Date: Thu, 27 Jan 2011 11:00:14 -0500
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 at 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 at 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
- at 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
+ at 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
+ at exec mkdir -p %D/etc/freeswitch/conf/directory/default
@exec mkdir -p %D/etc/freeswitch/scripts
@exec mkdir -p %D/share/freeswitch/sounds
+ at exec chown -R freeswitch:freeswitch %D/share/freeswitch
+ at exec chown -R freeswitch:freeswitch %D/lib/freeswitch
+ at exec chown -R freeswitch:freeswitch %D/include/freeswitch
+ at exec chown -R freeswitch:freeswitch %D/etc/freeswitch
@cwd /var
- at dirrm spool/freeswitch/voicemail
- at dirrm log/freeswitch/xml_cdr
- at dirrm log/freeswitch
- at dirrm freeswitch/recordings
- at dirrm freeswitch
- at dirrm db/freeswitch
+ at dirrmtry spool/freeswitch/voicemail
+ at dirrmtry spool/freeswitch
+ at dirrmtry log/freeswitch/xml_cdr
+ at dirrmtry log/freeswitch
+ at dirrmtry freeswitch/recordings
+ at dirrmtry freeswitch
+ at 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
- at exec chown -R freeswitch:freeswitch spool/freeswitch/voicemail
- at exec chown -R freeswitch:freeswitch log/freeswitch/xml_cdr
- at exec chown -R freeswitch:freeswitch freeswitch/recordings
- at exec chown -R freeswitch:freeswitch db/freeswitch
+ at exec chown -R freeswitch:freeswitch %D/spool/freeswitch/voicemail
+ at exec chown -R freeswitch:freeswitch %D/log/freeswitch/xml_cdr
+ at exec chown -R freeswitch:freeswitch %D/freeswitch/recordings
+ at exec chown -R freeswitch:freeswitch %D/db/freeswitch
--Multipart=_Thu__27_Jan_2011_11_00_14_-0500_B0CuNePK.zjOQ.k0--
More information about the freebsd-ports-bugs
mailing list