This commit is contained in:
Dan Ponte 2023-02-23 12:22:23 -05:00
parent ae8f702bd8
commit 5c599e6fad
6 changed files with 130 additions and 0 deletions

51
net/dante/Makefile Normal file
View File

@ -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 <bsd.port.mk>

3
net/dante/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1619861991
SHA256 (dante-1.4.3.tar.gz) = 418a065fe1a4b8ace8fbf77c2da269a98f376e7115902e76cda7e741e4846a5d
SIZE (dante-1.4.3.tar.gz) = 1343935

26
net/dante/files/sockd.in Normal file
View File

@ -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"

8
net/dante/pkg-descr Normal file
View File

@ -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.

14
net/dante/pkg-message Normal file
View File

@ -0,0 +1,14 @@
[
{ type: upgrade
maximum_version: 1.4
message: <<EOM
If you're upgrading from earlier release to 1.4.x, please read UPGRADE
document, which is installed in docs folder, or check it online:
http://www.inet.no/dante/doc/1.4.x/config/upgrade.html
The 1.4.x release has syntax changes and various new functionality
additions.
EOM
}
]

28
net/dante/pkg-plist Normal file
View File

@ -0,0 +1,28 @@
bin/socksify
@sample etc/sockd.conf.sample
@sample etc/socks.conf.sample
include/socks.h
lib/libdsocks.so
lib/libsocks.a
lib/libsocks.so
lib/libsocks.so.0
lib/libsocks.so.0.1.1
sbin/sockd
man/man1/socksify.1.gz
man/man5/sockd.conf.5.gz
man/man5/socks.conf.5.gz
man/man8/sockd.8.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sockd-basic.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sockd-chaining.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/socks-simple-withoutnameserver.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/socks-simple.conf
%%PORTDOCS%%%%DOCSDIR%%/README.socksify
%%PORTDOCS%%%%DOCSDIR%%/README.survey
%%PORTDOCS%%%%DOCSDIR%%/README.usage
%%PORTDOCS%%%%DOCSDIR%%/SOCKS4.protocol
%%PORTDOCS%%%%DOCSDIR%%/SOCKS4A.protocol
%%PORTDOCS%%%%DOCSDIR%%/UPGRADE
%%PORTDOCS%%%%DOCSDIR%%/contrib/sockd-stat.awk
%%PORTDOCS%%%%DOCSDIR%%/rfc1928.txt
%%PORTDOCS%%%%DOCSDIR%%/rfc1929.txt
%%PORTDOCS%%%%DOCSDIR%%/rfc1961.txt