diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-03-22 11:00:16 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-03-22 11:00:16 +0000 |
commit | efcc873fa4068be8ef5e493896db0b1e2ef2e5e7 (patch) | |
tree | e6f71145491990113f5b09b00e3d693a31e620bc /security | |
parent | 48ed030601d9bf80ea856d48bd1e1b6e8627f8df (diff) | |
download | pkgsrc-efcc873fa4068be8ef5e493896db0b1e2ef2e5e7.tar.gz |
Install an rc.d script; closes PR pkg/20841 and PR pkg/20842 by David Ferlier.
Sort the Makefile a bit. Install a default configuration file in place.
Bump PKGREVISION to 1.
Diffstat (limited to 'security')
-rw-r--r-- | security/racoon/Makefile | 18 | ||||
-rw-r--r-- | security/racoon/PLIST | 3 | ||||
-rw-r--r-- | security/racoon/files/racoon.sh | 19 |
3 files changed, 32 insertions, 8 deletions
diff --git a/security/racoon/Makefile b/security/racoon/Makefile index e4ece291a12..697a75f5841 100644 --- a/security/racoon/Makefile +++ b/security/racoon/Makefile @@ -1,7 +1,9 @@ -# $NetBSD: Makefile,v 1.56 2002/12/07 02:39:04 schmonz Exp $ +# $NetBSD: Makefile,v 1.57 2003/03/22 11:00:16 jmmv Exp $ # DISTNAME= racoon-20021120a +PKGREVISION= 1 +WRKSRC= ${WRKDIR}/${DISTNAME}/racoon CATEGORIES= security net MASTER_SITES= ftp://ftp.kame.net/pub/kame/misc/ @@ -9,6 +11,11 @@ MAINTAINER= itojun@kame.net HOMEPAGE= http://www.kame.net/ COMMENT= KAME racoon IKE daemon +CONFLICTS+= racoon-[0-9]* + +USE_BUILDLINK2= yes +USE_PKGINSTALL= yes + CRYPTO= yes # this is not compatible with cross build - there's no other way @@ -19,13 +26,10 @@ PKG_FAIL_REASON+= "${PKGNAME} requires ipsec-ready ${OPSYS}" BUILD_DEFS+= USE_INET6 .include "../../mk/bsd.prefs.mk" -USE_BUILDLINK2= yes - -CONFLICTS+= racoon-[0-9]* - -WRKSRC= ${WRKDIR}/${DISTNAME}/racoon - PKG_SYSCONFSUBDIR?= racoon +RCD_SCRIPTS= racoon +CONF_FILES= ${PREFIX}/share/examples/racoon/racoon.conf.sample \ + ${PKG_SYSCONFDIR}/racoon.conf GNU_CONFIGURE= yes CONFIGURE_ARGS+=--enable-debug diff --git a/security/racoon/PLIST b/security/racoon/PLIST index f7a0f6b838e..66ecf0585c6 100644 --- a/security/racoon/PLIST +++ b/security/racoon/PLIST @@ -1,4 +1,5 @@ -@comment $NetBSD: PLIST,v 1.2 2002/04/26 00:08:22 itojun Exp $ +@comment $NetBSD: PLIST,v 1.3 2003/03/22 11:00:17 jmmv Exp $ +etc/rc.d/racoon sbin/racoon man/man8/racoon.8 man/man5/racoon.conf.5 diff --git a/security/racoon/files/racoon.sh b/security/racoon/files/racoon.sh new file mode 100644 index 00000000000..6050e3a0f89 --- /dev/null +++ b/security/racoon/files/racoon.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $NetBSD: racoon.sh,v 1.1 2003/03/22 11:00:17 jmmv Exp $ +# + +# PROVIDE: racoon +# REQUIRE: DAEMON LOGIN network +# KEYWORD: shutdown + +. /etc/rc.subr + +name="racoon" +rcvar=$name +command="@PREFIX@/sbin/${name}" +required_files="@PKG_SYSCONFDIR@/racoon.conf" +pidfile="/var/run/racoon.pid" + +load_rc_config $name +run_rc_command "$1" |