diff --git a/net/sniproxy/Makefile b/net/sniproxy/Makefile index 2063a44c54c7..9297f23f69e5 100644 --- a/net/sniproxy/Makefile +++ b/net/sniproxy/Makefile @@ -1,41 +1,41 @@ PORTNAME= sniproxy DISTVERSION= 0.6.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net MAINTAINER= krion@FreeBSD.org COMMENT= Proxy that routes based on TLS server name extension LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libev.so:devel/libev \ libpcre.so:devel/pcre \ libudns.so:dns/udns USES= autoreconf:build gettext pkgconfig SUB_FILES= pkg-message USE_RC_SUBR= sniproxy USE_GITHUB= yes GH_ACCOUNT= dlundquist GNU_CONFIGURE= yes USE_LDCONFIG= yes PLIST_FILES= man/man5/sniproxy.conf.5.gz \ man/man8/sniproxy.8.gz \ sbin/sniproxy \ "@sample etc/sniproxy.conf.sample" pre-configure: cd ${WRKSRC} && ${SH} autogen.sh post-patch: @${REINPLACE_CMD} -e 's|/var/tmp/|/var/run/|' ${WRKSRC}/${PORTNAME}.conf post-install:: ${INSTALL_DATA} ${WRKSRC}/sniproxy.conf ${STAGEDIR}${PREFIX}/etc/sniproxy.conf.sample .include diff --git a/net/sniproxy/files/sniproxy.in b/net/sniproxy/files/sniproxy.in index c9749e16b43c..d07bba4856fc 100644 --- a/net/sniproxy/files/sniproxy.in +++ b/net/sniproxy/files/sniproxy.in @@ -1,35 +1,35 @@ #!/bin/sh # PROVIDE: sniproxy -# BEFORE: DAEMON +# REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable sniproxy: # # sniproxy_enable="YES" # # . /etc/rc.subr name=sniproxy rcvar=sniproxy_enable command=%%PREFIX%%/sbin/sniproxy pidfile=${sniproxy_pidfile:-"/var/run/sniproxy.pid"} sniproxy_enable=${sniproxy_enable:-"NO"} sniproxy_conf=${sniproxy_conf:-"%%PREFIX%%/etc/sniproxy.conf"} stop_postcmd="rm -f $pidfile" sig_reload="HUP" load_rc_config ${name} required_files=${sniproxy_conf} command_args="-c ${sniproxy_conf}" run_rc_command "$1"