From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 12 13:10:26 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE38316A4CE for ; Fri, 12 Nov 2004 13:10:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9789543D41 for ; Fri, 12 Nov 2004 13:10:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) iACDAPJp068400 for ; Fri, 12 Nov 2004 13:10:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iACDAP9X068399; Fri, 12 Nov 2004 13:10:25 GMT (envelope-from gnats) Resent-Date: Fri, 12 Nov 2004 13:10:25 GMT Resent-Message-Id: <200411121310.iACDAP9X068399@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, Benny Kjaergaard Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C58F016A4CE for ; Fri, 12 Nov 2004 13:05:44 +0000 (GMT) Received: from moof.catpipe.net (moof.catpipe.net [195.249.214.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4A0243D2F for ; Fri, 12 Nov 2004 13:05:43 +0000 (GMT) (envelope-from benny@lillemis.catpipe.net) Received: from localhost (localhost [127.0.0.1]) by localhost.catpipe.net (Postfix) with ESMTP id E06BB70603 for ; Fri, 12 Nov 2004 14:05:42 +0100 (CET) Received: from moof.catpipe.net ([127.0.0.1]) by localhost (moof.catpipe.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08416-08 for ; Fri, 12 Nov 2004 14:05:39 +0100 (CET) Received: from lillemis.catpipe.net (lillemis.catpipe.net [195.249.214.180]) by moof.catpipe.net (Postfix) with ESMTP id A008170602 for ; Fri, 12 Nov 2004 14:05:39 +0100 (CET) Received: from lillemis.catpipe.net (localhost [127.0.0.1]) by lillemis.catpipe.net (8.13.1/8.13.1) with ESMTP id iACD57oQ006342 for ; Fri, 12 Nov 2004 14:05:07 +0100 (CET) (envelope-from benny@lillemis.catpipe.net) Received: (from benny@localhost) by lillemis.catpipe.net (8.13.1/8.13.1/Submit) id iACD56q8006341; Fri, 12 Nov 2004 14:05:06 +0100 (CET) (envelope-from benny) Message-Id: <200411121305.iACD56q8006341@lillemis.catpipe.net> Date: Fri, 12 Nov 2004 14:05:06 +0100 (CET) From: Benny Kjaergaard To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/73864: UPDATE OF NEW PORT: This is a new version which does not expose a emailadress which where wrongly placed there X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Benny Kjaergaard List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 13:10:26 -0000 >Number: 73864 >Category: ports >Synopsis: UPDATE OF NEW PORT: This is a new version which does not expose a emailadress which where wrongly placed there >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Nov 12 13:10:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Benny Kjaergaard >Release: FreeBSD 5.3-RELEASE i386 >Organization: >Environment: >Description: >How-To-Repeat: >Fix: --- a begins here --- # 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: # # smstools # smstools/files # smstools/files/patch-examples::smsd.conf.easy # smstools/files/patch-src::smsd_cfg.c # smstools/files/patch-install.sub # smstools/files/patch-Makefile # smstools/files/patch-examples::smsd.conf.full # smstools/files/patch-bin::sms # smstools/files/smsd.conf.jo # smstools/Makefile # smstools/pkg-descr # smstools/distinfo # smstools/pkg-plist # echo c - smstools mkdir -p smstools > /dev/null 2>&1 echo c - smstools/files mkdir -p smstools/files > /dev/null 2>&1 echo x - smstools/files/patch-examples::smsd.conf.easy sed 's/^X//' >smstools/files/patch-examples::smsd.conf.easy << 'END-of-smstools/files/patch-examples::smsd.conf.easy' X--- examples/smsd.conf.easy.orig Sat Nov 6 16:10:46 2004 X+++ examples/smsd.conf.easy Sat Nov 6 16:12:34 2004 X@@ -7,8 +7,8 @@ X loglevel = 7 X X [GSM1] X-# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0 X-device = /dev/ttyS0 X+# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0, FreeBSD5: /dev/cuaa0 X+device = /dev/cuaa0 X incoming = yes X cs_convert = yes X #pin = 1111 END-of-smstools/files/patch-examples::smsd.conf.easy echo x - smstools/files/patch-src::smsd_cfg.c sed 's/^X//' >smstools/files/patch-src::smsd_cfg.c << 'END-of-smstools/files/patch-src::smsd_cfg.c' X--- src/smsd_cfg.orig Sat Nov 6 16:04:24 2004 X+++ src/smsd_cfg.c Sat Nov 6 16:06:29 2004 X@@ -329,7 +329,7 @@ X printf(" -h this help\n"); X printf(" -s display status monitor\n"); X printf(" -V print copyright and version\n\n"); X- printf("All other options are set by the file /etc/smsd.conf.\n\n"); X+ printf("All other options are set by the file /usr/local/etc/smsd.conf.\n\n"); X printf("Output is written to stdout, errors are written to stderr.\n\n"); X exit(0); X } X@@ -337,7 +337,7 @@ X void parsearguments(int argc,char** argv) X { X int result; X- strcpy(configfile,"/etc/smsd.conf"); X+ strcpy(configfile,"/usr/local/etc/smsd.conf"); X debug=0; X printstatus=0; X END-of-smstools/files/patch-src::smsd_cfg.c echo x - smstools/files/patch-install.sub sed 's/^X//' >smstools/files/patch-install.sub << 'END-of-smstools/files/patch-install.sub' X--- install.sub.orig Sat Nov 6 16:10:08 2004 X+++ install.sub Sat Nov 6 16:55:50 2004 X@@ -7,10 +7,10 @@ X cp $1 $2 X else X echo " skipped $2" X- fi X+ fi X } X X-if [ ! -f bin/smsd ]; then X+if [ ! -f bin/smsd ]; then X echo 'Please run "make compile" first.' X exit 1 X fi X@@ -21,13 +21,14 @@ X copy bin/email2sms /usr/local/bin/email2sms X copy bin/sendsms /usr/local/bin/sendsms X copy bin/smsresend /usr/local/bin/smsresend X-copy examples/smsd.conf.easy /etc/smsd.conf X-[ -d /etc/init.d ] && copy bin/sms /etc/init.d/sms X-[ -d /sbin/init.d ] && copy bin/sms /sbin/init.d/sms X+copy examples/smsd.conf.easy /usr/local/etc/smsd.conf X+echo 'Installing statup script into /usr/local/etc/rc.d' X+[ -d /usr/local/etc/rc.d ] && copy bin/sms /usr/local/etc/rc.d/sms.sh.sample X [ -d /var/spool ] || mkdir /var/spool X [ -d /var/spool/sms ] || mkdir /var/spool/sms X [ -d /var/spool/sms/incoming ] || mkdir /var/spool/sms/incoming X [ -d /var/spool/sms/outgoing ] || mkdir /var/spool/sms/outgoing X [ -d /var/spool/sms/checked ] || mkdir /var/spool/sms/checked X echo Installation finished X-echo 'Please dont forget to edit /etc/smsd.conf.' X+echo 'Please dont forget to edit /usr/local/etc/smsd.conf and to add smsd_enable=YES to your rc.conf' X+ END-of-smstools/files/patch-install.sub echo x - smstools/files/patch-Makefile sed 's/^X//' >smstools/files/patch-Makefile << 'END-of-smstools/files/patch-Makefile' X--- Makefile.orig Sat Nov 6 16:09:09 2004 X+++ Makefile Sat Nov 6 16:09:24 2004 X@@ -1,9 +1,8 @@ X # Makefile X X-VERSION=$(shell grep package_version src/version.h | cut -f2) X- X+all: compile X compile: X- cd src && $(MAKE) -$(MAKEFLAGS) X+ cd src && $(MAKE) X X install: compile X ./install.sub END-of-smstools/files/patch-Makefile echo x - smstools/files/patch-examples::smsd.conf.full sed 's/^X//' >smstools/files/patch-examples::smsd.conf.full << 'END-of-smstools/files/patch-examples::smsd.conf.full' X--- examples/smsd.conf.full.orig Sat Nov 6 16:11:35 2004 X+++ examples/smsd.conf.full Sat Nov 6 16:16:54 2004 X@@ -45,8 +45,8 @@ X X [GSM1] X init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1 X-# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0 X-device = /dev/ttyS0 X+# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0, FreeBSD5: /dev/cuaa0 X+device = /dev/cuaa0 X incoming = yes X queues = OTHER X #You don't need a PIN for mobile phones X@@ -61,8 +61,8 @@ X X [GSM2] X init = ATE0 X-# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1 X-device = /dev/ttyS1 X+# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1, FreeBSD5: /dev/cuaa1 X+device = /dev/cuaa1 X incoming = yes X queues = OTHER X #You don't need a PIN for mobile phones END-of-smstools/files/patch-examples::smsd.conf.full echo x - smstools/files/patch-bin::sms sed 's/^X//' >smstools/files/patch-bin::sms << 'END-of-smstools/files/patch-bin::sms' X--- bin/sms.orig Sat Nov 6 16:14:21 2004 X+++ bin/sms Sat Nov 6 16:41:46 2004 X@@ -1,21 +1,27 @@ X-#! /bin/sh X-# This script can be used to start/stop smsd X-# as a daemon in Linux and Solaris. X+#!/bin/sh X+# X+# $FreeBSD$ X+# X+# PROVIDE: smsd X+# REQUIRE: DAEMON X+# KEYWORD: FreeBSD X+# X+# Add the following line to /etc/rc.conf to enable smsd: X+# X+# smsd_enable="YES" X+# X X-case "$1" in X- start) X- find /var/spool/sms -name '*.LOCK' -exec rm {} \; X- /usr/local/bin/smsd & X- ;; X- stop) X- pkill smsd X- ;; X- restart|reload) X- $0 stop X- $0 start X- ;; X- *) X- echo "Usage: $0 {start|stop|restart}" X- exit 1 X-esac X+smsd_enable=${smsd_enable-"NO"} X+smsd_flags=${smsd_flags-""} X X+. /etc/rc.subr X+ X+name=smsd X+rcvar=`set_rcvar` X+ X+command="find /var/spool/sms -name '*.LOCK' -exec rm {} \; /usr/local/sbin/${name}" X+pidfile=/var/run/${name}.pid X+sig_stop=-KILL X+ X+load_rc_config ${name} X+run_rc_command "$1" END-of-smstools/files/patch-bin::sms echo x - smstools/files/smsd.conf.jo sed 's/^X//' >smstools/files/smsd.conf.jo << 'END-of-smstools/files/smsd.conf.jo' X# My 1st. smsd.conf. Monday 6. Sep. 2004 X# X#
X# X# 1 write all logging to the screen. You can also enter a filename. Tf you X# remove that line, then the system log daemon ()event log) will be used. Xlogfile = /var/log/smsd-log Xloglevel = 6 Xdevices = Modem Xdelaytime = 1 X#alarmlevel = 5 X#alarmhandler = /etc/smsevent/smsevent Xfailed = /var/spool/sms/failed Xincoming = /var/spool/sms/incoming Xoutgoing = /var/spool/sms/outgoing Xchecked = /var/spool/sms/checked Xsent = /var/spool/sms/sent X X# X# X[Queues] X X# X# X[Providers] X X# X# X# FreeBSD: /dev/cuaa0, Solaris: /dev/cua/a, Linux /dev/ttyS0 X[Modem] Xinit = at+cpms="SM" Xmode = new Xdevice = /dev/cuaa0 Xeventhandler = /etc/sms/sms2email.sh Xincoming = yes X#cs_convert = yes X#report = yes X#alarmhandler = /ets/smsevent/smsevent X#pin = 0000 X#smsc = 4540390999 Xbaudrate = 9600 X X#[Mobil] X#init = at+cpms="ME" X#mode = new X#device = /dev/cuaa1 X#eventhandler = /etc/sms/sms2email.sh X#incoming = no X#cs_convert = yes X#report = yes X#alarmhandler = /ets/smsevent/smsevent X#pin = 0000 X#smsc = 4540390999 X#baudrate = 9600 END-of-smstools/files/smsd.conf.jo echo x - smstools/Makefile sed 's/^X//' >smstools/Makefile << 'END-of-smstools/Makefile' X# New ports collection makefile for: smstools X# Date created: 06-11-2004 X# Whom: Benny Kjaergaard X# X# $FreeBSD$ X# X XPORTNAME= smstools XPORTVERSION= 1.14.6 XCATEGORIES= comms XMASTER_SITES= http://smstools.meinemullemaus.de/packages/ X XMAINTAINER= bennyk@wax.dk XCOMMENT= Tools to handle Short Message Service X XBUILD_DEPENDS= mm:${PORTSDIR}/devel/mm X XWRKSRC= ${WRKDIR}/smstools XUSE_GMAKE= YES X X.include END-of-smstools/Makefile echo x - smstools/pkg-descr sed 's/^X//' >smstools/pkg-descr << 'END-of-smstools/pkg-descr' XSMS server tools , utils to handle a sms gateway X Xfor more info see authors site at: X XWWW: http://smstools.meinemullemaus.de/ X X- Benny Xbennyk@wax.dk END-of-smstools/pkg-descr echo x - smstools/distinfo sed 's/^X//' >smstools/distinfo << 'END-of-smstools/distinfo' XMD5 (smstools-1.14.6.tar.gz) = c8c5bb26ed78d5fca1d978bbc97d70bd XSIZE (smstools-1.14.6.tar.gz) = 311672 END-of-smstools/distinfo echo x - smstools/pkg-plist sed 's/^X//' >smstools/pkg-plist << 'END-of-smstools/pkg-plist' Xbin/email2sms Xbin/sendsms Xbin/smsresend Xbin/smsd Xbin/getsms Xbin/putsms Xetc/rc.d/sms.sh.sample Xetc/smsd.conf END-of-smstools/pkg-plist exit --- a ends here --- >Release-Note: >Audit-Trail: >Unformatted: