From 9aac569eaa031e27191a3f4165b389a17f467ad2 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Sun, 5 Aug 2012 23:19:36 +0000 Subject: Move the rc.d scripts of the form *.sh.in to *.in Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op --- net/nylon/Makefile | 2 +- net/nylon/files/nylon.in | 35 +++++++++++++++++++++++++++++++++++ net/nylon/files/nylon.sh.in | 36 ------------------------------------ 3 files changed, 36 insertions(+), 37 deletions(-) create mode 100644 net/nylon/files/nylon.in delete mode 100644 net/nylon/files/nylon.sh.in (limited to 'net/nylon') diff --git a/net/nylon/Makefile b/net/nylon/Makefile index 3a7f81fdf4b9..b41f676695df 100644 --- a/net/nylon/Makefile +++ b/net/nylon/Makefile @@ -17,7 +17,7 @@ COMMENT= A Unix SOCKS 4 and 5 proxy server LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent -USE_RC_SUBR= nylon.sh +USE_RC_SUBR= nylon GNU_CONFIGURE= yes # Necessary for $PREFIX to work: diff --git a/net/nylon/files/nylon.in b/net/nylon/files/nylon.in new file mode 100644 index 000000000000..eceba950feca --- /dev/null +++ b/net/nylon/files/nylon.in @@ -0,0 +1,35 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: nylon +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable nylon: +# +#nylon_enable="YES" +# +# See nylon(1) for flags + +. /etc/rc.subr + +name=nylon +rcvar=nylon_enable + +command=%%PREFIX%%/bin/nylon + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +nylon_enable=${nylon_enable:-"NO"} +nylon_flags=${nylon_flags:-"-s"} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/nylon/files/nylon.sh.in b/net/nylon/files/nylon.sh.in deleted file mode 100644 index bec8209efc9c..000000000000 --- a/net/nylon/files/nylon.sh.in +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# - -# PROVIDE: nylon -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable nylon: -# -#nylon_enable="YES" -# -# See nylon(1) for flags -# - -. /etc/rc.subr - -name=nylon -rcvar=nylon_enable - -command=%%PREFIX%%/bin/nylon - -stop_postcmd=stop_postcmd - -stop_postcmd() -{ - rm -f $pidfile -} - -# set defaults - -nylon_enable=${nylon_enable:-"NO"} -nylon_flags=${nylon_flags:-"-s"} - -load_rc_config $name -run_rc_command "$1" -- cgit v1.2.3