summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-01-24 14:05:34 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-01-24 14:05:34 +0000
commited4330d61b3ade91fd63001e9eb1e86f8e1bae37 (patch)
treec38bda97be8605a7eb9e55030fe8daab690c1e87 /net-ftp/frox
parentnet-ftp/frox:clamav (diff)
downloadgentoo-2-ed4330d61b3ade91fd63001e9eb1e86f8e1bae37.tar.gz
gentoo-2-ed4330d61b3ade91fd63001e9eb1e86f8e1bae37.tar.bz2
gentoo-2-ed4330d61b3ade91fd63001e9eb1e86f8e1bae37.zip
Initial import as per bug #50674
(Portage version: 2.0.51-r14)
Diffstat (limited to 'net-ftp/frox')
-rw-r--r--net-ftp/frox/ChangeLog11
-rw-r--r--net-ftp/frox/Manifest3
-rw-r--r--net-ftp/frox/files/digest-frox-0.7.171
-rw-r--r--net-ftp/frox/files/frox.rc46
-rw-r--r--net-ftp/frox/frox-0.7.17.ebuild63
-rw-r--r--net-ftp/frox/metadata.xml12
6 files changed, 136 insertions, 0 deletions
diff --git a/net-ftp/frox/ChangeLog b/net-ftp/frox/ChangeLog
new file mode 100644
index 000000000000..89a27197088e
--- /dev/null
+++ b/net-ftp/frox/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-ftp/frox
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/ChangeLog,v 1.1 2005/01/24 14:05:34 dragonheart Exp $
+
+*frox-0.7.17 (24 Jan 2005)
+
+ 24 Jan 2005; Daniel Black <dragonheart@gentoo.org> +files/frox.rc,
+ +frox-0.7.17.ebuild, +metadata.xml:
+ Initial import as per bug #50674. Ebuild by Ludovic CINTRAT
+ <ludovic.cintrat@wanadoo.fr>
+
diff --git a/net-ftp/frox/Manifest b/net-ftp/frox/Manifest
new file mode 100644
index 000000000000..32cc918d1683
--- /dev/null
+++ b/net-ftp/frox/Manifest
@@ -0,0 +1,3 @@
+MD5 a9f5116375f30e3e9783784a0d0664eb frox-0.7.17.ebuild 1542
+MD5 53684947196c2ab2f628954624eb710a files/frox.rc 862
+MD5 b7ee81e7aac314baf746d17c3560ef04 files/digest-frox-0.7.17 64
diff --git a/net-ftp/frox/files/digest-frox-0.7.17 b/net-ftp/frox/files/digest-frox-0.7.17
new file mode 100644
index 000000000000..48ad81e441eb
--- /dev/null
+++ b/net-ftp/frox/files/digest-frox-0.7.17
@@ -0,0 +1 @@
+MD5 52cd220295c09577753f5261b18f0b16 frox-0.7.17.tar.bz2 171836
diff --git a/net-ftp/frox/files/frox.rc b/net-ftp/frox/files/frox.rc
new file mode 100644
index 000000000000..949d0e58a251
--- /dev/null
+++ b/net-ftp/frox/files/frox.rc
@@ -0,0 +1,46 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/files/frox.rc,v 1.1 2005/01/24 14:05:34 dragonheart Exp $
+
+PROGNAME=`basename $1`
+
+opts="depend start stop reload"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -f /etc/frox.config ] ; then
+ eerror "missing /etc/frox.config"
+ return 1
+ fi
+
+}
+
+start() {
+ checkconfig || return 1
+ FROX_OPTS=" -f /etc/frox.conf"
+
+ ebegin "Starting ${PROGNAME}..."
+ start-stop-daemon --start --quiet --exec /usr/sbin/${PROGNAME} -- ${OPTIONS} ${FROX_OPTS} &> /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stop ${PROGNAME}..."
+ start-stop-daemon --stop --quiet --exec /usr/sbin/${PROGNAME} &> /dev/null
+ eend $?
+}
+
+reload() {
+ if [ ! -f /var/run/frox/frox.pid ]; then
+ eerror "frox isn't running"
+ return 1
+ fi
+ ebegin "Reloading configuration"
+ kill -HUP `cat /var/run/frox/frox.pid` &>/dev/null
+ eend $?
+}
+
diff --git a/net-ftp/frox/frox-0.7.17.ebuild b/net-ftp/frox/frox-0.7.17.ebuild
new file mode 100644
index 000000000000..32d126b4ce7c
--- /dev/null
+++ b/net-ftp/frox/frox-0.7.17.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/frox-0.7.17.ebuild,v 1.1 2005/01/24 14:05: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="x86 amd64"
+
+DEPEND="clamav? ( >=app-antivirus/clamav-0.80 )"
+
+
+pkg_setup() {
+ enewgroup ftpproxy
+ enewuser ftpproxy -1 /bin/false /var/spool/frox ftpproxy
+}
+
+src_compile() {
+
+ econf \
+ --sbindir=/usr/sbin \
+ --localstatedir=/var/run \
+ --sysconfdir=/etc \
+ --enable-http-cache --enable-local-cache \
+ `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
+ fperms 700 /var/spool/frox
+ fowners ftpproxy:ftpproxy /var/run/frox /var/spool/frox
+
+ dodoc BUGS COPYING 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
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/frox.rc frox
+
+ sed -e "s:^# User.*:User ftpproxy:" -e "s:^# Group.*:Group ftpproxy:" \
+ ./src/frox.conf > ${D}/etc/frox.conf.example
+
+}
diff --git a/net-ftp/frox/metadata.xml b/net-ftp/frox/metadata.xml
new file mode 100644
index 000000000000..b9fc2b9c6f11
--- /dev/null
+++ b/net-ftp/frox/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>dragonheart@gentoo.org</email>
+ <name>Daniel Black</name>
+ <description>A user ebuild that I felt obliged to include. Please take over if you want
+it</description>
+</maintainer>
+<longdescription></longdescription>
+</pkgmetadata>