diff options
Diffstat (limited to 'net/asterisk-app-notify')
-rw-r--r-- | net/asterisk-app-notify/Makefile | 34 | ||||
-rw-r--r-- | net/asterisk-app-notify/distinfo | 3 | ||||
-rw-r--r-- | net/asterisk-app-notify/files/patch-Makefile | 33 | ||||
-rw-r--r-- | net/asterisk-app-notify/pkg-descr | 5 | ||||
-rw-r--r-- | net/asterisk-app-notify/pkg-message | 14 | ||||
-rw-r--r-- | net/asterisk-app-notify/pkg-plist | 7 |
6 files changed, 96 insertions, 0 deletions
diff --git a/net/asterisk-app-notify/Makefile b/net/asterisk-app-notify/Makefile new file mode 100644 index 000000000000..6939e9d4498e --- /dev/null +++ b/net/asterisk-app-notify/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: app_notify +# Date created: 23 March 2007 +# Whom: mayo +# +# $FreeBSD$ +# + +PORTNAME= app_notify +PORTVERSION= 1.0 +CATEGORIES= net +MASTER_SITES= http://www.mezzo.net/asterisk/ \ + http://static.oyam.ca/freebsd/ports/ +EXTRACT_SUFX= .tgz + +MAINTAINER= mayo@oyam.ca +COMMENT= Notify application module for the Asterisk PBX + +BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk +RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk + +USE_GMAKE= yes + +ASTETCDIR= ${PREFIX}/etc/asterisk + +pre-install: + ${MKDIR} ${ASTETCDIR} + +post-install: + @if [ ! -f ${ASTETCDIR}/dialer_extensions.conf ]; then \ + ${CP} -p ${ASTETCDIR}/dialer_extensions.conf.sample ${ASTETCDIR}/dialer_extensions.conf ; \ + fi + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/net/asterisk-app-notify/distinfo b/net/asterisk-app-notify/distinfo new file mode 100644 index 000000000000..606955c01234 --- /dev/null +++ b/net/asterisk-app-notify/distinfo @@ -0,0 +1,3 @@ +MD5 (app_notify-1.0.tgz) = a2f4bf2b6f306c0a60086e98265571a3 +SHA256 (app_notify-1.0.tgz) = 84d219c9ad2eed6c19a35e491f631428bd367cce4e736d973c762380378c29c0 +SIZE (app_notify-1.0.tgz) = 3839 diff --git a/net/asterisk-app-notify/files/patch-Makefile b/net/asterisk-app-notify/files/patch-Makefile new file mode 100644 index 000000000000..8dc2cee71eb8 --- /dev/null +++ b/net/asterisk-app-notify/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig Fri Mar 23 21:14:57 2007 ++++ Makefile Sat Mar 24 00:09:09 2007 +@@ -9,7 +9,7 @@ + NAME=app_notify + CONF=dialer_extensions.conf + +-CFLAGS=-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC ++CFLAGS+= -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC -I$(LOCALBASE)/include + LIBS= + RES=$(NAME).so + +@@ -19,7 +19,7 @@ + SOLINK=-shared -Xlinker -x + endif + +-MODULES_DIR=/usr/lib/asterisk/modules ++MODULES_DIR=$(PREFIX)/lib/asterisk/modules + + app_notify.so : app_notify.o + $(CC) $(SOLINK) -o $@ $< +@@ -30,10 +30,9 @@ + rm -f $(NAME).o $(NAME).so notifyClient.o notifyClient sampleClient + + install: all +- if ! [ -f /etc/asterisk/$(CONF) ]; then \ +- install -m 644 $(CONF).sample /etc/asterisk/$(CONF) ; \ +- fi ++ install -m 644 $(CONF).sample $(PREFIX)/etc/asterisk/$(CONF).sample ; \ + if [ -f $(NAME).so ]; then \ ++ mkdir -p $(MODULES_DIR) ; \ + install -m 755 $(NAME).so $(MODULES_DIR) ; \ + fi + diff --git a/net/asterisk-app-notify/pkg-descr b/net/asterisk-app-notify/pkg-descr new file mode 100644 index 000000000000..7e2c76bac340 --- /dev/null +++ b/net/asterisk-app-notify/pkg-descr @@ -0,0 +1,5 @@ +Asterisk Notify is an Asterisk module which can be configured to send +notifications over the network to announce the callers name and telephone +number to a desktop PC. + +WWW: http://www.mezzo.net/asterisk/app_notify.html diff --git a/net/asterisk-app-notify/pkg-message b/net/asterisk-app-notify/pkg-message new file mode 100644 index 000000000000..647978adf41e --- /dev/null +++ b/net/asterisk-app-notify/pkg-message @@ -0,0 +1,14 @@ +***************************************************************************** + +a) If this is a new install, restart Asterisk or activate the module by + running: + + # asterisk -rx "load app_notify" + +b) If this is an upgrade, you can restart Asterisk or reload the module by + running: + + # asterisk -rx "unload app_notify" + # asterisk -rx "load app_notify" + +***************************************************************************** diff --git a/net/asterisk-app-notify/pkg-plist b/net/asterisk-app-notify/pkg-plist new file mode 100644 index 000000000000..fbbfd84e38c1 --- /dev/null +++ b/net/asterisk-app-notify/pkg-plist @@ -0,0 +1,7 @@ +@unexec if cmp -s %D/etc/asterisk/dialer_extensions.conf.sample %D/etc/asterisk/dialer_extensions.conf; then rm -f %D/etc/asterisk/dialer_extensions.conf; fi +etc/asterisk/dialer_extensions.conf.sample +@exec if [ ! -f %D/etc/asterisk/dialer_extensions.conf ] ; then cp -p %D/%F %B/dialer_extensions.conf; fi +lib/asterisk/modules/app_notify.so +@dirrmtry lib/asterisk/modules +@dirrmtry lib/asterisk +@dirrmtry etc/asterisk |