ports/80511: smstools port update (#80025)
Benny Kjrgaard
benny at catpipe.net
Sun May 1 18:20:03 UTC 2005
>Number: 80511
>Category: ports
>Synopsis: smstools port update (#80025)
>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: Sun May 01 18:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Benny Kjrgaard
>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 at 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:
#
# .
# ./files
# ./files/patch-install.sub
# ./files/patch-Makefile
# ./files/patch-examples_smsd.conf.full
# ./files/patch-src_smsd_cfg.c
# ./files/patch-bin_sms
# ./files/patch-examples_smsd.conf.easy
# ./Makefile
# ./distinfo
# ./pkg-descr
# ./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-install.sub
sed 's/^X//' >./files/patch-install.sub << 'END-of-./files/patch-install.sub'
X--- install.sub.orig Wed Apr 21 22:37:00 2004
X+++ install.sub Sun May 1 19:37:23 2005
X@@ -15,19 +15,24 @@
X exit 1
X fi
X echo "Installing"
X-cp bin/smsd* bin/getsms* bin/putsms* /usr/local/bin
X-copy bin/smsevent /usr/local/bin/smsevent
X-copy bin/mysmsd /usr/local/bin/mysmsd
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+cp bin/smsd* bin/getsms* bin/putsms* %%PREFIX%%/bin
X+copy bin/smsevent %%PREFIX%%/bin/smsevent
X+copy bin/mysmsd %%PREFIX%%/bin/mysmsd
X+copy bin/email2sms %%PREFIX%%/bin/email2sms
X+copy bin/sendsms %%PREFIX%%/bin/sendsms
X+copy bin/smsresend %%PREFIX%%/bin/smsresend
X+copy examples/smsd.conf.easy %%PREFIX%%/etc/smsd.conf
X+rm examples/.qmailrc
X+rm examples/.procmailrc
X+[ -d %%PREFIX%%/etc/rc.d ] && copy bin/sms /usr/local/etc/rc.d/smsd.sh.sample
X+[ -d %%EXAMPLESDIR%% ] || mkdir -p %%EXAMPLESDIR%%
X+[ -d %%EXAMPLESDIR%% ] && cp -R examples/* %%EXAMPLESDIR%%
X+[ -d %%DOCSDIR%% ] || mkdir -p %%DOCSDIR%%
X+[ -d %%DOCSDIR%% ] && cp -R doc/* %%DOCSDIR%%
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 %%PREFIX%%/etc/smsd.conf.'
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-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 %%PREFIX%%/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,"%%PREFIX%%/etc/smsd.conf");
X debug=0;
X printstatus=0;
X
END-of-./files/patch-src_smsd_cfg.c
echo x - ./files/patch-bin_sms
sed 's/^X//' >./files/patch-bin_sms << 'END-of-./files/patch-bin_sms'
X--- bin/sms.orig Sun Apr 17 12:56:51 2005
X+++ bin/sms Sun Apr 17 12:58:09 2005
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 %%PREFIX%%/etc/rc.conf to enable smsd:
X+#
X+# smsd_enable="YES"
X+#
X+smsd_enable=${smsd_enable-"NO"}
X+smsd_flags=${smsd_flags-""}
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+. /etc/rc.subr
X+
X+name=smsd
X+rcvar=`set_rcvar`
X+
X+command="find /var/spool/sms -name '*.LOCK' -exec rm {} \; %%PREFIX%%/sbin/${name}"
X+pidfile=/var/run/${name}.pid
X+sig_stop=-KILL
X+
X+load_rc_config ${name}
X+run_rc_command "$1"
X
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 - ./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 at 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 at wax.dk
XCOMMENT= Tools to handle Short Message Service
X
XLIB_DEPENDS= mm:${PORTSDIR}/devel/mm
X
XWRKSRC= ${WRKDIR}/smstools
XUSE_GMAKE= yes
XUSE_REINPLACE= yes
X
Xpost-patch:
X echo "${EXAMPLESDIR}"
X @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
X ${WRKSRC}/src/smsd_cfg.c \
X ${WRKSRC}/install.sub \
X ${WRKSRC}/Makefile \
X ${WRKSRC}/examples/smsd.conf.easy \
X ${WRKSRC}/examples/smsd.conf.full \
X ${WRKSRC}/bin/sms
X
X @${REINPLACE_CMD} -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" ${WRKSRC}/install.sub
X @${REINPLACE_CMD} -e "s|%%DOCSDIR%%|${DOCSDIR}|g" ${WRKSRC}/install.sub
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 at wax.dk
END-of-./pkg-descr
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
Xbin/mysmsd
Xbin/smsevent
Xetc/rc.d/smsd.sh.sample
Xetc/smsd.conf
X%%EXAMPLESDIR%%/operator_logo2.sms
X%%EXAMPLESDIR%%/received_report.sms
X%%EXAMPLESDIR%%/received_sms.sms
X%%EXAMPLESDIR%%/send_sms.sms
X%%EXAMPLESDIR%%/smsd.black
X%%EXAMPLESDIR%%/smsd.conf.easy
X%%EXAMPLESDIR%%/smsd.conf.full
X%%EXAMPLESDIR%%/sql_demo
X%%EXAMPLESDIR%%/smsd.conf.easy.orig
X%%EXAMPLESDIR%%/smsd.conf.full.orig
X%%EXAMPLESDIR%%/smsd.conf.full.bak
X%%EXAMPLESDIR%%/smsd.conf.easy.bak
X%%EXAMPLESDIR%%/operator_logo1.sms
X
X%%DOCSDIR%%/html/slideshow/status.gif
X%%DOCSDIR%%/html/slideshow/eventhandler.gif
X%%DOCSDIR%%/html/slideshow/logfile.gif
X%%DOCSDIR%%/html/slideshow/modem.gif
X%%DOCSDIR%%/html/slideshow/move_l.gif
X%%DOCSDIR%%/html/slideshow/move_r.gif
X%%DOCSDIR%%/html/slideshow/page1.html
X%%DOCSDIR%%/html/slideshow/page2.html
X%%DOCSDIR%%/html/slideshow/page3.html
X%%DOCSDIR%%/html/slideshow/page4.html
X%%DOCSDIR%%/html/slideshow/page5.html
X%%DOCSDIR%%/html/slideshow/page6.html
X%%DOCSDIR%%/html/slideshow/page7.html
X%%DOCSDIR%%/html/slideshow/page8.html
X%%DOCSDIR%%/html/slideshow/queue.gif
X%%DOCSDIR%%/html/slideshow/sms.gif
X%%DOCSDIR%%/html/slideshow/statistic.gif
X%%DOCSDIR%%/html/slideshow/blacklist.gif
X%%DOCSDIR%%/html/blacklist.html
X%%DOCSDIR%%/html/book.html
X%%DOCSDIR%%/html/butterfly.gif
X%%DOCSDIR%%/html/compiling.html
X%%DOCSDIR%%/html/configure.html
X%%DOCSDIR%%/html/configure2.html
X%%DOCSDIR%%/html/contact.html
X%%DOCSDIR%%/html/costs.html
X%%DOCSDIR%%/html/download.html
X%%DOCSDIR%%/html/email.png
X%%DOCSDIR%%/html/book.html~
X%%DOCSDIR%%/html/eventhandler.html
X%%DOCSDIR%%/html/faq.html
X%%DOCSDIR%%/html/fileformat.html
X%%DOCSDIR%%/html/gpl.html
X%%DOCSDIR%%/html/gpl_de.html
X%%DOCSDIR%%/html/gsmmodem.html
X%%DOCSDIR%%/html/hardwarecomp.html
X%%DOCSDIR%%/html/history.html
X%%DOCSDIR%%/html/index.html
X%%DOCSDIR%%/html/index.html~
X%%DOCSDIR%%/html/key.png
X%%DOCSDIR%%/html/license.html
X%%DOCSDIR%%/html/links.html
X%%DOCSDIR%%/html/logging.html
X%%DOCSDIR%%/html/mnp.html
X%%DOCSDIR%%/html/news.html
X%%DOCSDIR%%/html/public_key_stefan_frings.txt
X%%DOCSDIR%%/html/quotes.html
X%%DOCSDIR%%/html/redundancy.html
X%%DOCSDIR%%/html/referenzen.html
X%%DOCSDIR%%/html/run.html
X%%DOCSDIR%%/html/softwarecomp.html
X%%DOCSDIR%%/html/sql.html
X%%DOCSDIR%%/html/sql2.html
X%%DOCSDIR%%/html/statformat.html
X%%DOCSDIR%%/html/statusmonitor.html
X%%DOCSDIR%%/html/tc35.gif
X%%DOCSDIR%%/html/thanks.html
X%%DOCSDIR%%/html/twist.gif
X%%DOCSDIR%%/html/windows.html
X%%DOCSDIR%%/html/thanks.gif
X%%DOCSDIR%%/html/alarmhandler.html
X%%DOCSDIR%%/html/shippingdetails.html
X%%DOCSDIR%%/license.txt
X%%DOCSDIR%%/manual.html
X
X at dirrm %%EXAMPLESDIR%%
X at dirrm %%DOCSDIR%%/html/slideshow
X at dirrm %%DOCSDIR%%/html
X at dirrm %%DOCSDIR%%
END-of-./pkg-plist
exit
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list