Add a rc script.

'looks fine' ajacoutot@
ok giovanni@, naddy@ (maintainer)
This commit is contained in:
dcoppa 2011-07-13 15:27:44 +00:00
parent 463c37444c
commit 7085346a45
4 changed files with 24 additions and 12 deletions

View File

@ -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/

View File

@ -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

View File

@ -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
net/aiccu/pkg/aiccu.rc Normal file
View File

@ -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