From 5c599e6fad239f3f432d2dd5574ac3a81ffa9690 Mon Sep 17 00:00:00 2001 From: Dan Ponte Date: Thu, 23 Feb 2023 12:22:23 -0500 Subject: [PATCH] bump rev --- net/dante/Makefile | 51 ++++++++++++++++++++++++++++++++++++++++ net/dante/distinfo | 3 +++ net/dante/files/sockd.in | 26 ++++++++++++++++++++ net/dante/pkg-descr | 8 +++++++ net/dante/pkg-message | 14 +++++++++++ net/dante/pkg-plist | 28 ++++++++++++++++++++++ 6 files changed, 130 insertions(+) create mode 100644 net/dante/Makefile create mode 100644 net/dante/distinfo create mode 100644 net/dante/files/sockd.in create mode 100644 net/dante/pkg-descr create mode 100644 net/dante/pkg-message create mode 100644 net/dante/pkg-plist diff --git a/net/dante/Makefile b/net/dante/Makefile new file mode 100644 index 0000000..cd38c08 --- /dev/null +++ b/net/dante/Makefile @@ -0,0 +1,51 @@ +PORTNAME= dante +PORTVERSION= 1.4.3 +PORTREVISION= 1 +CATEGORIES= net security +MASTER_SITES= http://www.inet.no/dante/files/ \ + ftp://ftp.inet.no/pub/socks/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Circuit-level firewall/proxy +WWW= https://www.inet.no/dante/ + +LICENSE= BSD4CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libminiupnpc.so:net/miniupnpc \ + libsasl2.so:security/cyrus-sasl2 + +CONFLICTS= socks5 + +USES= libtool localbase +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-socks-conf=${PREFIX}/etc/socks.conf \ + --with-sockd-conf=${PREFIX}/etc/sockd.conf +INSTALL_TARGET= install-strip +USE_LDCONFIG= yes + +USE_RC_SUBR= sockd + +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install: + ${INSTALL_DATA} ${WRKSRC}/example/socks.conf ${STAGEDIR}${PREFIX}/etc/socks.conf.sample + ${INSTALL_DATA} ${WRKSRC}/example/sockd.conf ${STAGEDIR}${PREFIX}/etc/sockd.conf.sample + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example/sockd-basic.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example/sockd-chaining.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example/socks-simple-withoutnameserver.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example/socks-simple.conf ${STAGEDIR}${EXAMPLESDIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib + ${INSTALL_DATA} ${WRKSRC}/doc/README* ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/rfc* ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/SOCKS4*.protocol ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/UPGRADE ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/sockd-stat.awk ${STAGEDIR}${DOCSDIR}/contrib/sockd-stat.awk + +.include diff --git a/net/dante/distinfo b/net/dante/distinfo new file mode 100644 index 0000000..390280b --- /dev/null +++ b/net/dante/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1619861991 +SHA256 (dante-1.4.3.tar.gz) = 418a065fe1a4b8ace8fbf77c2da269a98f376e7115902e76cda7e741e4846a5d +SIZE (dante-1.4.3.tar.gz) = 1343935 diff --git a/net/dante/files/sockd.in b/net/dante/files/sockd.in new file mode 100644 index 0000000..e047d39 --- /dev/null +++ b/net/dante/files/sockd.in @@ -0,0 +1,26 @@ +#!/bin/sh + +# PROVIDE: sockd +# REQUIRE: NETWORKING +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable sockd: +# +#sockd_enable="YES" +# + +. /etc/rc.subr + +name=sockd +rcvar=sockd_enable + +command=%%PREFIX%%/sbin/sockd +pidfile=/var/run/sockd.pid +required_files=%%PREFIX%%/etc/sockd.conf + +sockd_enable=${sockd_enable:-"NO"} +sockd_flags=${sockd_flags:-"-D"} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/dante/pkg-descr b/net/dante/pkg-descr new file mode 100644 index 0000000..4f600d1 --- /dev/null +++ b/net/dante/pkg-descr @@ -0,0 +1,8 @@ +Dante is a circuit-level firewall/proxy (socks implemented) that can be +used to provide convenient and secure network connectivity to a wide range +of hosts while requiring only the server Dante runs on to have external +network connectivity. + +Once installed, Dante can in most cases be made transparent to the clients +while offering detailed access control and logging facilities to the +server administrator. diff --git a/net/dante/pkg-message b/net/dante/pkg-message new file mode 100644 index 0000000..7057bd8 --- /dev/null +++ b/net/dante/pkg-message @@ -0,0 +1,14 @@ +[ +{ type: upgrade + maximum_version: 1.4 + message: <