diff options
-rw-r--r-- | net-proxy/3proxy/3proxy-0.7.1.2.ebuild | 43 | ||||
-rw-r--r-- | net-proxy/3proxy/Manifest | 1 | ||||
-rw-r--r-- | net-proxy/3proxy/files/3proxy-0.7.1.2-gentoo.patch | 43 |
3 files changed, 87 insertions, 0 deletions
diff --git a/net-proxy/3proxy/3proxy-0.7.1.2.ebuild b/net-proxy/3proxy/3proxy-0.7.1.2.ebuild new file mode 100644 index 000000000000..ca001f1128c8 --- /dev/null +++ b/net-proxy/3proxy/3proxy-0.7.1.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=6 +inherit eutils + +DESCRIPTION="A really tiny cross-platform proxy servers set" +HOMEPAGE="http://www.3proxy.ru/" +SRC_URI="http://3proxy.ru/${PV}/${P}.tgz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + cp Makefile.Linux Makefile || die + default +} + +src_install() { + local x + + cd src || die + dobin 3proxy + for x in proxy socks ftppr pop3p tcppm udppm mycrypt dighosts countersutil ; do + newbin ${x} ${PN}-${x} + [[ -f ${S}/man/${x}.8 ]] && newman "${S}"/man/${x}.8 ${PN}-${x}.8 + done + cd .. + + doman "${S}"/man/3proxy*.[38] + + cd "${S}" + dodoc Readme + dohtml -r doc/html/* + docinto cfg + dodoc cfg/*.{txt,sample} + docinto cfg/sql + dodoc cfg/sql/*.{cfg,sql} +} diff --git a/net-proxy/3proxy/Manifest b/net-proxy/3proxy/Manifest index e55288931296..c3d41f8df7ee 100644 --- a/net-proxy/3proxy/Manifest +++ b/net-proxy/3proxy/Manifest @@ -1,2 +1,3 @@ DIST 3proxy-0.5.3k.tgz 190797 SHA256 7bbe159a0157480c653ef3976495a9b1993435a44ea0e7c03784320e3ac28ea3 SHA512 d709d57fc7c1a31ab190dd4692a93d9a4866a0cfea4cb6d2ff8dc8f8a3ec2ff674496a4c63854580a933948a6f899db2cc21e5b82a6f854bc236e5779014ae00 WHIRLPOOL 98b7ccab3447674c82e2f8fb94f9840cc696038fb7a443d55795e9b32052c1de3e76797a444bad1daed8bee27835b930c045073b666cd7fb54bc643c5b962760 DIST 3proxy-0.6.1.tgz 480160 SHA256 10f8804258791e80353a334dc9b80473a02c6dda939de76451e655f643aadd7f SHA512 2a32549424de3bce0b59b1ad28e203d4f96b58d8fb7b8b39dfdccc4dada20655ac109eafab1ffa99279eb98f4425a51ec8154bf0d51b4c23382f3244f0e989f0 WHIRLPOOL dfae9eaa3d8e6129a77d8b93d389036ef583cdf1862f0f0f794f00c6947617dcba96040d9a31c23befa687a6435c86152959d0a692b1cf9c6ffd02e9531f4697 +DIST 3proxy-0.7.1.2.tgz 478532 SHA256 e1157aab3ff8215a3b1f35c61a9d6011e60ad38b52d9f74a1fc4cae14ba16a31 SHA512 c7f4e25d2630e8c6c25bbc09a5f9f201448d57a85d404cd1f6304946d9a31083845bd8d481f610fe1cd1f56be349eb774cdae135430efcfdd1952a0403d01735 WHIRLPOOL bdfd70a0054b71457f49bcc09af8f26d1cf371d10fb60adc256ad5a60f54167fc1d8e26f9355785223647392b5697adaa4ebeec26c7009a09e1f8d317cdf7089 diff --git a/net-proxy/3proxy/files/3proxy-0.7.1.2-gentoo.patch b/net-proxy/3proxy/files/3proxy-0.7.1.2-gentoo.patch new file mode 100644 index 000000000000..28b0be2aa120 --- /dev/null +++ b/net-proxy/3proxy/files/3proxy-0.7.1.2-gentoo.patch @@ -0,0 +1,43 @@ +--- Makefile.Linux.orig 2015-04-18 01:55:14.195955388 +0300 ++++ Makefile.Linux 2015-04-21 02:30:16.835282128 +0300 +@@ -11,11 +11,11 @@ + BUILDDIR = + CC = gcc + +-CFLAGS = -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL ++CFLAGS += -Wall -g -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL + COUT = -o + LN = gcc + DCFLAGS = -fpic +-LDFLAGS = -Wall -O2 -pthread ++LDFLAGS += -Wall -pthread + DLFLAGS = -shared + DLSUFFICS = .ld.so + # -lpthreads may be reuqired on some platforms instead of -pthreads +@@ -38,12 +38,12 @@ + include Makefile.inc + + allplugins: +- @list='$(PLUGINS)'; for p in $$list; do cp Makefile Makefile.var plugins/$$p; cd plugins/$$p ; make ; cd ../.. ; done ++ @list='$(PLUGINS)'; for p in $$list; do cp Makefile Makefile.var plugins/$$p; cd plugins/$$p ; $(MAKE) ; cd ../.. ; done + + DESTDIR = +-prefix = /usr/local ++prefix = + exec_prefix = $(prefix) +-man_prefix = $(prefix)/share ++man_prefix = $(prefix)/usr/share + + INSTALL = /usr/bin/install + INSTALL_BIN = $(INSTALL) -m 755 +--- src/stringtable.c.orig 2015-04-21 02:23:10.895258697 +0300 ++++ src/stringtable.c 2015-04-21 02:23:31.141926478 +0300 +@@ -38,7 +38,7 @@ + /* 24 */ NULL, + #ifndef TPROXY_CONF + #ifndef _WIN32 +-/* 25 */ (unsigned char *)"/usr/local/etc/3proxy/3proxy.cfg", ++/* 25 */ (unsigned char *)"/etc/3proxy/3proxy.cfg", + #else + /* 25 */ (unsigned char *)"3proxy.cfg", + #endif |