diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /net-proxy/3proxy | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'net-proxy/3proxy')
-rw-r--r-- | net-proxy/3proxy/3proxy-0.9.0.ebuild | 47 | ||||
-rw-r--r-- | net-proxy/3proxy/Manifest | 3 | ||||
-rw-r--r-- | net-proxy/3proxy/files/3proxy-0.9.0-gentoo.patch | 36 |
3 files changed, 86 insertions, 0 deletions
diff --git a/net-proxy/3proxy/3proxy-0.9.0.ebuild b/net-proxy/3proxy/3proxy-0.9.0.ebuild new file mode 100644 index 000000000000..8ba6dc7366b3 --- /dev/null +++ b/net-proxy/3proxy/3proxy-0.9.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="A really tiny cross-platform proxy servers set" +HOMEPAGE="https://www.3proxy.ru/" +SRC_URI="https://github.com/z3APA3A/3proxy/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.0-gentoo.patch +) + +DOCS=( README cfg ) +HTML_DOCS=( doc/html/. ) + +src_prepare() { + default + cp Makefile.Linux Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" LN="$(tc-getCC)" +} + +src_install() { + local x + + pushd bin >/dev/null || die + dolib.so *.so + dobin 3proxy + for x in ftppr mycrypt pop3p proxy smtpp socks tcppm udppm; do + newbin ${x} ${PN}-${x} + [[ -f "${S}"/man/${x}.8 ]] && newman "${S}"/man/${x}.8 ${PN}-${x}.8 + done + popd >/dev/null + + doman man/3proxy*.[38] + + einstalldocs +} diff --git a/net-proxy/3proxy/Manifest b/net-proxy/3proxy/Manifest index ca1ccb22f2a5..5f67b0f659e2 100644 --- a/net-proxy/3proxy/Manifest +++ b/net-proxy/3proxy/Manifest @@ -1,4 +1,7 @@ AUX 3proxy-0.8.12-gentoo.patch 1749 BLAKE2B 8ee153ae343989faef6f36dbdc072b933fbee2d2ad129b0e6573dd57e465916d94f0868fcfd03a2099879b3c7bc925ac3be1adb7be52043fbb9996cbc8ff0ed2 SHA512 b8c3a9d5cf1ad20ef517ec6ec5626cf9f6094777c0870e53fd35e32f49a518fecdfa05a5806514957d10943da7bdcaa63e2ad6fce32506d7fd1a467bb7b2e652 +AUX 3proxy-0.9.0-gentoo.patch 1426 BLAKE2B 221bc5e87ae399ef621e687f03fbbd57a1f8ecce74e7ec0ed57f9536a4d8195563b00f4249769fe8ba3a736fc0cc5ca0441d5b879da575c3aa888d912ded2c4d SHA512 183d45fab08cf86d542f49844c8cc3e0930cc262bd928722ef021ab4bda21542f30587d3c1850d89caffc29059f7e3b5b2f22f1b5bdab15d916556e7af1951ee DIST 3proxy-0.8.13.tar.gz 529072 BLAKE2B 45b756bf1ddaaf560f4f35c88e78d24dbafa28c3144de5317d9f5177c51da85a2148a7db743a656ddf853325e18edbcb200b37ff02afae2f203c3bfab66e1b58 SHA512 94b4a2568917c1d720276e38050a13e144d3e92ff41edd02eeebac0a6c21e6a839a58ea7dcb3abc03370e0f18452c953cfd7ad15ebac87e66b78d94fa52fbd79 +DIST 3proxy-0.9.0.tar.gz 607014 BLAKE2B dae9004ea1474080fbbd4a3ff3a2690f8a6afb2ab2c045dbdaa25adf10ff2c58501d46a5a99b24db526b153ce00d281851ec08499d908709c5801c27aa7b0ca8 SHA512 7429389bf70c38d57e7a6f34e649a04aaad4f81555b7ef131cae026123ff7877d3f1aef8d10f84b9fc2c58e9ad5ab3d55e4af7326dbce14c05f3cd9973fafd83 EBUILD 3proxy-0.8.13.ebuild 920 BLAKE2B f61bf2068cdd65548fc280e4c248c95acd0463eecdd5aab7f3d7caa994014c95d2d4e966ee9278619bdd910a9d19e0ea061579b33859d205dd26c548b0d231fe SHA512 dacf4aa0da9a417946142888e718f81a9717268858f3c2b6e645f21cafb0696076e4502d156cf0963cd4cb52d3ccfaab4bd8137c6a9364a78e7d1e3a5b1627bf +EBUILD 3proxy-0.9.0.ebuild 922 BLAKE2B a28666cc670d75d033e2acea661863b3edddfde2728e9d53aa9109a6b0539fbd83f9d9f7622e59e3a4b6b00fe94d64235d638aa6fc1e4d649b93fda65f071f82 SHA512 1d32bb19a60ef4ee83be346385ed08fba50b2d4f6d730f47bc994098650fc32b72f48cbb68cf443b4b61e7bc262550a35ca7b632f3f8e265b1c26deeb75854ab MISC metadata.xml 1102 BLAKE2B 1c5bfc3ff94b076a5bc8f7c87091b08e9f2fe69a49776687379d1149cfc3cc3f04fff7278858a548746110533b528fa0d83e7af9c384143ddcf6a9d3e796502b SHA512 f9c7b4b3b9f045b76049a75f2e65f70a316a3ad08f44a39d1c7ea23e5b23bc92232eae7487b4bf7534bb2fbd2655a9debf35ac3ba8ee4de6583d49f61bfc6076 diff --git a/net-proxy/3proxy/files/3proxy-0.9.0-gentoo.patch b/net-proxy/3proxy/files/3proxy-0.9.0-gentoo.patch new file mode 100644 index 000000000000..d7c530535f64 --- /dev/null +++ b/net-proxy/3proxy/files/3proxy-0.9.0-gentoo.patch @@ -0,0 +1,36 @@ +diff -uNr a/Makefile.Linux b/Makefile.Linux +--- a/Makefile.Linux 2020-10-22 11:38:44.000000000 +0300 ++++ b/Makefile.Linux 2020-10-22 22:38:26.257745810 +0300 +@@ -8,13 +8,13 @@ + # library support. Add -DSAFESQL for poorely written ODBC library / drivers. + + BUILDDIR = ../bin/ +-CC = gcc ++CC ?= gcc + +-CFLAGS = -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER ++CFLAGS += -fPIC -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER + COUT = -o +-LN = gcc ++LN ?= gcc + DCFLAGS = +-LDFLAGS = -fPIE -O2 -fno-strict-aliasing -pthread ++LDFLAGS += -fPIE -fno-strict-aliasing -pthread + DLFLAGS = -shared + DLSUFFICS = .ld.so + # -lpthreads may be reuqired on some platforms instead of -pthreads +@@ -39,12 +39,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 = + exec_prefix = $(prefix) +-man_prefix = /usr/share ++man_prefix = $(prefix)/usr/share + + INSTALL = /usr/bin/install + INSTALL_BIN = $(INSTALL) -m 755 |