Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2007 23:33:10 GMT
From:      Ederson de Moura<ederbsd@cb.sc.gov.br>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110547: [NEW PORT] net/app_notify: Notify application module for the Asterisk PBX
Message-ID:  <200703192333.l2JNXAgL014658@www.freebsd.org>
Resent-Message-ID: <200703192340.l2JNe5a1068519@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110547
>Category:       ports
>Synopsis:       [NEW PORT] net/app_notify: Notify application module for the Asterisk PBX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 19 23:40:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ederson de Moura
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
FreeBSD devel.ederbs.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Feb  4 21:26:36 BRST
>Description:
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

- Ederson de Moura
ederbs@ederbs.org

>How-To-Repeat:

>Fix:
# 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:
#
#       asterisk-app-notify
#       asterisk-app-notify/files
#       asterisk-app-notify/files/patch-Makefile
#       asterisk-app-notify/files/patch-cflags.sh
#       asterisk-app-notify/pkg-descr
#       asterisk-app-notify/distinfo
#       asterisk-app-notify/Makefile
#
echo c - asterisk-app-notify
mkdir -p asterisk-app-notify > /dev/null 2>&1
echo c - asterisk-app-notify/files
mkdir -p asterisk-app-notify/files > /dev/null 2>&1
echo x - asterisk-app-notify/files/patch-Makefile
sed 's/^X//' >asterisk-app-notify/files/patch-Makefile << 'END-of-asterisk-app-notify/files/patch-Makefile'
X--- Makefile.orig      Sun Feb 18 17:21:05 2007
X+++ Makefile   Sun Feb 18 17:21:22 2007
X@@ -1,17 +1,16 @@
X+
X NAME=app_notify
X+CC=gcc -I/usr/local/include
X+
X CONF=dialer_extensions.conf
X
X CFLAGS=-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC
X LIBS=
X RES=$(NAME).so
X
X-ifeq (${OSARCH},Darwin)
X-SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
X-else
X SOLINK=-shared -Xlinker -x
X-endif
X
X-MODULES_DIR=/usr/lib/asterisk/modules
X+MODULES_DIR=/usr/local/lib/asterisk/modules
X
X app_notify.so : app_notify.o
X       $(CC) $(SOLINK) -o $@ $<
X@@ -22,13 +21,10 @@
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+      if ! [ -f /usr/local/etc/asterisk/$(CONF) ]; then \
X+              install -m 644 $(CONF).sample /usr/local/etc/asterisk/$(CONF) ; \
X       fi
X       if [ -f $(NAME).so ]; then \
X               install -m 755 $(NAME).so $(MODULES_DIR) ; \
X       fi
X
X-reload: install
X-      asterisk -rx "unload ${RES}"
X-      asterisk -rx "load ${RES}"
END-of-asterisk-app-notify/files/patch-Makefile
echo x - asterisk-app-notify/files/patch-cflags.sh
sed 's/^X//' >asterisk-app-notify/files/patch-cflags.sh << 'END-of-asterisk-app-notify/files/patch-cflags.sh'
X--- cflags.sh.orig     Sun Feb 18 17:26:01 2007
X+++ cflags.sh  Sun Feb 18 17:25:50 2007
X@@ -2,12 +2,12 @@
X
X CFLAGS="-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC"
X
X-CHANNEL_H=/usr/include/asterisk/channel.h
X+CHANNEL_H=/usr/local/include/asterisk/channel.h
X if [ "`grep 'struct ast_callerid cid' ${CHANNEL_H}`" != "" ]; then
X     CFLAGS="${CFLAGS} -DCHANNEL_HAS_CID"
X fi
X
X-CONFIG_H=/usr/include/asterisk/config.h
X+CONFIG_H=/usr/local/include/asterisk/config.h
X if [ "`grep 'ast_config_load' ${CONFIG_H}`" != "" ]; then
X     CFLAGS="${CFLAGS} -DNEW_CONFIG"
X fi
END-of-asterisk-app-notify/files/patch-cflags.sh
echo x - asterisk-app-notify/pkg-descr
sed 's/^X//' >asterisk-app-notify/pkg-descr << 'END-of-asterisk-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
X
X- Ederson de Moura
Xederbs@ederbs.org
END-of-asterisk-app-notify/pkg-descr
echo x - asterisk-app-notify/distinfo
sed 's/^X//' >asterisk-app-notify/distinfo << 'END-of-asterisk-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-asterisk-app-notify/distinfo
echo x - asterisk-app-notify/Makefile
sed 's/^X//' >asterisk-app-notify/Makefile << 'END-of-asterisk-app-notify/Makefile'
X# New ports collection makefile for: app_notify
X# Date created:                18 Feb 2007
X# Whom:                        Ederson de Moura <ederbs@ederbs.org>
X#
X# $FreeBSD$
X
XPORTNAME=      app_notify
XPORTVERSION=   1.0
XCATEGORIES=    net
XMASTER_SITES=  http://www.mezzo.net/asterisk/ \
X               http://ederbs.org/pub/
XEXTRACT_SUFX=  .tgz
X
XMAINTAINER=    ederbs@ederbs.org
XCOMMENT=       Notify application module for the Asterisk PBX
X
XBUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
X
XUSE_GMAKE=     yes
X
X.include <bsd.port.mk>
END-of-asterisk-app-notify/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703192333.l2JNXAgL014658>