Finish the USE_RC_SUBR transition after marcus repo-copied stunnel.sh
to stunnel.in. No functional changes once the port has been installed, thus no PORTREVISION bump.
This commit is contained in:
parent
174a3405ae
commit
644e7eb25b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=206242
3 changed files with 1 additions and 46 deletions
|
@ -19,7 +19,7 @@ COMMENT= SSL encryption wrapper for standard network daemons
|
|||
|
||||
USE_AUTOTOOLS= libtool:15
|
||||
USE_OPENSSL= YES
|
||||
USE_RC_SUBR= YES
|
||||
USE_RC_SUBR= stunnel
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-4.22
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
@ -78,9 +78,6 @@ post-patch:
|
|||
.endif
|
||||
|
||||
post-install:
|
||||
${SED} "s+%%PREFIX%%+${PREFIX}+g; s+%%RC_SUBR%%+${RC_SUBR}+g; s+%%ETCDIR%%+${ETCDIR}+g" \
|
||||
< ${FILESDIR}/stunnel.sh > ${WRKDIR}/stunnel
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/stunnel ${PREFIX}/etc/rc.d/
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
||||
${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
@${ECHO} ""
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: stunnel
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
#
|
||||
# Add some of the following variables to /etc/rc.conf to configure stunnel:
|
||||
# stunnel_enable (bool): Set to "NO" by default.
|
||||
# Set it to "YES" to enable stunnel.
|
||||
# stunnel_config (str): Default "%%ETCDIR%%/stunnel.conf"
|
||||
# Set it to the full path to the config file
|
||||
# that stunnel will use during the automated
|
||||
# start-up.
|
||||
# stunnel_pidfile (str): Default "%%PREFIX%%/var/stunnel/stunnel.pid"
|
||||
# Set it to the value of 'pid' in
|
||||
# the stunnel.conf file.
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="stunnel"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${stunnel_enable="NO"}
|
||||
: ${stunnel_config="%%ETCDIR%%/${name}.conf"}
|
||||
: ${stunnel_pidfile="/var/run/${name}.pid"}
|
||||
|
||||
command="%%PREFIX%%/bin/stunnel"
|
||||
command_args=${stunnel_config}
|
||||
pidfile=${stunnel_pidfile}
|
||||
|
||||
required_files="${stunnel_config}"
|
||||
|
||||
run_rc_command "$1"
|
|
@ -1,6 +1,5 @@
|
|||
bin/stunnel
|
||||
bin/stunnel3
|
||||
etc/rc.d/stunnel
|
||||
%%ETCDIR%%/stunnel.conf-sample
|
||||
lib/stunnel/libstunnel.a
|
||||
lib/stunnel/libstunnel.la
|
||||
|
|
Loading…
Reference in a new issue