Date: Sat, 16 Apr 2005 00:35:31 +0200 (CEST) From: Benny Kjrgaard <benny@catpipe.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/79987: NEW PORT comms/smstools followup ! Message-ID: <200504152235.j3FMZVLt009948@lillemis.catpipe.net> Resent-Message-ID: <200504152240.j3FMe7HY055777@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79987 >Category: ports >Synopsis: NEW PORT comms/smstools followup ! >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 15 22:40:07 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Benny Kj‘rgaard >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD lillemis.catpipe.net 6.0-CURRENT FreeBSD 6.0-CURRENT #8: Wed Apr 13 17:31:43 CEST 2005 benny@lillemis.catpipe.net:/usr/obj/usr/src/sys/LILLEMIS i386 # 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: # # . # ./port # ./CVS # ./CVS/Repository # ./CVS/Entries # ./CVS/Root # ./files # ./files/CVS # ./files/CVS/Repository # ./files/CVS/Entries # ./files/CVS/Root # ./files/patch-install.sub # ./files/patch-Makefile # ./files/patch-bin::sms # ./files/patch-examples::smsd.conf.easy # ./files/patch-examples::smsd.conf.full # ./files/patch-src::smsd_cfg.c # ./files/smsd.conf.jo # ./pkg-plist # ./.directory # ./Makefile # ./distinfo # ./pkg-descr # echo c - . mkdir -p . > /dev/null 2>&1 echo x - ./port sed 's/^X//' >./port << 'END-of-./port' X# This is a shell archive. Save it in a file, remove anything before X# this line, and then unpack it by entering "sh file". Note, it may X# create directories; files and directories will be owned by you and X# have default permissions. X# X# This archive contains: X# X# . X# ./port X# ./CVS X# ./CVS/Repository X# ./CVS/Entries X# ./CVS/Root X# ./files X# ./files/CVS X# ./files/CVS/Repository X# ./files/CVS/Entries X# ./files/CVS/Root X# ./files/patch-install.sub X# ./files/patch-Makefile X# ./files/patch-bin::sms X# ./files/patch-examples::smsd.conf.easy X# ./files/patch-examples::smsd.conf.full X# ./files/patch-src::smsd_cfg.c X# ./files/smsd.conf.jo X# ./pkg-plist X# ./.directory X# ./Makefile X# ./distinfo X# ./pkg-descr X# Xecho c - . Xmkdir -p . > /dev/null 2>&1 Xecho x - ./port Xsed 's/^X//' >./port << 'END-of-./port' END-of-./port echo c - ./CVS mkdir -p ./CVS > /dev/null 2>&1 echo x - ./CVS/Repository sed 's/^X//' >./CVS/Repository << 'END-of-./CVS/Repository' Xprojects/smstools END-of-./CVS/Repository echo x - ./CVS/Entries sed 's/^X//' >./CVS/Entries << 'END-of-./CVS/Entries' XD/files//// X/Makefile/1.2/Wed Jan 26 09:57:12 2005// X/distinfo/1.2/Wed Jan 26 09:57:33 2005// X/pkg-descr/1.1.1.1/Thu Dec 30 19:25:09 2004// X/pkg-plist/1.1.1.1/Thu Dec 30 19:25:09 2004// END-of-./CVS/Entries echo x - ./CVS/Root sed 's/^X//' >./CVS/Root << 'END-of-./CVS/Root' X:ext:cvs.catpipe.net:/data/cvsroot/catpipe END-of-./CVS/Root echo c - ./files mkdir -p ./files > /dev/null 2>&1 echo c - ./files/CVS mkdir -p ./files/CVS > /dev/null 2>&1 echo x - ./files/CVS/Repository sed 's/^X//' >./files/CVS/Repository << 'END-of-./files/CVS/Repository' Xprojects/smstools/files END-of-./files/CVS/Repository echo x - ./files/CVS/Entries sed 's/^X//' >./files/CVS/Entries << 'END-of-./files/CVS/Entries' X/patch-Makefile/1.1.1.1/Thu Dec 30 19:25:08 2004// X/patch-bin::sms/1.1.1.1/Thu Dec 30 19:25:08 2004// X/patch-examples::smsd.conf.easy/1.1.1.1/Thu Dec 30 19:25:09 2004// X/patch-examples::smsd.conf.full/1.1.1.1/Thu Dec 30 19:25:09 2004// X/patch-install.sub/1.1.1.1/Thu Dec 30 19:25:09 2004// X/patch-src::smsd_cfg.c/1.1.1.1/Thu Dec 30 19:25:09 2004// X/smsd.conf.jo/1.1.1.1/Thu Dec 30 19:25:09 2004// XD END-of-./files/CVS/Entries echo x - ./files/CVS/Root sed 's/^X//' >./files/CVS/Root << 'END-of-./files/CVS/Root' X:ext:cvs.catpipe.net:/data/cvsroot/catpipe END-of-./files/CVS/Root echo x - ./files/patch-install.sub sed 's/^X//' >./files/patch-install.sub << 'END-of-./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-./files/patch-install.sub echo x - ./files/patch-Makefile sed 's/^X//' >./files/patch-Makefile << 'END-of-./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-./files/patch-Makefile echo x - ./files/patch-bin::sms sed 's/^X//' >./files/patch-bin::sms << 'END-of-./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-./files/patch-bin::sms echo x - ./files/patch-examples::smsd.conf.easy sed 's/^X//' >./files/patch-examples::smsd.conf.easy << 'END-of-./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-./files/patch-examples::smsd.conf.easy echo x - ./files/patch-examples::smsd.conf.full sed 's/^X//' >./files/patch-examples::smsd.conf.full << 'END-of-./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-./files/patch-examples::smsd.conf.full echo x - ./files/patch-src::smsd_cfg.c sed 's/^X//' >./files/patch-src::smsd_cfg.c << 'END-of-./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-./files/patch-src::smsd_cfg.c echo x - ./files/smsd.conf.jo sed 's/^X//' >./files/smsd.conf.jo << 'END-of-./files/smsd.conf.jo' X# My 1st. smsd.conf. Monday 6. Sep. 2004 X# X# <Main Settings> 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# <Queues> X# X[Queues] X X# <Providers> X# X[Providers] X X# <Modems> 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-./files/smsd.conf.jo echo x - ./pkg-plist sed 's/^X//' >./pkg-plist << 'END-of-./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-./pkg-plist echo x - ./.directory sed 's/^X//' >./.directory << 'END-of-./.directory' X[Desktop Entry] XIcon=modem END-of-./.directory echo x - ./Makefile sed 's/^X//' >./Makefile << 'END-of-./Makefile' X# New ports collection makefile for: smstools X# Date created: 06-11-2004 X# Whom: Benny Kjaergaard <bennyk@wax.dk> X# X# $FreeBSD$ X# X XPORTNAME= smstools XPORTVERSION= 1.14.8 XCATEGORIES= comms XMASTER_SITES= http://smstools.meinemullemaus.de/packages/ X XMAINTAINER= bennyk@wax.dk XCOMMENT= Tools to handle Short Message Service X XLIB_DEPENDS= mm:${PORTSDIR}/devel/mm X XWRKSRC= ${WRKDIR}/smstools XUSE_GMAKE= YES X X.include <bsd.port.mk> END-of-./Makefile echo x - ./distinfo sed 's/^X//' >./distinfo << 'END-of-./distinfo' XMD5 (smstools-1.14.8.tar.gz) = 85b342e53d7fdde89ef25ad21e1c5fe0 XSIZE (smstools-1.14.8.tar.gz) = 158423 END-of-./distinfo echo x - ./pkg-descr sed 's/^X//' >./pkg-descr << 'END-of-./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-./pkg-descr exit >Description: >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504152235.j3FMZVLt009948>