Skip to content

Commit

Permalink
install an rc.d script for smstools
Browse files Browse the repository at this point in the history
  • Loading branch information
sthen committed Mar 2, 2011
1 parent 0a6f52e commit 84ceb3e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion comms/smstools/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.21 2010/11/15 00:22:50 espie Exp $
# $OpenBSD: Makefile,v 1.22 2011/03/02 08:39:13 sthen Exp $

COMMENT = gateway to send and receive SMS through GSM mobile phones

DISTNAME = smstools3-3.1.14
REVISION = 0

CATEGORIES = comms

Expand Down
5 changes: 4 additions & 1 deletion comms/smstools/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.6 2010/06/30 22:23:44 sthen Exp $
@comment $OpenBSD: PLIST,v 1.7 2011/03/02 08:39:13 sthen Exp $
@conflict gnokii-*
@newgroup _smsd:590
@newuser _smsd:590:_smsd:daemon:smsd user:/nonexistent:/sbin/nologin
Expand Down Expand Up @@ -100,3 +100,6 @@ share/examples/smstools/smsd.conf.openbsd
@sample /var/spool/sms/outgoing/
@extraunexec rm -rf /var/spool/sms
@extraunexec rm -rf /var/log/smsd
@owner
@group
@rcscript ${RCDIR}/smsd
13 changes: 13 additions & 0 deletions comms/smstools/pkg/smsd.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
#
# $OpenBSD: smsd.rc,v 1.1 2011/03/02 08:39:13 sthen Exp $

daemon="${TRUEPREFIX}/bin/smsd"

. /etc/rc.d/rc.subr

rc_pre() {
install -d -o _smsd /var/run/smsd
}

rc_cmd $1

0 comments on commit 84ceb3e

Please sign in to comment.