summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/racoon/Makefile18
-rw-r--r--security/racoon/PLIST3
-rw-r--r--security/racoon/files/racoon.sh19
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"