summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2008-04-02 07:56:34 +0000
committerDaniel Black <dragonheart@gentoo.org>2008-04-02 07:56:34 +0000
commitbf3008eb66a6c7b4ab0dd5c888904665ce9a03ba (patch)
tree47ef994a35dfbbfa5bf5344016fad014da3fba9b /net-ftp
parentstable x86, bug 215149 (diff)
downloadgentoo-2-bf3008eb66a6c7b4ab0dd5c888904665ce9a03ba.tar.gz
gentoo-2-bf3008eb66a6c7b4ab0dd5c888904665ce9a03ba.tar.bz2
gentoo-2-bf3008eb66a6c7b4ab0dd5c888904665ce9a03ba.zip
added --enable-transparent-data as per bug #189896 by Chih-Hsiang Hsu
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/frox/ChangeLog9
-rw-r--r--net-ftp/frox/frox-0.7.18-r3.ebuild73
2 files changed, 80 insertions, 2 deletions
diff --git a/net-ftp/frox/ChangeLog b/net-ftp/frox/ChangeLog
index 98e186c26bcc..e58afac75191 100644
--- a/net-ftp/frox/ChangeLog
+++ b/net-ftp/frox/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-ftp/frox
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/ChangeLog,v 1.12 2007/04/29 18:06:37 tove Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/ChangeLog,v 1.13 2008/04/02 07:56:34 dragonheart Exp $
+
+*frox-0.7.18-r3 (02 Apr 2008)
+
+ 02 Apr 2008; Daniel Black <dragonheart@gentoo.org> +frox-0.7.18-r3.ebuild:
+ added --enable-transparent-data as per bug #189896 by Chih-Hsiang Hsu
29 Apr 2007; Torsten Veller <tove@gentoo.org> frox-0.7.18-r2.ebuild:
Fix *initd, *confd and *envd calls (#173884, #174266)
diff --git a/net-ftp/frox/frox-0.7.18-r3.ebuild b/net-ftp/frox/frox-0.7.18-r3.ebuild
new file mode 100644
index 000000000000..8c37d6b2ccd5
--- /dev/null
+++ b/net-ftp/frox/frox-0.7.18-r3.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/frox-0.7.18-r3.ebuild,v 1.1 2008/04/02 07:56:34 dragonheart Exp $
+
+inherit eutils
+
+IUSE="clamav"
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="A transparent ftp proxy"
+SRC_URI="http://frox.sourceforge.net/download/${MY_P}.tar.bz2"
+HOMEPAGE="http://frox.sourceforge.net/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="clamav? ( >=app-antivirus/clamav-0.80 )"
+
+pkg_setup() {
+ enewgroup ftpproxy
+ enewuser ftpproxy -1 -1 /var/spool/frox ftpproxy
+}
+
+src_compile() {
+
+ econf \
+ --sbindir=/usr/sbin \
+ --localstatedir=/var/run \
+ --sysconfdir=/etc \
+ --enable-http-cache --enable-local-cache \
+ --enable-transparent-data \
+ $(use_enable clamav virus-scan) || die "bad ./configure"
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ keepdir /var/run/frox
+ keepdir /var/spool/frox
+ keepdir /var/log/frox
+
+ fperms 700 /var/spool/frox
+ fowners ftpproxy:ftpproxy /var/run/frox /var/spool/frox /var/log/frox
+
+ # INSTALL has useful filewall rules
+ dodoc BUGS README \
+ doc/CREDITS doc/ChangeLog doc/FAQ doc/INSTALL \
+ doc/INTERNALS doc/README.transdata doc/RELEASE \
+ doc/SECURITY doc/TODO
+
+ dohtml doc/*.html doc/*.sgml
+
+ mv doc/frox.man doc/frox.man.8
+ mv doc/frox.conf.man doc/frox.conf.man.8
+ doman doc/frox.man.8 doc/frox.conf.man.8
+
+ newinitd ${FILESDIR}/frox.rc frox
+
+ cd src
+ epatch ${FILESDIR}/config-${PV}.patch || die "config patch failed"
+
+ if use clamav; then
+ sed -e "s:^# VirusScanner.*:# VirusScanner '\"/usr/bin/clamscan\" \"%s\"':" \
+ frox.conf > ${D}/etc/frox.conf.example
+ ewarn "Virus scanner potentialy broken in chroot - see bug #81035."
+ else
+ cp frox.conf ${D}/etc/frox.conf.example
+ fi
+}