diff options
author | Max Khon <fjoe@FreeBSD.org> | 2006-03-27 17:23:47 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2006-03-27 17:23:47 +0000 |
commit | a7f67aaf114c42bf8733b183b955982386e9d981 (patch) | |
tree | 064ef370865db067a07c8bb1af4009eb89db72b9 /net/asterisk12-addons | |
parent | bb3efb6a66068e1b0cf150ad726c96ac270a3aa6 (diff) | |
download | ports-a7f67aaf114c42bf8733b183b955982386e9d981.tar.gz ports-a7f67aaf114c42bf8733b183b955982386e9d981.zip |
Notes
Diffstat (limited to 'net/asterisk12-addons')
-rw-r--r-- | net/asterisk12-addons/Makefile | 38 | ||||
-rw-r--r-- | net/asterisk12-addons/distinfo | 3 | ||||
-rw-r--r-- | net/asterisk12-addons/files/patch-Makefile | 23 | ||||
-rw-r--r-- | net/asterisk12-addons/pkg-descr | 5 | ||||
-rw-r--r-- | net/asterisk12-addons/pkg-plist | 11 |
5 files changed, 80 insertions, 0 deletions
diff --git a/net/asterisk12-addons/Makefile b/net/asterisk12-addons/Makefile new file mode 100644 index 000000000000..5e6173ef5a4a --- /dev/null +++ b/net/asterisk12-addons/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: asterisk-addons +# Date created: 23 March 2006 +# Whom: Fabian Gast <fgast@only640k.org> +# +# $FreeBSD$ +# + +PORTNAME= asterisk-addons +PORTVERSION= 1.2.2 +CATEGORIES= net +MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \ + http://ftp.digium.com/pub/asterisk/old-releases/ \ + ftp://ftp.asterisk.org/pub/telephony/asterisk/ \ + ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/ + +MAINTAINER= fgast@only640k.org +COMMENT= Additional modules for the Asterisk Open Source PBX + +BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk +LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql41-client +RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk + +ONLY_FOR_ARCHS= i386 sparc64 amd64 +USE_GMAKE= yes + +CONF_SAMPLES= cdr_mysql.conf.sample res_mysql.conf.sample +ASTETCDIR= ${PREFIX}/etc/asterisk + +post-patch: + @${REINPLACE_CMD} 's,^CFLAGS+=-I../asterisk,CFLAGS+=-I${LOCALBASE}/include,' ${WRKSRC}/Makefile + +post-install: + ${MKDIR} ${ASTETCDIR} +.for f in ${CONF_SAMPLES} + ${INSTALL_DATA} ${WRKSRC}/configs/$f ${ASTETCDIR} +.endfor + +.include <bsd.port.mk> diff --git a/net/asterisk12-addons/distinfo b/net/asterisk12-addons/distinfo new file mode 100644 index 000000000000..7e337e0bace5 --- /dev/null +++ b/net/asterisk12-addons/distinfo @@ -0,0 +1,3 @@ +MD5 (asterisk-addons-1.2.2.tar.gz) = a22b05117a2f8c8b25d504d0d01f8823 +SHA256 (asterisk-addons-1.2.2.tar.gz) = 9b9681a9b8282604687257cb0468f43d9ab5268622746eae6546cd092ce90c81 +SIZE (asterisk-addons-1.2.2.tar.gz) = 749501 diff --git a/net/asterisk12-addons/files/patch-Makefile b/net/asterisk12-addons/files/patch-Makefile new file mode 100644 index 000000000000..cfd4ba9c1c67 --- /dev/null +++ b/net/asterisk12-addons/files/patch-Makefile @@ -0,0 +1,23 @@ +--- Makefile.orig Fri Dec 2 05:14:28 2005 ++++ Makefile Tue Mar 28 00:15:47 2006 +@@ -20,8 +20,8 @@ + CFLAGS+=-D_GNU_SOURCE + + INSTALL=install +-INSTALL_PREFIX= +-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk ++INSTALL_PREFIX=$(PREFIX) ++ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk + MODULES_DIR=$(ASTLIBDIR)/modules + + # +@@ -56,7 +56,8 @@ + $(MAKE) -C format_mp3 all + + install: all +- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done ++ mkdir -p $(DESTDIR)$(MODULES_DIR) ++ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done + + clean: + rm -f *.so *.o .depend diff --git a/net/asterisk12-addons/pkg-descr b/net/asterisk12-addons/pkg-descr new file mode 100644 index 000000000000..797a19b3c61f --- /dev/null +++ b/net/asterisk12-addons/pkg-descr @@ -0,0 +1,5 @@ +This package contains additional modules for the Asterisk Open Source PBX +which are, for one reason or another, not included in the normal base +distribution. Many of these modules are experimental. + +WWW: http://www.asteriskpbx.com diff --git a/net/asterisk12-addons/pkg-plist b/net/asterisk12-addons/pkg-plist new file mode 100644 index 000000000000..09713ed4936e --- /dev/null +++ b/net/asterisk12-addons/pkg-plist @@ -0,0 +1,11 @@ +@unexec if cmp -s %D/etc/asterisk/cdr_mysql.conf %D/etc/asterisk/cdr_mysql.conf.sample; then rm -f %D/etc/asterisk/cdr_mysql.conf; fi +etc/asterisk/cdr_mysql.conf.sample +@exec [-f %B/cdr_mysql.conf ] || cp %B/%f %B/cdr_mysql.conf +@unexec if cmp -s %D/etc/asterisk/res_mysql.conf %D/etc/asterisk/res_mysql.conf.sample; then rm -f %D/etc/asterisk/res_mysql.conf; fi +etc/asterisk/res_mysql.conf.sample +@exec [-f %B/res_mysql.conf ] || cp $B/%f %B/res_mysql.conf +lib/asterisk/modules/app_addon_sql_mysql.so +lib/asterisk/modules/app_saycountpl.so +lib/asterisk/modules/cdr_addon_mysql.so +lib/asterisk/modules/format_mp3.so +lib/asterisk/modules/res_config_mysql.so |