Index: head/net/sniproxy/Makefile =================================================================== --- head/net/sniproxy/Makefile (revision 475257) +++ head/net/sniproxy/Makefile (revision 475258) @@ -1,42 +1,43 @@ # $FreeBSD$ PORTNAME= sniproxy DISTVERSION= 0.5.0 +PORTREVISION= 1 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 Index: head/net/sniproxy/files/patch-src_connection.c =================================================================== --- head/net/sniproxy/files/patch-src_connection.c (nonexistent) +++ head/net/sniproxy/files/patch-src_connection.c (revision 475258) @@ -0,0 +1,11 @@ +--- src/connection.c.orig 2018-07-24 14:47:02 UTC ++++ src/connection.c +@@ -111,7 +111,7 @@ accept_connection(struct Listener *listener, struct ev + int sockfd = accept4(listener->watcher.fd, + (struct sockaddr *)&con->client.addr, + &con->client.addr_len, +- O_NONBLOCK); ++ SOCK_NONBLOCK); + #else + int sockfd = accept(listener->watcher.fd, + (struct sockaddr *)&con->client.addr, Property changes on: head/net/sniproxy/files/patch-src_connection.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/sniproxy/files/sniproxy.in =================================================================== --- head/net/sniproxy/files/sniproxy.in (revision 475257) +++ head/net/sniproxy/files/sniproxy.in (revision 475258) @@ -1,39 +1,39 @@ #!/bin/sh # #$FreeBSD$ # # PROVIDE: sniproxy # REQUIRE: SERVERS cleanvar # BEFORE: 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 +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"