diff options
Diffstat (limited to 'net-ftp/frox')
-rw-r--r-- | net-ftp/frox/Manifest | 10 | ||||
-rw-r--r-- | net-ftp/frox/files/0.7.18-netfilter-includes.patch | 16 | ||||
-rw-r--r-- | net-ftp/frox/files/0.7.18-respect-CFLAGS.patch | 15 | ||||
-rw-r--r-- | net-ftp/frox/files/frox-0.7.18-config.patch | 66 | ||||
-rw-r--r-- | net-ftp/frox/files/frox.initd | 37 | ||||
-rw-r--r-- | net-ftp/frox/frox-0.7.18-r5.ebuild | 81 | ||||
-rw-r--r-- | net-ftp/frox/frox-0.7.18-r6.ebuild | 85 | ||||
-rw-r--r-- | net-ftp/frox/metadata.xml | 19 |
8 files changed, 329 insertions, 0 deletions
diff --git a/net-ftp/frox/Manifest b/net-ftp/frox/Manifest new file mode 100644 index 000000000000..304adb1badc4 --- /dev/null +++ b/net-ftp/frox/Manifest @@ -0,0 +1,10 @@ +AUX 0.7.18-netfilter-includes.patch 552 SHA256 d26a9a193e8727229994ff7154a09c8fe7581759559bb1b18cdbbe62176e5494 SHA512 3dbed66a3602736f881ca993b416731112bcdd9885f9b9f8d05f573e748dcbd43d118f3b97d4689ad17695e52d6c7e94e2e72e04921f19ec4af181f16e9361aa WHIRLPOOL 63e17c3a3a884556824e78480be84563f66adf7c1e49f83f4d245d26066e1cf3f9050a2c5829a9fd1c61082f582ef9eb041cf2850face16446a80a270ec66796 +AUX 0.7.18-respect-CFLAGS.patch 332 SHA256 56fa31f3bfbb2f6288a3cb7742a36cecd42df103d6952d033f87c086185012a8 SHA512 88c6efab38aaf9cf58e77d4c6f677f66920f9a48fcd964ac4e02a471a805b41ad85949bc7134eff715254235be77b8056f03d031dcf310fd883c37eb820942b3 WHIRLPOOL 4359a285ea382a38716ec71f90527fe6b1a92f25193b59f49f69048774645bd4a5ba7dcd71f6f8cd8207b0b5ec42ef125b41533053aa5370c6f794ed792f3195 +AUX frox-0.7.18-config.patch 1960 SHA256 dd6b2bd265d20b569c4b897d66f5b1317b4642998a454e7889fc458c1f6dbd5a SHA512 69210560adaa38cc94960f4e76ba4ae9f20b5044c0d3d84e835a107554ae3f5315f9463c7730ada716c63615cab782d140e8df8c2b9f9bcf6e844a7bd7033666 WHIRLPOOL e398ec03ffa3fad930a5cb4b8238b234ee5aa565b5cb8faa43fce4a96b5da42befe7a9079321001294304e531c9eacd188b6df46334b8ddd7f072d392ec3f8ef +AUX frox.initd 873 SHA256 aac2cb2d7f4b613686318b84e3a45d2f0f92f3e5dc814166a6a2a77352175faa SHA512 26bc18f28cf46184b0c387196958f9236ec0cd70fe43ac8b18de66e69c42d73087ed5063f3ecc1b1d5c0880b2047293403e4cfbb15f5a23ca5d6fc521021f364 WHIRLPOOL fce893804a29ccc48a3c7a4be337b07369b36934f08ce89c060538d02de9a12366a08a8d19d91181aab93f438ed0f96fdebe2665750e55af3b6d3c830f3140e7 +DIST frox-0.7.18.tar.bz2 173355 SHA256 f7b637dd108444ff9c2302aa134f434e1606a2f965c01492abfbdc9b1c0bd0fc SHA512 bdffe4b70c91b920378a422dcf386088c3bb34f26e10de8ff57f487ccef6356803c93057eee2b3801a79120a6b2e1618a51dde5bc8c42e13211abf4182c4ff8c WHIRLPOOL 9b7c4d4c2e9e14d1d2d753096b06935fa9ad18ac6fba5c28c05f45b0e5bfb28d9574cdfe649f8cf7bfa0ac666f9e341769db0a57253ac15c72ed1508657de0e1 +EBUILD frox-0.7.18-r5.ebuild 1867 SHA256 0384463b73188fbd53186ae06fd1024326c4c02aadb93e74e96318408054f9b1 SHA512 052b7ec3c474dad56403188bc69f377752d6f9a24d40f87c25c54feff23c9d4187c61fff0dd759c09eb0326e2719b425a6165c370e57e299bc8ffb1967ba6f57 WHIRLPOOL 786c4d67b11159c0a7d296c402e4caa52d0d1d2e3bcaffbb1690cd71add218e2cc42357782d7eecbf06887c1409d84ad305ad7ea0eac293f368025be85943fa6 +EBUILD frox-0.7.18-r6.ebuild 1976 SHA256 641cfea0600263414036167b0a2e233d513d4c4c1422f37876bea094fe1f5d88 SHA512 e998e2d9a6a548756534994bfc7359b983fe3d6d98dc208398a9ee366132cd1da50ca7ff0e760c9f86350c6ebb201d5e6c9e7043c832b7c8087ea0f515412c6f WHIRLPOOL f7095739e67bccfe724e3a1ed9ffa6f400328077d523435b6d471f0149b0235dc21d13a6b95c50806b11c46ceb1318015385ad970b241b5baea42d720eba36c1 +MISC ChangeLog 4217 SHA256 72236dd8fbb443c79b33e0fdb118e51944fe55f7a44d500f92d3745e4dfd699f SHA512 7c2a23bb7009a4c34c8b02da3ee31ecef2f0748dfa83613421a02f70b54fbee1dac70111800a8843e6266ea830f09016438504b6fb4eaf984de14d33d25a1f70 WHIRLPOOL aeb5b118d11d95d8770c4b23169b3d5b03a9e94ae1452057ae458eb3125ce1af84644a0a88bf4a2a4f434d7cdae5630805cbef6d555fc548d6393eb919519da3 +MISC ChangeLog-2015 4170 SHA256 019d2952bb5d563ea90517546374f8fa4757685ba7e26f0f04f8ba46cb6ee52c SHA512 e929425ae397c5dfba23fc23315631cb049bb6a0dd6e04e621c0f100c3d6fbd8d062f87e8eb911f091ed0e75220fc47be037d9bff182a80d0fc142287979f37f WHIRLPOOL 821c6df2be3d88f439a4ae5c8c521e63b825989ae2cd680eda84ee28323a8306a1fb1add44881c330606955f46deeef78993c5d77dd3428c4ecf682b45729495 +MISC metadata.xml 656 SHA256 874de254c0f8a79631826c4221d6f26d9486be5275008f4679030fe2ec4ba2aa SHA512 c4e9a07f7e868c032e8830b70d3ccc876a54d685790e74aac5ea5554710af473004a176ffb9501e87fa6b32010464e274a111f34f318e12be97f86a96df58f3a WHIRLPOOL ad9061b1cf2f38a7d090b11d4796affe2bf2921bf7e9b9b81ef0c95f34a910b8c7567df70db9c272c27ff804612e630f8a42da7cc50ebe87e29795125268adcf diff --git a/net-ftp/frox/files/0.7.18-netfilter-includes.patch b/net-ftp/frox/files/0.7.18-netfilter-includes.patch new file mode 100644 index 000000000000..889f42121722 --- /dev/null +++ b/net-ftp/frox/files/0.7.18-netfilter-includes.patch @@ -0,0 +1,16 @@ +--- a/configure.in.ori 2012-03-01 22:32:17.044450088 +0100 ++++ b/configure.in 2012-03-01 22:36:40.995882948 +0100 +@@ -331,7 +331,12 @@ + AC_HEADER_STDC + AC_HEADER_SYS_WAIT + AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h sys/time.h syslog.h unistd.h) +-AC_CHECK_HEADERS(linux/netfilter_ipv4.h, , , [#include <limits.h>]) ++AC_CHECK_HEADERS(linux/netfilter_ipv4.h, , ,[ ++ #include <limits.h> ++ #include <sys/socket.h> ++ #include <linux/in.h> ++ #include <linux/in6.h> ++]) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST diff --git a/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch b/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch new file mode 100644 index 000000000000..8076d91ea268 --- /dev/null +++ b/net-ftp/frox/files/0.7.18-respect-CFLAGS.patch @@ -0,0 +1,15 @@ +--- a/configure.in 2005-02-04 11:24:55.000000000 +0100 ++++ b/configure.in 2012-03-01 22:56:25.985725178 +0100 +@@ -46,11 +46,9 @@ + ;; + *) + AC_MSG_RESULT(no) +- CFLAGS="$CFLAGS -O2" + ;; + esac], +- [AC_MSG_RESULT(no) +- CFLAGS="$CFLAGS -O2"] ++ [AC_MSG_RESULT(no)] + ) + + AC_MSG_CHECKING(whether to compile in profiling info) diff --git a/net-ftp/frox/files/frox-0.7.18-config.patch b/net-ftp/frox/files/frox-0.7.18-config.patch new file mode 100644 index 000000000000..feee37e3674e --- /dev/null +++ b/net-ftp/frox/files/frox-0.7.18-config.patch @@ -0,0 +1,66 @@ +--- a/src/frox.conf 2005-02-04 19:54:55.000000000 +0930 ++++ b/src/frox.conf 2005-02-07 19:35:32.995421344 +0930 +@@ -18,7 +18,9 @@ + # commented out to listen on all local IPs. + # + # Listen firewall.localnet +-Listen 192.168.2.1 ++# Listen 192.168.2.1 ++ ++Listen 127.0.0.1 + + # Port to listen on. Must be supplied. + # +@@ -26,7 +28,7 @@ + + # If specified then bind to this device + # +-BindToDevice eth0 ++#BindToDevice eth0 + + # Whether to run from inetd. You should still define Port above, but + # it isn't used for much. +@@ -69,12 +71,12 @@ + #################################################################### + # General Options # + #################################################################### +-# User and group to drop priveliges to. This must be specified - if ++User ftpproxy + # you really want to run as root (not a good idea) you must say so + # specifically, and have compiled with --enable-run-as-root. + # +-# User nobody +-# Group nogroup ++User ftpproxy ++Group ftpproxy + + # This is frox's working directory - it must be specified. Temporary + # files and sockets will be created here. If you are using local +@@ -83,7 +85,7 @@ + # also chroot to this dir on startup. To avoid this you must specifically + # set DontChroot to Yes. + # +-# WorkingDir /usr/local/lib/frox ++WorkingDir /var/spool/frox + # DontChroot Yes + + # Logging level. 0=No logging. 5=Critical errors only. 10= All errors. +@@ -96,15 +98,15 @@ + # transferred irrespective of the log level. You can turn this off + # below. + # +-# LogLevel 15 +-# LogFile /usr/local/lib/frox/frox-log ++LogLevel 20 ++LogFile /var/log/frox/frox-log + # XferLogging no + + # File to store PID in. Default is not to. If this file is not within + # the Chroot directory then it cannot be deleted on exit, but will + # otherwise work fine. + # +-PidFile /var/run/frox.pid ++PidFile /var/run/frox/frox.pid + + + #################################################################### diff --git a/net-ftp/frox/files/frox.initd b/net-ftp/frox/files/frox.initd new file mode 100644 index 000000000000..0512d05857a5 --- /dev/null +++ b/net-ftp/frox/files/frox.initd @@ -0,0 +1,37 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_commands="reload" + +FROX_CONFIG="/etc/frox.conf" +FROX_PID_FILE="/var/run/frox/frox.pid" +FROX_OPTS="-f ${FROX_CONFIG}" + +checkconfig() { + local piddir="$(dirname ${FROX_PID_FILE})" + checkpath -q -d -o ftpproxy:ftpproxy -m 0770 "${piddir}" || return 1 + if [ ! -f "${FROX_CONFIG}" ] ; then + eerror "missing ${FROX_CONFIG}" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet --exec /usr/sbin/frox -- ${FROX_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --exec /usr/sbin/frox --pidfile "${FROX_PID_FILE}" + eend $? +} + +reload() { + ebegin "Reloading configuration" + start-stop-daemon --signal HUP --pidfile "${FROX_PID_FILE}" + eend $? +} diff --git a/net-ftp/frox/frox-0.7.18-r5.ebuild b/net-ftp/frox/frox-0.7.18-r5.ebuild new file mode 100644 index 000000000000..6ae5baf2c80e --- /dev/null +++ b/net-ftp/frox/frox-0.7.18-r5.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils user + +DESCRIPTION="A transparent ftp proxy" +SRC_URI="http://frox.sourceforge.net/download/${P}.tar.bz2" +HOMEPAGE="http://frox.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" + +IUSE="clamav ssl transparent" + +DEPEND="clamav? ( >=app-antivirus/clamav-0.80 ) + ssl? ( dev-libs/openssl ) + kernel_linux? ( >=sys-kernel/linux-headers-2.6 )" +RDEPEND="${DEPEND}" + +# INSTALL has useful filewall rules +DOCS=( + BUGS README + doc/CREDITS doc/ChangeLog doc/FAQ doc/INSTALL + doc/INTERNALS doc/README.transdata doc/RELEASE + doc/SECURITY doc/TODO +) + +pkg_setup() { + enewgroup ftpproxy + enewuser ftpproxy -1 -1 /var/spool/frox ftpproxy + + use clamav && ewarn "Virus scanner potentialy broken in chroot - see bug #81035" +} + +src_prepare () { + epatch "${FILESDIR}/${PV}-respect-CFLAGS.patch" + epatch "${FILESDIR}/${PV}-netfilter-includes.patch" + epatch "${FILESDIR}/${P}-config.patch" + + if use clamav ; then + sed -i -e "s:^# VirusScanner.*:# VirusScanner '\"/usr/bin/clamscan\" \"%s\"':" \ + "src/${PN}.conf" || die + fi + + epatch_user + eautoreconf +} + +src_configure() { + econf \ + --enable-http-cache --enable-local-cache \ + --enable-procname \ + --enable-configfile=/etc/frox.conf \ + $(use_enable !kernel_linux libiptc) \ + $(use_enable clamav virus-scan) \ + $(use_enable ssl) \ + $(use_enable transparent transparent-data) \ + $(use_enable !transparent ntp) +} + +src_install() { + default + + keepdir /var/{log,spool}/"${PN}" + + fperms 700 /var/spool/frox + fowners ftpproxy:ftpproxy /var/{log,spool}/frox + + dohtml doc/*.html doc/*.sgml + + newman "doc/${PN}.man" "${PN}.man.8" + newman "doc/${PN}.conf.man" "${PN}.conf.man.5" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + + insinto /etc + newins "src/${PN}.conf" "${PN}.conf.example" +} diff --git a/net-ftp/frox/frox-0.7.18-r6.ebuild b/net-ftp/frox/frox-0.7.18-r6.ebuild new file mode 100644 index 000000000000..0a5b6ace383a --- /dev/null +++ b/net-ftp/frox/frox-0.7.18-r6.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils user + +DESCRIPTION="A transparent ftp proxy" +SRC_URI="http://frox.sourceforge.net/download/${P}.tar.bz2" +HOMEPAGE="http://frox.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="clamav libressl ssl transparent" + +DEPEND=" + clamav? ( >=app-antivirus/clamav-0.80 ) + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl:0= ) ) + kernel_linux? ( >=sys-kernel/linux-headers-2.6 ) +" +RDEPEND="${DEPEND}" + +# INSTALL has useful filewall rules +DOCS=( + BUGS README + doc/CREDITS doc/ChangeLog doc/FAQ doc/INSTALL + doc/INTERNALS doc/README.transdata doc/RELEASE + doc/SECURITY doc/TODO +) + +pkg_setup() { + enewgroup ftpproxy + enewuser ftpproxy -1 -1 /var/spool/frox ftpproxy + + use clamav && ewarn "Virus scanner potentialy broken in chroot - see bug #81035" +} + +src_prepare () { + HTML_DOCS=( doc/*.html doc/*.sgml ) + + default + + eapply "${FILESDIR}/${PV}-respect-CFLAGS.patch" + eapply "${FILESDIR}/${PV}-netfilter-includes.patch" + eapply "${FILESDIR}/${P}-config.patch" + + if use clamav ; then + sed -i -e "s:^# VirusScanner.*:# VirusScanner '\"/usr/bin/clamscan\" \"%s\"':" \ + "src/${PN}.conf" || die + fi + + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + econf \ + --enable-http-cache --enable-local-cache \ + --enable-procname \ + --enable-configfile=/etc/frox.conf \ + $(use_enable !kernel_linux libiptc) \ + $(use_enable clamav virus-scan) \ + $(use_enable ssl) \ + $(use_enable transparent transparent-data) \ + $(use_enable !transparent ntp) +} + +src_install() { + default + + keepdir /var/{log,spool}/"${PN}" + + fperms 700 /var/spool/frox + fowners ftpproxy:ftpproxy /var/{log,spool}/frox + + newman "doc/${PN}.man" "${PN}.man.8" + newman "doc/${PN}.conf.man" "${PN}.conf.man.5" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + + insinto /etc + newins "src/${PN}.conf" "${PN}.conf.example" +} diff --git a/net-ftp/frox/metadata.xml b/net-ftp/frox/metadata.xml new file mode 100644 index 000000000000..62cb681b803e --- /dev/null +++ b/net-ftp/frox/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kabel@blackhole.sk</email> + <name>Marek Behun</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="transparent">Enable transparent proxying of data connections</flag> + </use> + <longdescription>A transparent ftp proxy</longdescription> + <upstream> + <remote-id type="sourceforge">frox</remote-id> + </upstream> +</pkgmetadata> |