From f0d9f58b7f1825fb95236f427a6400ad54ad4b5e Mon Sep 17 00:00:00 2001 From: dougb 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/3proxy/Makefile | 2 +- net/3proxy/files/3proxy.in | 29 +++++++++++++++++++++++++++++ net/3proxy/files/3proxy.sh.in | 29 ----------------------------- 3 files changed, 30 insertions(+), 30 deletions(-) create mode 100644 net/3proxy/files/3proxy.in delete mode 100644 net/3proxy/files/3proxy.sh.in (limited to 'net/3proxy') diff --git a/net/3proxy/Makefile b/net/3proxy/Makefile index dd1cd24f538b..724a771a307c 100644 --- a/net/3proxy/Makefile +++ b/net/3proxy/Makefile @@ -17,7 +17,7 @@ COMMENT= Proxy servers set (support HTTP(S), FTP, SOCKS, POP3, TCP & UDP) CONFLICTS= libproxy-[0-9]* -USE_RC_SUBR= 3proxy.sh +USE_RC_SUBR= 3proxy MAKEFILE= Makefile.unix MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" diff --git a/net/3proxy/files/3proxy.in b/net/3proxy/files/3proxy.in new file mode 100644 index 000000000000..ab286f94cc37 --- /dev/null +++ b/net/3proxy/files/3proxy.in @@ -0,0 +1,29 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: threeproxy +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Define these threeproxy_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/threeproxy +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE + +threeproxy_enable=${threeproxy_enable-"NO"} +threeproxy_flags=${threeproxy_flags-"%%PREFIX%%/etc/3proxy.cfg"} + +. /etc/rc.subr + +name="threeproxy" +rcvar=threeproxy_enable +command="%%PREFIX%%/bin/3proxy" + +load_rc_config $name + +start_cmd="echo \"Starting ${name}.\"; ${command} ${threeproxy_flags}" + +run_rc_command "$1" diff --git a/net/3proxy/files/3proxy.sh.in b/net/3proxy/files/3proxy.sh.in deleted file mode 100644 index ab286f94cc37..000000000000 --- a/net/3proxy/files/3proxy.sh.in +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -# PROVIDE: threeproxy -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these threeproxy_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/threeproxy -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE - -threeproxy_enable=${threeproxy_enable-"NO"} -threeproxy_flags=${threeproxy_flags-"%%PREFIX%%/etc/3proxy.cfg"} - -. /etc/rc.subr - -name="threeproxy" -rcvar=threeproxy_enable -command="%%PREFIX%%/bin/3proxy" - -load_rc_config $name - -start_cmd="echo \"Starting ${name}.\"; ${command} ${threeproxy_flags}" - -run_rc_command "$1" -- cgit