--- smstools-1.16.orig/examples/smsd.conf.full +++ smstools-1.16/examples/smsd.conf.full @@ -6,20 +6,20 @@ #failed = /var/spool/sms/failed incoming = /var/spool/sms/incoming #sent = /var/spool/sms/sent -mypath = /usr/local/bin +mypath = /usr/bin #logfile = /var/log/smsd.log loglevel = 7 -#alarmhandler = /usr/local/bin/alarmevent +#alarmhandler = /usr/bin/alarmevent alarmlevel = 4 delaytime = 10 errorsleeptime = 10 blocktime = 3600 -#eventhandler = /usr/local/bin/smsevent +#eventhandler = /usr/bin/smsevent #stats = /var/log/smsd_stats #stats_interval = 3600 #blacklist = /etc/smsd.black #whitelist = /etc/smsd.white -#checkhandler = /usr/local/bin/smscheck +#checkhandler = /usr/bin/smscheck receive_before_send = no number_parts = yes @@ -57,7 +57,7 @@ rtscts = yes cs_convert = yes report = no -#eventhandler = /usr/local/bin/smsevent +#eventhandler = /usr/bin/smsevent [GSM2] init = ATE0 @@ -73,4 +73,4 @@ rtscts = yes cs_convert = yes report = no -#eventhandler = /usr/local/bin/smsevent +#eventhandler = /usr/bin/smsevent --- smstools-1.16.orig/src/Makefile +++ smstools-1.16/src/Makefile @@ -5,7 +5,7 @@ # CFLAGS = -D SOLARIS # Comment this out, to enable statistics -CFLAGS += -D NOSTATS +#CFLAGS += -D NOSTATS # Uncomment to add debug info # CFLAGS += -ggdb -O0 --- smstools-1.16.orig/src/smsd_cfg.c +++ smstools-1.16/src/smsd_cfg.c @@ -48,7 +48,7 @@ strcpy(d_spool,"/var/spool/sms/outgoing"); strcpy(d_incoming,"/var/spool/sms/incoming"); strcpy(d_checked,"/var/spool/sms/checked"); - strcpy(mypath,"/usr/local/bin"); + strcpy(mypath,"/usr/bin"); d_failed[0]=0; logfile[0]=0; d_sent[0]=0; --- smstools-1.16.orig/debian/changelog +++ smstools-1.16/debian/changelog @@ -0,0 +1,244 @@ +smstools (1.16-1build1) dapper; urgency=low + + * Rebuild for new libmm. + + -- Trent Lloyd Fri, 10 Feb 2006 22:46:26 +0800 + +smstools (1.16-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 1 Oct 2005 21:53:14 +0100 + +smstools (1.15.7-1) unstable; urgency=low + + * New upstream release + * lintian cleanup copyright + + -- Mark Purcell Thu, 1 Sep 2005 20:01:37 +0100 + +smstools (1.14.10-1) unstable; urgency=low + + * New upstream release + * Spring clean minor issues from BTS + + Closes: #255031: /var/spool/sms/checked not created + + Closes: #243225: Slightly new and improved initscript + + Closes: #169110: Package lacks initscript in /etc/init.d/ + + Closes: #255026: path to getsms/putsms wrong in log files + + Closes: #255022: init script doesn't detach from terminal + + -- Mark Purcell Mon, 16 May 2005 10:34:45 +0100 + +smstools (1.14.8-1) unstable; urgency=low + + * New upstream release (Closes: Bug#292574) + * Update debian/{watch,copyright,control} to reflect new upstream site + + -- Mark Purcell Sun, 6 Feb 2005 21:04:15 +0000 + +smstools (1.14.5-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Mon, 23 Aug 2004 02:09:07 +1000 + +smstools (1.14.3-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 22 Apr 2004 23:57:11 +1000 + +smstools (1.14.2-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 8 Apr 2004 17:31:42 +1000 + +smstools (1.14.1-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 13 Mar 2004 17:42:05 +1100 + +smstools (1.14-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 26 Feb 2004 18:07:53 +1100 + +smstools (1.13.1-1) unstable; urgency=low + + * New upstream release + * Use examples/smsd.conf.easy as default config + + -- Mark Purcell Tue, 24 Feb 2004 12:12:28 +1100 + +smstools (1.13-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Tue, 13 Jan 2004 10:00:54 +1100 + +smstools (1.12.5-2) unstable; urgency=low + + * Build Depends: libmm-dev (>= 1.2.1-1) | libmm11-dev + + -- Mark Purcell Sat, 3 Jan 2004 14:24:54 +1100 + +smstools (1.12.5-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 6 Nov 2003 23:42:10 +1100 + +smstools (1.12.3-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Wed, 1 Oct 2003 21:50:04 +1000 + +smstools (1.12-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sun, 6 Jul 2003 22:20:22 +1000 + +smstools (1.9.0-1) unstable; urgency=low + + * New upstream release + * dh_installexamples examples/.[a-z]* (Closes: Bug#169112) + * Create /var/spool/sms/sent (Closes: Bug#169113) + + -- Mark Purcell Sun, 23 Mar 2003 14:29:38 +1100 + +smstools (1.8.0-2) unstable; urgency=low + + * Rebuild with libmm-dev_1.3.0 + + -- Mark Purcell Sun, 23 Mar 2003 10:18:45 +1100 + +smstools (1.8.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Mon, 30 Dec 2002 08:45:16 +1100 + +smstools (1.7.4-2) unstable; urgency=low + + * dh_installexamples examples/.[a-z]* (Closes: Bug#169112) + * Create /var/spool/sms/sent (Closes: Bug#169113) + + -- Mark Purcell Fri, 15 Nov 2002 20:23:09 +1100 + +smstools (1.7.4-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sun, 8 Sep 2002 22:03:50 +1000 + +smstools (1.7.1-2) unstable; urgency=low + + * Rebuild against libmm-dev >= 1.2.1-1 (Closes: Bug#155041) + + -- Mark Purcell Thu, 1 Aug 2002 17:30:36 +1000 + +smstools (1.7.1-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 27 Jul 2002 20:14:47 +1000 + +smstools (1.7.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 29 Jun 2002 03:36:32 +1000 + +smstools (1.6.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 8 Jun 2002 08:03:50 +1000 + +smstools (1.5.4-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 27 Apr 2002 14:06:36 +1000 + +smstools (1.5.0-2) unstable; urgency=low + + * lintian cleanup. Add man pages: getsms.1 putsms.1 smsd.8 + + -- Mark Purcell Sun, 7 Apr 2002 22:29:11 +1000 + +smstools (1.5.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sun, 7 Apr 2002 09:26:03 +1000 + +smstools (1.4.9-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Mon, 18 Mar 2002 22:53:30 +1100 + +smstools (1.4.7-1) unstable; urgency=high + + * New upstream release. Security fix (see changelog) + + -- Mark Purcell Sat, 9 Mar 2002 19:54:50 +1100 + +smstools (1.4.6-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Mon, 18 Feb 2002 18:37:04 +1100 + +smstools (1.4.2-2) unstable; urgency=low + + * Back out mkstemp patch + + -- Mark Purcell Sun, 13 Jan 2002 08:07:07 +1100 + +smstools (1.4.2-1) unstable; urgency=low + + * New upstream release + * Update debian/watch - still doesn't work, but getting closer :-) + + -- Mark Purcell Thu, 27 Dec 2001 22:09:46 +1100 + +smstools (1.3.8-2) unstable; urgency=low + + * Fix broken arch-independent debian/rules + + -- Mark Purcell Mon, 26 Nov 2001 23:02:47 +1100 + +smstools (1.3.8-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 24 Nov 2001 22:31:27 +1100 + +smstools (1.3.5-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sat, 13 Oct 2001 22:38:35 +1000 + +smstools (1.2.11-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Wed, 15 Aug 2001 22:58:58 +1000 + +smstools (1.2.9-1) unstable; urgency=low + + * Initial Release. (closes: bug#106543) + + -- Mark Purcell Wed, 25 Jul 2001 22:45:09 +1000 + +Local variables: +mode: debian-changelog +End: --- smstools-1.16.orig/debian/dirs +++ smstools-1.16/debian/dirs @@ -0,0 +1,8 @@ +usr/bin +usr/sbin +var/spool/sms +var/spool/sms/incoming +var/spool/sms/outgoing +var/spool/sms/failed +var/spool/sms/sent +var/spool/sms/checked --- smstools-1.16.orig/debian/copyright +++ smstools-1.16/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Mark Purcell on +Wed, 25 Jul 2001 22:45:09 +1000. + +It was downloaded from http://smstools.meinemullemaus.de/ + +Copyright Holder: + Copyright (C) Stefan Frings + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- smstools-1.16.orig/debian/control +++ smstools-1.16/debian/control @@ -0,0 +1,29 @@ +Source: smstools +Section: comm +Priority: optional +Maintainer: Mark Purcell +Build-Depends: debhelper (>> 3.0.0), help2man, libmm-dev +Standards-Version: 3.5.2 + +Package: smstools +Architecture: any +Depends: ${shlibs:Depends} +Description: SMS Server Tools for GSM modems + The SMS Server Tools make your server into a central + SMS gateway. You can send and receive SM using a simple + file-based interface. This Software was made for users + who send less than 20 000 messages each month. + . + There is an event-handler option that allows you to call + your own programs or scripts after sent or received SM. + . + The SMS Server Tools use one or more (max. 32) GSM modems + to send and receive SM. You can equip some modems with + Vodafone SIM cards and other with Telmi SIM cards (for + example), to save money. All SM are sorted in queues by + provider. If one modem fails it will be deactivated for + one hour before the software retries. The other modems + run without any restriction. You can log status information + and alarms using the syslog daemon of your operating system. + . + Upstream URL: http://smstools.meinemullemaus.de/ --- smstools-1.16.orig/debian/rules +++ smstools-1.16/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independent +# package. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + /usr/bin/help2man -v -h -N -n 'gets SMS using a GSM compatible modem' \ + -S 'Debian GNU/Linux' -o getsms.1 bin/getsms + /usr/bin/help2man -v -h -N -n 'sends SMS using a GSM compatible modem' \ + -S 'Debian GNU/Linux' -o putsms.1 bin/putsms + /usr/bin/help2man -v -h -N -n 'spools incoming and outgoing SMS' \ + -S 'Debian GNU/Linux' -o smsd.8 -s 8 bin/smsd + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -f smsd.8 putsms.1 getsms.1 + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/smstools. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/smstools + +# export DESTDIR=$(CURDIR)/debian/smstools +#nstall -d $(DESTDIR)/var/spool/sms +# install -d $(DESTDIR)/var/spool/sms/incoming +# install -d $(DESTDIR)/var/spool/sms/outgoing +# install -d $(DESTDIR)/var/spool/sms/failed + install -D -m 644 examples/smsd.conf.easy debian/smstools/etc/smsd.conf + install -D bin/* debian/smstools/usr/bin/ + install -D bin/smsd debian/smstools/usr/sbin/smsd + + #dh_movefiles + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs doc -X history.html + dh_installexamples examples/* examples/.[a-z]* debian/init.d scripts/* + dh_installmenu + dh_installinit + dh_installman getsms.1 putsms.1 smsd.8 + dh_installchangelogs doc/history.html + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- smstools-1.16.orig/debian/watch +++ smstools-1.16/debian/watch @@ -0,0 +1,11 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +#'http://www.isis.de/~s.frings/smstools/smstools-1.4.1.tar.gz' +#http://www.isis.de/~s.frings/smstools/download.html +#http://www.isis.de/~s.frings/smstools/smstools-1.4.9.tar.gz +#http://www.isis.de /~s.frings/smstools/download.html smstools-(.*)\\.tar\\.gz debian uupdate +version=2 +#http://www.isis.de/~s.frings/smstools/packages/smstools-(.*)\.tar\.gz debian uupdate +http://smstools.meinemullemaus.de/download.html packages/smstools-(.*)\.tar\.gz debian uupdate --- smstools-1.16.orig/debian/init.d +++ smstools-1.16/debian/init.d @@ -0,0 +1,74 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# +# Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl +# +# This file was automatically customized by dh-make on Wed, 25 Jul 2001 22:45:09 +1000 + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/smsd +NAME=smsd +DESC='SMS Daemon' + +test -f $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + find /var/spool/sms -name '*.LOCK' -exec rm {} \; + rm -f /var/run/$NAME.pid + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --background --exec $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON || true + sleep 1 + find /var/spool/sms -name '*.LOCK' -exec rm {} \; + rm -f /var/run/$NAME.pid + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --background --exec $DAEMON + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0