ports/110547: [NEW PORT] net/app_notify: Notify application module for the Asterisk PBX
Mayo Jordanov
mayo at oyam.ca
Sat Mar 24 10:10:07 UTC 2007
The following reply was made to PR ports/110547; it has been noted by GNATS.
From: Mayo Jordanov <mayo at oyam.ca>
To: bug-followup at FreeBSD.org,
ederbsd at cb.sc.gov.br
Cc:
Subject: Re: ports/110547: [NEW PORT] net/app_notify: Notify application module for the Asterisk PBX
Date: Sat, 24 Mar 2007 02:40:09 -0700
--Apple-Mail-18-1000997373
Content-Type: multipart/mixed; boundary=Apple-Mail-17-1000997267
--Apple-Mail-17-1000997267
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
The submitted port and patches have a few problems with hardcoded
paths (/usr/local), there is no pkg-plist and the port will overwrite
config file even if it exists. I've tried contacting the port's
author, but the mailbox is reported to be non-existent as well as the
secondary master site is unavailable. My version of the port was done
without prior knowledge of this one, so I'm offering it as alternate
version. If the author of the initial port is found, feel free to rip
anything that helps out of my port or change the authorship.
regards,
mayo
--Apple-Mail-17-1000997267
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name=app_notify.shar
Content-Disposition: attachment;
filename=app_notify.shar
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# app_notify
# app_notify/distinfo
# app_notify/Makefile
# app_notify/pkg-descr
# app_notify/files
# app_notify/files/patch-Makefile
# app_notify/pkg-message
# app_notify/pkg-plist
#
echo c - app_notify
mkdir -p app_notify > /dev/null 2>&1
echo x - app_notify/distinfo
sed 's/^X//' >app_notify/distinfo << 'END-of-app_notify/distinfo'
XMD5 (app_notify-1.0.tgz) = a2f4bf2b6f306c0a60086e98265571a3
XSHA256 (app_notify-1.0.tgz) = 84d219c9ad2eed6c19a35e491f631428bd367cce4e736d973c762380378c29c0
XSIZE (app_notify-1.0.tgz) = 3839
END-of-app_notify/distinfo
echo x - app_notify/Makefile
sed 's/^X//' >app_notify/Makefile << 'END-of-app_notify/Makefile'
X# New ports collection makefile for: app_notify
X# Date created: 23 March 2007
X# Whom: mayo
X#
X# $FreeBSD$
X#
X
XPORTNAME= app_notify
XPORTVERSION= 1.0
XCATEGORIES= net
XMASTER_SITES= http://www.mezzo.net/asterisk/ \
X http://static.oyam.ca/freebsd/ports/
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= mayo at oyam.ca
XCOMMENT= Notify application module for the Asterisk PBX
X
XBUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
XRUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
X
XUSE_GMAKE= yes
X
XASTETCDIR= ${PREFIX}/etc/asterisk
X
Xpre-install:
X ${MKDIR} ${ASTETCDIR}
X
Xpost-install:
X @if [ ! -f ${ASTETCDIR}/dialer_extensions.conf ]; then \
X ${CP} -p ${ASTETCDIR}/dialer_extensions.conf.sample ${ASTETCDIR}/dialer_extensions.conf ; \
X fi
X @ ${CAT} ${.CURDIR}/pkg-message
X
X.include <bsd.port.mk>
END-of-app_notify/Makefile
echo x - app_notify/pkg-descr
sed 's/^X//' >app_notify/pkg-descr << 'END-of-app_notify/pkg-descr'
XAsterisk Notify is an Asterisk module which can be configured to send
Xnotifications over the network to announce the callers name and telephone
Xnumber to a desktop PC.
X
XWWW: http://www.mezzo.net/asterisk/app_notify.html
END-of-app_notify/pkg-descr
echo c - app_notify/files
mkdir -p app_notify/files > /dev/null 2>&1
echo x - app_notify/files/patch-Makefile
sed 's/^X//' >app_notify/files/patch-Makefile << 'END-of-app_notify/files/patch-Makefile'
X--- Makefile.orig Fri Mar 23 21:14:57 2007
X+++ Makefile Sat Mar 24 00:09:09 2007
X@@ -9,7 +9,7 @@
X NAME=app_notify
X CONF=dialer_extensions.conf
X
X-CFLAGS=-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC
X+CFLAGS+= -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC -I$(LOCALBASE)/include
X LIBS=
X RES=$(NAME).so
X
X@@ -19,7 +19,7 @@
X SOLINK=-shared -Xlinker -x
X endif
X
X-MODULES_DIR=/usr/lib/asterisk/modules
X+MODULES_DIR=$(PREFIX)/lib/asterisk/modules
X
X app_notify.so : app_notify.o
X $(CC) $(SOLINK) -o $@ $<
X@@ -30,10 +30,9 @@
X rm -f $(NAME).o $(NAME).so notifyClient.o notifyClient sampleClient
X
X install: all
X- if ! [ -f /etc/asterisk/$(CONF) ]; then \
X- install -m 644 $(CONF).sample /etc/asterisk/$(CONF) ; \
X- fi
X+ install -m 644 $(CONF).sample $(PREFIX)/etc/asterisk/$(CONF).sample ; \
X if [ -f $(NAME).so ]; then \
X+ mkdir -p $(MODULES_DIR) ; \
X install -m 755 $(NAME).so $(MODULES_DIR) ; \
X fi
X
END-of-app_notify/files/patch-Makefile
echo x - app_notify/pkg-message
sed 's/^X//' >app_notify/pkg-message << 'END-of-app_notify/pkg-message'
X*****************************************************************************
X
Xa) If this is a new install, restart Asterisk or activate the module by
X running:
X
X # asterisk -rx "load app_notify"
X
Xb) If this is an upgrade, you can restart Asterisk or reload the module by
X running:
X
X # asterisk -rx "unload app_notify"
X # asterisk -rx "load app_notify"
X
X*****************************************************************************
END-of-app_notify/pkg-message
echo x - app_notify/pkg-plist
sed 's/^X//' >app_notify/pkg-plist << 'END-of-app_notify/pkg-plist'
X at 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
Xetc/asterisk/dialer_extensions.conf.sample
X at exec if [ ! -f %D/etc/asterisk/dialer_extensions.conf ] ; then cp -p %D/%F %B/dialer_extensions.conf; fi
Xlib/asterisk/modules/app_notify.so
X at dirrmtry lib/asterisk/modules
X at dirrmtry lib/asterisk
X at dirrmtry etc/asterisk
END-of-app_notify/pkg-plist
exit
--Apple-Mail-17-1000997267--
--Apple-Mail-18-1000997373
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iEYEARECAAYFAkYE8f8ACgkQ3IqYlN3K/uZA6ACgxFtwjChOv2LKNFSW4fHBN+m8
tNsAnRXNkY+l7KgflDKXZAcfVjh8/HAw
=ij91
-----END PGP SIGNATURE-----
--Apple-Mail-18-1000997373--
More information about the freebsd-ports-bugs
mailing list