diff options
author | crees <crees@FreeBSD.org> | 2012-05-23 03:12:47 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2012-05-23 03:12:47 +0800 |
commit | 9ccfacf3f42e91ab8dfd5fb0f04fa9326a2a6cbe (patch) | |
tree | afd36a13bca21de5979e4b1450c40ead8fe89485 /net/freeswitch-vanilla-devel | |
parent | 558c691e576fc380429b1dbee651797b828c8c40 (diff) | |
download | freebsd-ports-gnome-9ccfacf3f42e91ab8dfd5fb0f04fa9326a2a6cbe.tar.gz freebsd-ports-gnome-9ccfacf3f42e91ab8dfd5fb0f04fa9326a2a6cbe.tar.zst freebsd-ports-gnome-9ccfacf3f42e91ab8dfd5fb0f04fa9326a2a6cbe.zip |
Add configuration ports for freeswitch-devel; vanilla, sbc, insideout and curl
PR: ports/167877
PR: ports/167878
PR: ports/167879
PR: ports/167881
Submitted by: Richard Neese (r.neese@gmail.com) (maintainer)
Fix some minor pkg-install script issues in -core-devel
Use a cookie file to install ETCDIR/conf directory structure rather than
@exec mkdir to simplify installation
Diffstat (limited to 'net/freeswitch-vanilla-devel')
-rw-r--r-- | net/freeswitch-vanilla-devel/Makefile | 66 | ||||
-rw-r--r-- | net/freeswitch-vanilla-devel/distinfo | 2 | ||||
-rw-r--r-- | net/freeswitch-vanilla-devel/pkg-descr | 3 | ||||
-rw-r--r-- | net/freeswitch-vanilla-devel/pkg-plist-vanilla | 6 |
4 files changed, 77 insertions, 0 deletions
diff --git a/net/freeswitch-vanilla-devel/Makefile b/net/freeswitch-vanilla-devel/Makefile new file mode 100644 index 000000000000..18a195a97895 --- /dev/null +++ b/net/freeswitch-vanilla-devel/Makefile @@ -0,0 +1,66 @@ +# Ports collection makefile for: net/freeswitch-vanilla-devel +# Date created: May 11, 2012 +# Whom: Richard Neese <r.neese@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= freeswitch +DISTVERSION= 1.2.rc2 +CATEGORIES= net +MASTER_SITES= http://files.freeswitch.org/ +PKGNAMESUFFIX= -${FREESWITCH_CONF_DIST}-devel +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= r.neese@gmail.com +COMMENT= FreeSwitch configuration files; ${FREESWITCH_CONF_DIST} variant + +RUN_DEPENDS= freeswitch:${PORTSDIR}/net/freeswitch-core-devel + +FREESWITCH_CONF_DIST?= vanilla + +USE_BZIP2= yes +NO_BUILD= yes +SHAREOWN= ${PORTNAME} +SHAREGRP= ${SHAREOWN} + +PLIST= ${MASTERDIR}/pkg-plist-${FREESWITCH_CONF_DIST} + +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}/conf/${FREESWITCH_CONF_DIST} + +# Do some checking and conflict on other conf dists +VALID_DISTS= vanilla sbc curl insideout + +.for d in ${FREESWITCH_CONF_DIST} +. if ${VALID_DISTS:M$d} +CONFLICTS_INSTALL= ${VALID_DISTS:N$d:S/^/freeswitch-/:S/$/-devel-[0-9]*/} +. else +IGNORE= requires a valid conf distribution in FREESWITCH_CONF_DIST; use a slave port +. endif +.endfor + +CONF_EXTENSIONS= xml ttml tpl conf types yaml FS0 + +post-patch: + @cd ${WRKSRC} && for i in $$(${FIND} . -type f ${CONF_EXTENSIONS:C/.*/-name \*.& -o/} -false); \ + do [ -f $${i}.sample ] || ${MV} $$i $${i}.sample ; done + +do-install: + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${ETCDIR}/conf/ + ${FIND} ${ETCDIR} -type d -exec chmod 770 '{}' \; + for i in $$(cd ${WRKSRC} && ${FIND} * \ + -type f -name '*.sample' | ${SED} 's|^|${ETCDIR_REL}/conf/|'); \ + do ${ECHO_CMD} "@unexec cmp -s %D/$$i %D/$${i%.sample} && ${RM} %D/$${i%.sample} || ${TRUE}" >> ${TMPPLIST}; \ + ${ECHO_CMD} "$$i" >> ${TMPPLIST} ; \ + ${ECHO_CMD} "@exec [ -f %D/$${i%.sample} ] || \ + ${CP} -p %D/%F %D/$${i%.sample}" >> ${TMPPLIST} ; \ + [ -f ${ETCDIR}/conf/$${i%.sample} ] || ${CP} -p ${PREFIX}/$$i ${PREFIX}/$${i%.sample} ; \ + done + ${TOUCH} ${ETCDIR}/conf/.${FREESWITCH_CONF_DIST} + ${ECHO_CMD} '${ETCDIR_REL}/conf/.${FREESWITCH_CONF_DIST}' >> ${TMPPLIST} + for dir in $$(cd ${WRKSRC} && ${FIND} * -type d -not -path directory\* | ${SORT} -r) ; \ + do ${ECHO_CMD} "@dirrm ${ETCDIR_REL}/conf/$$dir" >> ${TMPPLIST} ; \ + done + + +.include <bsd.port.mk> diff --git a/net/freeswitch-vanilla-devel/distinfo b/net/freeswitch-vanilla-devel/distinfo new file mode 100644 index 000000000000..8227fb3a529d --- /dev/null +++ b/net/freeswitch-vanilla-devel/distinfo @@ -0,0 +1,2 @@ +SHA256 (freeswitch/freeswitch-1.2.rc2.tar.bz2) = bbf9b3f6e7a7569b9594b5852d1b8a95266ef3276df222776ac84667adb6cc08 +SIZE (freeswitch/freeswitch-1.2.rc2.tar.bz2) = 38075354 diff --git a/net/freeswitch-vanilla-devel/pkg-descr b/net/freeswitch-vanilla-devel/pkg-descr new file mode 100644 index 000000000000..0557d2d82134 --- /dev/null +++ b/net/freeswitch-vanilla-devel/pkg-descr @@ -0,0 +1,3 @@ +Vanilla dialplan config file for FreeSwitch Voip SoftSwitch & OpenSource PBX + +WWW: http://www.freeswitch.org/ diff --git a/net/freeswitch-vanilla-devel/pkg-plist-vanilla b/net/freeswitch-vanilla-devel/pkg-plist-vanilla new file mode 100644 index 000000000000..f7ceaacdba2a --- /dev/null +++ b/net/freeswitch-vanilla-devel/pkg-plist-vanilla @@ -0,0 +1,6 @@ +%%ETCDIR%%/conf/README_IMPORTANT.txt +%%ETCDIR%%/conf/dialplan/default/tollfreegateway.com.noload +%%ETCDIR%%/conf/dialplan/default/ideasip.com.noload +%%ETCDIR%%/conf/dialplan/default/sipphone.com.noload +%%ETCDIR%%/conf/dialplan/default/pulver.com.noload +%%ETCDIR%%/conf/dialplan/default/sipbroker.com.noload |