mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
New port: net/3proxy
3[APA3A] tiny proxy 3Proxy (pronounce it as "Zaraza tiny proxy") is really tiny cross-platform (Win32&Unix) proxy servers set. It includes HTTP proxy with HTTPS and FTP support, SOCKSv4/SOCKSv4.5/SOCKSv5 proxy, POP3 proxy, TCP and UDP portmappers. You can use every proxy as a standalone program (socks, proxy, tcppm, udppm, pop3p) or use combined program (3proxy). PR: 54968 Submitted by: Timofey Chernousov <tim@gwd.nnn.tstu.ru> Approved by: fjoe (mentor) (implicit)
This commit is contained in:
parent
c90209e91a
commit
32c57f94b6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85898
44
net/3proxy/Makefile
Normal file
44
net/3proxy/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# New ports collection makefile for: 3proxy
|
||||
# Date created: 2003 July 25
|
||||
# Whom: tim@relay.nnn.tstu.ru
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= 3proxy
|
||||
PORTVERSION= 0.4b
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.security.nnov.ru/soft/3proxy/${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= tim@relay.nnn.tstu.ru
|
||||
COMMENT= Proxy servers set (support HTTP(S), FTP, SOCKS, POP3, TCP & UDP)
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
|
||||
|
||||
pre-build:
|
||||
if [ ! -f ${WRKSRC}/Makefile ]; then \
|
||||
${CP} ${WRKSRC}/Makefile.unix ${WRKSRC}/Makefile; \
|
||||
fi
|
||||
|
||||
do-install:
|
||||
.for i in 3proxy dighosts mycrypt pop3p proxy socks tcppm udppm
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin/
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/3proxy.cfg.sample ${PREFIX}/etc
|
||||
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" ${FILESDIR}/3proxy.sh \
|
||||
> ${WRKSRC}/3proxy.sh
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/3proxy.sh ${PREFIX}/etc/rc.d/
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in License Readme Release.notes
|
||||
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/3proxy/distinfo
Normal file
1
net/3proxy/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (3proxy.tgz) = ccb25a2aee41b913ac591240a406dd14
|
17
net/3proxy/files/3proxy.sh
Normal file
17
net/3proxy/files/3proxy.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
%%PREFIX%%/bin/3proxy %%PREFIX%%/etc/3proxy.cfg & echo -n " 3proxy"
|
||||
;;
|
||||
|
||||
'stop')
|
||||
/usr/bin/killall 3proxy
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} { start | stop }"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit 0
|
17
net/3proxy/files/patch-aa
Normal file
17
net/3proxy/files/patch-aa
Normal file
@ -0,0 +1,17 @@
|
||||
--- Makefile.unix.orig Mon Jul 28 13:06:40 2003
|
||||
+++ Makefile.unix Mon Jul 28 13:24:40 2003
|
||||
@@ -3,11 +3,11 @@
|
||||
# 3 proxy Makefile for GCC/Unix/Linux/Cygwin
|
||||
#
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -Wall -O2 -s -c -pthread -DNOODBC
|
||||
+CC ?= gcc
|
||||
+CFLAGS += -Wall -O2 -s -c ${PTHREAD_CFLAGS} -DNOODBC
|
||||
COUT = -o
|
||||
LN = gcc
|
||||
-LDFLAGS = -Wall -O2 -s -pthread
|
||||
+LDFLAGS += -Wall -O2 -s ${PTHREAD_LIBS}
|
||||
LIBS =
|
||||
LNOUT = -o
|
||||
EXESUFFICS =
|
26
net/3proxy/files/patch-ab
Normal file
26
net/3proxy/files/patch-ab
Normal file
@ -0,0 +1,26 @@
|
||||
--- 3proxy.cfg.sample.orig Mon Jul 28 14:50:42 2003
|
||||
+++ 3proxy.cfg.sample Mon Jul 28 14:51:55 2003
|
||||
@@ -332,12 +332,12 @@
|
||||
# this example shows you how to include passwd file. For included files
|
||||
# <CR> and <LF> are treated as field separators.
|
||||
|
||||
-service
|
||||
+#service
|
||||
# service is required under NT if you want 3proxy to start as service
|
||||
|
||||
|
||||
#log /usr/local/etc/3proxy/logs/3proxy.log D
|
||||
-log c:\3proxy\logs\3proxy.log D
|
||||
+log /var/log/3proxy.log D
|
||||
# log allows to specify log file location and rotation, D means logfile
|
||||
# is created daily
|
||||
|
||||
@@ -421,7 +421,7 @@
|
||||
# like multimedia streams or online games.
|
||||
|
||||
auth strong
|
||||
-fflush
|
||||
+flush
|
||||
allow 3APA3A,test
|
||||
socks
|
||||
# for socks we will use password authentication and different access control -
|
23
net/3proxy/pkg-descr
Normal file
23
net/3proxy/pkg-descr
Normal file
@ -0,0 +1,23 @@
|
||||
3[APA3A] tiny proxy 3Proxy (pronounce it as "Zaraza tiny proxy") is really
|
||||
tiny cross-platform (Win32&Unix) proxy servers set. It includes HTTP proxy
|
||||
with HTTPS and FTP support, SOCKSv4/SOCKSv4.5/SOCKSv5 proxy, POP3 proxy,
|
||||
TCP and UDP portmappers. You can use every proxy as a standalone program
|
||||
(socks, proxy, tcppm, udppm, pop3p) or use combined program (3proxy).
|
||||
Combined proxy additionally supports features like access control,
|
||||
bandwidth limiting, limiting daily/weekly/monthly traffic amount, proxy
|
||||
chaining, log rotation, sylog and ODBC logging, etc. It's created to be
|
||||
small, simple (I'd like to say secure - but it's just a beta) and yet
|
||||
functional. It may be compiled with Visual C or gcc. Native Win32 version
|
||||
included in archive and supports installation as NT/2K/XP service.
|
||||
Currently 3proxy is tested to work under Windows 98/NT/2000/2003/XP,
|
||||
FreeBSD/i386, Linux/i386, Linux/Alpha. See Release Notes and Changes for
|
||||
features list.
|
||||
3proxy is FreeWare. It can be used under terms of GNU/GPL or under it own
|
||||
license (please read License Agreement).
|
||||
|
||||
For licensing or commercial support please e-mail to 3proxy@security.nnov.ru
|
||||
|
||||
WWW: http://www.security.nnov.ru/soft/3proxy/
|
||||
|
||||
-- Timofey
|
||||
tim@relay.nnn.tstu.ru
|
14
net/3proxy/pkg-plist
Normal file
14
net/3proxy/pkg-plist
Normal file
@ -0,0 +1,14 @@
|
||||
bin/3proxy
|
||||
bin/dighosts
|
||||
bin/mycrypt
|
||||
bin/pop3p
|
||||
bin/proxy
|
||||
bin/socks
|
||||
bin/tcppm
|
||||
bin/udppm
|
||||
etc/3proxy.cfg.sample
|
||||
etc/rc.d/3proxy.sh
|
||||
%%PORTDOCS%%%%DOCSDIR%%/License
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Readme
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Release.notes
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
SUBDIR += 3proxy
|
||||
SUBDIR += 44bsd-rdist
|
||||
SUBDIR += 6to4
|
||||
SUBDIR += 6tunnel
|
||||
|
Loading…
Reference in New Issue
Block a user