From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 19 23:40:05 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BACB16A404 for ; Mon, 19 Mar 2007 23:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7C4EF13C4BC for ; Mon, 19 Mar 2007 23:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2JNe5ld068520 for ; Mon, 19 Mar 2007 23:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2JNe5a1068519; Mon, 19 Mar 2007 23:40:05 GMT (envelope-from gnats) Resent-Date: Mon, 19 Mar 2007 23:40:05 GMT Resent-Message-Id: <200703192340.l2JNe5a1068519@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ederson de Moura Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D12816A407 for ; Mon, 19 Mar 2007 23:38:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 30DF213C465 for ; Mon, 19 Mar 2007 23:38:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2JNcB6X016683 for ; Mon, 19 Mar 2007 23:38:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l2JNXAgL014658; Mon, 19 Mar 2007 23:33:10 GMT (envelope-from nobody) Message-Id: <200703192333.l2JNXAgL014658@www.freebsd.org> Date: Mon, 19 Mar 2007 23:33:10 GMT From: Ederson de Moura To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/110547: [NEW PORT] net/app_notify: Notify application module for the Asterisk PBX X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2007 23:40:05 -0000 >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 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 END-of-asterisk-app-notify/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: