Index: head/net/pipsecd/Makefile =================================================================== --- head/net/pipsecd/Makefile (revision 545450) +++ head/net/pipsecd/Makefile (revision 545451) @@ -1,32 +1,32 @@ # Created by: Patrick Bihan-Faou # $FreeBSD$ PORTNAME= pipsecd PORTVERSION= 19991014 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net security MASTER_SITES= http://www.komquats.com/distfiles/ \ LOCAL/cy DISTNAME= pipsec-19991014 MAINTAINER= cy@FreeBSD.org COMMENT= Simple IPSEC tunnel tool from Pierre Beyssac USES+= ssl +USE_RC_SUBR= pipsecd + ALL_TARGET= pipsecd OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pipsecd ${STAGEDIR}${PREFIX}/sbin - ${INSTALL_DATA} ${WRKSRC}/pipsecd.sh ${STAGEDIR}${PREFIX}/etc/rc.d - # ${CHMOD} 755 ${STAGEDIR}${PREFIX}/etc/rc.d/pipsecd.sh; ${MKDIR} ${STAGEDIR}${PREFIX}/etc/ipsec ${INSTALL_DATA} ${WRKSRC}/pipsecd.conf.sample ${STAGEDIR}${PREFIX}/etc/ipsec ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/pipsecd ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/pipsecd ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${STAGEDIR}${PREFIX}/share/doc/pipsecd ${INSTALL_DATA} ${WRKSRC}/README.port ${STAGEDIR}${PREFIX}/share/doc/pipsecd .include Index: head/net/pipsecd/files/patch-pipsecd.sh =================================================================== --- head/net/pipsecd/files/patch-pipsecd.sh (revision 545450) +++ head/net/pipsecd/files/patch-pipsecd.sh (nonexistent) @@ -1,5 +0,0 @@ ---- pipsecd.sh.orig Thu Oct 14 12:58:43 1999 -+++ pipsecd.sh Thu Oct 14 13:00:38 1999 -@@ -0,0 +1,2 @@ -+#!/bin/sh -+cd /usr/local; [ -x sbin/pipsecd -a -f etc/ipsec/pipsecd.conf ] && sbin/pipsecd & echo -n ' pipsecd' Property changes on: head/net/pipsecd/files/patch-pipsecd.sh ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/pipsecd/files/pipsecd.in =================================================================== --- head/net/pipsecd/files/pipsecd.in (nonexistent) +++ head/net/pipsecd/files/pipsecd.in (revision 545451) @@ -0,0 +1,29 @@ +#!/bin/sh +# +#$FreeBSD$ +# +# PROVIDE: pipsecd +# REQUIRE: root mountcritlocal +# BEFORE: DAEMON +# KEYWORD: nojail + +. /etc/rc.subr + +name="pipsecd" +rcvar=pipsecd_enable +command="%%PREFIX%%/sbin/${name}" +command_args="${pipsecd_flags}" +start_cmd="pipsecd_start" + +: ${pipsecd_enable="NO"} + +pipsecd_start() { + if ! checkyesno pipsecd_enable ; then + return 0 + fi + echo "Starting ${name}." + ${command} ${pipsecd_flags} & +} + +load_rc_config $name +run_rc_command "$1" Property changes on: head/net/pipsecd/files/pipsecd.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/net/pipsecd/pkg-plist =================================================================== --- head/net/pipsecd/pkg-plist (revision 545450) +++ head/net/pipsecd/pkg-plist (revision 545451) @@ -1,8 +1,5 @@ sbin/pipsecd etc/ipsec/pipsecd.conf.sample -@mode 755 -etc/rc.d/pipsecd.sh -@mode 644 %%PORTDOCS%%share/doc/pipsecd/README %%PORTDOCS%%share/doc/pipsecd/COPYRIGHT %%PORTDOCS%%share/doc/pipsecd/README.port