From 7085346a45cdfa2acc474bb1d37a6d64d894db1c Mon Sep 17 00:00:00 2001 From: dcoppa Date: Wed, 13 Jul 2011 15:27:44 +0000 Subject: [PATCH] Add a rc script. 'looks fine' ajacoutot@ ok giovanni@, naddy@ (maintainer) --- net/aiccu/Makefile | 3 ++- net/aiccu/pkg/MESSAGE | 10 ---------- net/aiccu/pkg/PLIST | 4 +++- net/aiccu/pkg/aiccu.rc | 19 +++++++++++++++++++ 4 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 net/aiccu/pkg/aiccu.rc diff --git a/net/aiccu/Makefile b/net/aiccu/Makefile index b25aa58324e..29b862df020 100644 --- a/net/aiccu/Makefile +++ b/net/aiccu/Makefile @@ -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/ diff --git a/net/aiccu/pkg/MESSAGE b/net/aiccu/pkg/MESSAGE index 2bba637ab21..a361c4c503d 100644 --- a/net/aiccu/pkg/MESSAGE +++ b/net/aiccu/pkg/MESSAGE @@ -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 diff --git a/net/aiccu/pkg/PLIST b/net/aiccu/pkg/PLIST index 49195be06b1..6905f0d5c00 100644 --- a/net/aiccu/pkg/PLIST +++ b/net/aiccu/pkg/PLIST @@ -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 diff --git a/net/aiccu/pkg/aiccu.rc b/net/aiccu/pkg/aiccu.rc new file mode 100644 index 00000000000..7054c1a2cf1 --- /dev/null +++ b/net/aiccu/pkg/aiccu.rc @@ -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