3.0.9 came out of beta so I have updated this, tested with
nokia 9300i (damn useful device) over USB on i386/amd64.
I don't have a long enough cable to reach my sparc64 (ca.
300km) to try that. (-:

"The SMS Server Tools 3 is a SMS Gateway software which can send and
receive short messages through GSM modems and mobile phones.

You can send short messages by simply storing text files into a
special spool directory. The program monitors this directory and
sends new files automatically. It also stores received short messages
into another directory as text files."

Might work with some 3G datacards/phones too, I don't know, it seems
they have the same basic command set.

any comments? please commit if ok.

(diff from /usr/ports including user.list; yes that's right,
no patches)

Index: infrastructure/db/user.list
===================================================================
RCS file: /cvs/ports/infrastructure/db/user.list,v
retrieving revision 1.75
diff -u -p -r1.75 user.list
--- infrastructure/db/user.list 7 Jun 2007 13:10:34 -0000       1.75
+++ infrastructure/db/user.list 9 Jul 2007 22:04:19 -0000
@@ -98,3 +98,4 @@ id  user              group           port options
 587 _darkstat          _darkstat       net/darkstat
 588 _dansguardian      _dansguardian   www/dansguardian
 589 _sdpd              _sdpd           net/bluetooth-tools
+590 _smsd              _smsd           comms/smstools
cvs server: Diffing comms/smstools
Index: comms/smstools/Makefile
===================================================================
RCS file: comms/smstools/Makefile
diff -N comms/smstools/Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ comms/smstools/Makefile     9 Jul 2007 22:04:19 -0000
@@ -0,0 +1,46 @@
+# $OpenBSD: Makefile.template,v 1.51 2007/06/18 15:21:10 espie Exp $
+
+COMMENT=               "gateway to send and receive SMS through GSM mobile 
phones"
+
+V=                     3.0.9
+DISTNAME=              smstools3-${V}
+PKGNAME=               smstools-${V}
+
+CATEGORIES=            comms
+
+HOMEPAGE=              http://smstools3.kekekasvi.com/
+
+MAINTAINER=            Stuart Henderson <[EMAIL PROTECTED]>
+
+#GPLv2
+PERMIT_PACKAGE_CDROM=  Yes
+PERMIT_PACKAGE_FTP=    Yes
+PERMIT_DISTFILES_CDROM=        Yes
+PERMIT_DISTFILES_FTP=  Yes
+
+WANTLIB=               c
+
+MASTER_SITES=          ${HOMEPAGE}/packages/
+
+USE_GMAKE=             Yes
+NO_REGRESS=            Yes
+WRKDIST=               ${WRKDIR}/smstools3
+WRKSRC=                        ${WRKDIST}/src
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/smsd ${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKDIST}/scripts/{sendsms,sms2html} \
+               ${WRKDIST}/scripts/{sms2unicode,unicode2sms} \
+               ${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smstools
+       ${INSTALL_DATA} ${WRKDIST}/examples/smsd.conf.full \
+               ${PREFIX}/share/examples/smstools
+       ${INSTALL_DATA} ${FILESDIR}/smsd.conf.openbsd \
+               ${PREFIX}/share/examples/smstools
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smstools
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smstools/slideshow
+       ${INSTALL_DATA} ${WRKDIST}/doc/*html ${PREFIX}/share/doc/smstools
+       ${INSTALL_DATA} ${WRKDIST}/doc/slideshow/* \
+               ${PREFIX}/share/doc/smstools/slideshow
+
+.include <bsd.port.mk>
Index: comms/smstools/distinfo
===================================================================
RCS file: comms/smstools/distinfo
diff -N comms/smstools/distinfo
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ comms/smstools/distinfo     9 Jul 2007 22:04:19 -0000
@@ -0,0 +1,5 @@
+MD5 (smstools3-3.0.9.tar.gz) = EuzU+qP6/7VNv5zcm+BCPA==
+RMD160 (smstools3-3.0.9.tar.gz) = We6gAp41+GKBRiSxDkgqZ3jE2AY=
+SHA1 (smstools3-3.0.9.tar.gz) = j5UoFX9Cq+t3IDmmJTrGhlAmVA8=
+SHA256 (smstools3-3.0.9.tar.gz) = Nw+XyzWl6fIK6yA4lKQD2dlid2KSvizouVeKaOs9/h0=
+SIZE (smstools3-3.0.9.tar.gz) = 210582
cvs server: Diffing comms/smstools/files
Index: comms/smstools/files/smsd.conf.openbsd
===================================================================
RCS file: comms/smstools/files/smsd.conf.openbsd
diff -N comms/smstools/files/smsd.conf.openbsd
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ comms/smstools/files/smsd.conf.openbsd      9 Jul 2007 22:04:19 -0000
@@ -0,0 +1,32 @@
+# $OpenBSD$
+
+devices = GSM1
+#devices = GSM1, GSM2
+loglevel = 7
+
+# setuid() to this user:
+user = _smsd
+# it's possible to setgid too, but default is the set of
+# groups from /etc/groups
+
+pidfile = /var/run/smsd/smsd.pid
+infofile = /var/run/smsd/smsd.info
+
+#logfile = syslog
+logfile = /var/log/smsd/smsd.log
+
+[GSM1]
+# A sample USB device with typical broken rtscts, so use
+# a send delay to reduce the risk of overruns. Some PC cards
+# also break rts/cts. For this one I have set incoming=no
+# so it doesn't pull the existing messages off the phone.
+device = /dev/cuaU0
+incoming = no
+rtscts = no
+send_delay = 20
+
+[GSM2]
+device = /dev/cua00
+incoming = yes
+#pin = 1111
+# pin is normally used only with data cards, not phones
cvs server: Diffing comms/smstools/patches
cvs server: Diffing comms/smstools/pkg
Index: comms/smstools/pkg/DESCR
===================================================================
RCS file: comms/smstools/pkg/DESCR
diff -N comms/smstools/pkg/DESCR
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ comms/smstools/pkg/DESCR    9 Jul 2007 22:04:19 -0000
@@ -0,0 +1,22 @@
+The SMS Server Tools 3 is a SMS Gateway software which can send and
+receive short messages through GSM modems and mobile phones.
+
+You can send short messages by simply storing text files into a
+special spool directory. The program monitors this directory and
+sends new files automatically. It also stores received short messages
+into another directory as text files. Binary messages (including
+Unicode text) are also supported, for example ring tone messages.
+It's also possible to send a WAP Push message to the WAP / MMS
+capable mobile phone.
+
+The program can run other external programs or scripts after events
+like reception of a new message, successful sending and also when
+the program detects a problem. These programs can inspect the related
+text files and perform automatic actions, for example storing
+information into a database, sending an automatic reply, forwarding
+messages via eMail (SMS to eMail gateway), ... and whatever you like.
+
+This software needs a GSM modem (or mobile phone) with SMS command
+set according to the european specifications GSM 07.05 (=ETSI TS
+300 585) and GSM 03.38 (=ETSI TS 100 900). AT command set is
+supported.
Index: comms/smstools/pkg/MESSAGE
===================================================================
RCS file: comms/smstools/pkg/MESSAGE
diff -N comms/smstools/pkg/MESSAGE
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ comms/smstools/pkg/MESSAGE  9 Jul 2007 22:04:19 -0000
@@ -0,0 +1,10 @@
+To have smsd start at boot time, you have to adapt
+${SYSCONFDIR}/smsd.conf and insert the following into /etc/rc.local.
+
+if [ -x ${PREFIX}/bin/smsd ]; then
+       install -d -o _smsd /var/run/smsd
+       echo -n ' smsd';        ${PREFIX}/bin/smsd
+fi
+
+smsd needs access to the serial port; this can be done by adding
+the _smsd user to 'dialer' in ${SYSCONFDIR}/group.
Index: comms/smstools/pkg/PLIST
===================================================================
RCS file: comms/smstools/pkg/PLIST
diff -N comms/smstools/pkg/PLIST
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ comms/smstools/pkg/PLIST    9 Jul 2007 22:04:19 -0000
@@ -0,0 +1,68 @@
[EMAIL PROTECTED] $OpenBSD$
[EMAIL PROTECTED] _smsd:590
[EMAIL PROTECTED] _smsd:590:_smsd:daemon:smsd user:/nonexistent:/sbin/nologin
+bin/sendsms
+bin/sms2html
+bin/sms2unicode
+bin/smsd
+bin/unicode2sms
+share/doc/${BASE_PKGPATH}/
+share/doc/${BASE_PKGPATH}/alarmhandler.html
+share/doc/${BASE_PKGPATH}/blacklist.html
+share/doc/${BASE_PKGPATH}/book.html
+share/doc/${BASE_PKGPATH}/buch.html
+share/doc/${BASE_PKGPATH}/compiling.html
+share/doc/${BASE_PKGPATH}/configure.html
+share/doc/${BASE_PKGPATH}/configure2.html
+share/doc/${BASE_PKGPATH}/costs.html
+share/doc/${BASE_PKGPATH}/eventhandler.html
+share/doc/${BASE_PKGPATH}/faq.html
+share/doc/${BASE_PKGPATH}/fileformat.html
+share/doc/${BASE_PKGPATH}/gpl.html
+share/doc/${BASE_PKGPATH}/gpl_de.html
+share/doc/${BASE_PKGPATH}/hardwarecomp.html
+share/doc/${BASE_PKGPATH}/history3.html
+share/doc/${BASE_PKGPATH}/index.html
+share/doc/${BASE_PKGPATH}/license.html
+share/doc/${BASE_PKGPATH}/links.html
+share/doc/${BASE_PKGPATH}/references.html
+share/doc/${BASE_PKGPATH}/run.html
+share/doc/${BASE_PKGPATH}/slideshow/
+share/doc/${BASE_PKGPATH}/slideshow/blacklist.gif
+share/doc/${BASE_PKGPATH}/slideshow/eventhandler.gif
+share/doc/${BASE_PKGPATH}/slideshow/logfile.gif
+share/doc/${BASE_PKGPATH}/slideshow/modem.gif
+share/doc/${BASE_PKGPATH}/slideshow/move_l.gif
+share/doc/${BASE_PKGPATH}/slideshow/move_r.gif
+share/doc/${BASE_PKGPATH}/slideshow/page1.html
+share/doc/${BASE_PKGPATH}/slideshow/page2.gif
+share/doc/${BASE_PKGPATH}/slideshow/page2.html
+share/doc/${BASE_PKGPATH}/slideshow/page2b.html
+share/doc/${BASE_PKGPATH}/slideshow/page3.html
+share/doc/${BASE_PKGPATH}/slideshow/page4.html
+share/doc/${BASE_PKGPATH}/slideshow/page5.html
+share/doc/${BASE_PKGPATH}/slideshow/page6.html
+share/doc/${BASE_PKGPATH}/slideshow/page7.html
+share/doc/${BASE_PKGPATH}/slideshow/page8.html
+share/doc/${BASE_PKGPATH}/slideshow/queue.gif
+share/doc/${BASE_PKGPATH}/slideshow/sms.gif
+share/doc/${BASE_PKGPATH}/slideshow/statistic.gif
+share/doc/${BASE_PKGPATH}/slideshow/status.gif
+share/doc/${BASE_PKGPATH}/softwarecomp.html
+share/doc/${BASE_PKGPATH}/statformat.html
+share/doc/${BASE_PKGPATH}/statusmonitor.html
+share/doc/${BASE_PKGPATH}/support.html
+share/doc/${BASE_PKGPATH}/udh.html
+share/doc/${BASE_PKGPATH}/windows.html
+share/examples/${BASE_PKGPATH}/
+share/examples/${BASE_PKGPATH}/smsd.conf.full
+share/examples/${BASE_PKGPATH}/smsd.conf.openbsd
[EMAIL PROTECTED] ${SYSCONFDIR}/smsd.conf
[EMAIL PROTECTED] /var/spool/sms/
[EMAIL PROTECTED] 770
[EMAIL PROTECTED] _smsd
[EMAIL PROTECTED] _smsd
[EMAIL PROTECTED] /var/log/smsd/
[EMAIL PROTECTED] /var/spool/sms/incoming/
[EMAIL PROTECTED] /var/spool/sms/checked/
[EMAIL PROTECTED] /var/spool/sms/outgoing/

Reply via email to