Skip to content

Commit

Permalink
Add a rc script.
Browse files Browse the repository at this point in the history
'looks fine' ajacoutot@
ok giovanni@, naddy@ (maintainer)
  • Loading branch information
David Coppa committed Jul 13, 2011
1 parent 57c5baa commit e680e6e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion net/aiccu/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.3 2010/10/18 18:36:45 espie Exp $
# $OpenBSD: Makefile,v 1.4 2011/07/13 15:27:44 dcoppa Exp $

COMMENT= SixXS automatic IPv6 connectivity client utility

VERSION= 20070115
DISTNAME= aiccu_${VERSION}
PKGNAME= aiccu-${VERSION}
REVISION= 0
CATEGORIES= net
HOMEPAGE= http://www.sixxs.net/tools/aiccu/

Expand Down
10 changes: 0 additions & 10 deletions net/aiccu/pkg/MESSAGE
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
Go to www.sixxs.net and get a free account.
Edit ${SYSCONFDIR}/aiccu.conf and insert your account data.

You can start the daemon like this:
${PREFIX}/sbin/aiccu start

Add the following to the /etc/rc.local script to start the daemon on boot:

if [ -x ${PREFIX}/sbin/aiccu -a -f ${SYSCONFDIR}/aiccu.conf ]; then
echo -n ' aiccu'
${PREFIX}/sbin/aiccu start
fi
4 changes: 3 additions & 1 deletion net/aiccu/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/02/13 20:30:48 naddy Exp $
@comment $OpenBSD: PLIST,v 1.2 2011/07/13 15:27:44 dcoppa Exp $
@man man/man8/aiccu.8
sbin/aiccu
share/examples/aiccu/
share/examples/aiccu/aiccu.conf
@mode 600
@sample ${SYSCONFDIR}/aiccu.conf
@mode
@rcscript ${RCDIR}/aiccu
19 changes: 19 additions & 0 deletions net/aiccu/pkg/aiccu.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
#
# $OpenBSD: aiccu.rc,v 1.1 2011/07/13 15:27:44 dcoppa Exp $

daemon="${TRUEPREFIX}/sbin/aiccu"

. /etc/rc.d/rc.subr

rc_reload=NO

rc_start() {
${rcexec} "${daemon} start"
}

rc_stop() {
${daemon} stop
}

rc_cmd $1

0 comments on commit e680e6e

Please sign in to comment.