- compile with password file support (turning on in socks5.conf)
- Add startup script - Bump PORTVERSION PR: ports/65075 Submitted by: Sergey Matveychuk <sem@ciam.ru>
This commit is contained in:
parent
4642857685
commit
fba09a1864
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105989
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= socks5
|
||||
PORTVERSION= 1.0.11
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net security
|
||||
DISTNAME= socks5-v1.0r11
|
||||
|
||||
@ -32,13 +32,18 @@ CONFIGURE_ARGS= --with-libconffile=${PREFIX}/etc/libsocks5.conf \
|
||||
--with-srvconffile=${PREFIX}/etc/socks5.conf \
|
||||
--with-srvpidfile=/var/run/socks5.pid \
|
||||
--with-srvidtfile=/var/run/socks5.ident \
|
||||
--with-srvpwdfile=${PREFIX}/etc/socks5.passwd \
|
||||
${EXTRA_CONFIGURE_ARGS}
|
||||
MAN1= runsocks.1 socks5.1 stopsocks.1 socks5_clients.1
|
||||
MAN5= libsocks5.conf.5 socks5.conf.5 socks5.passwd.5
|
||||
CONFIGURE_ENV= LIBS=-lcrypt
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/socks5.sh ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/socks5.sh startup file."; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/socks5.sh.sample ${PREFIX}/etc/rc.d/socks5.sh; \
|
||||
fi
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
20
net/socks5/files/socks5.sh.sample
Normal file
20
net/socks5/files/socks5.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x ${PREFIX}/bin/socks5 ] && ${PREFIX}/bin/socks5 && echo -n ' socks5'
|
||||
;;
|
||||
stop)
|
||||
killall socks5 && echo -n ' socks5'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,3 +1,4 @@
|
||||
etc/rc.d/socks5.sh
|
||||
bin/socks5
|
||||
bin/runsocks
|
||||
bin/stopsocks
|
||||
|
Loading…
Reference in New Issue
Block a user