summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-06 02:41:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-06 02:41:18 +0000
commit89b9918c18e0a299e65555ba80c566b6a090f5d2 (patch)
treed23fe2fbcd53f3f671c73c0b549c019cd1f7058a /net-ftp
parentVersion bump to fix bug #117902. Removed old ebuilds with same keywords. (diff)
downloadgentoo-2-89b9918c18e0a299e65555ba80c566b6a090f5d2.tar.gz
gentoo-2-89b9918c18e0a299e65555ba80c566b6a090f5d2.tar.bz2
gentoo-2-89b9918c18e0a299e65555ba80c566b6a090f5d2.zip
Version bump #117958 for Jakub Moc.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/glftpd/ChangeLog10
-rw-r--r--net-ftp/glftpd/files/digest-glftpd-2.011
-rw-r--r--net-ftp/glftpd/files/glftpd-2.01-install.patch105
-rw-r--r--net-ftp/glftpd/glftpd-2.01.ebuild103
4 files changed, 217 insertions, 2 deletions
diff --git a/net-ftp/glftpd/ChangeLog b/net-ftp/glftpd/ChangeLog
index 24ec4d9985f6..19526ab35c95 100644
--- a/net-ftp/glftpd/ChangeLog
+++ b/net-ftp/glftpd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-ftp/glftpd
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/glftpd/ChangeLog,v 1.12 2005/02/19 22:53:54 vapier Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/glftpd/ChangeLog,v 1.13 2006/01/06 02:41:18 vapier Exp $
+
+*glftpd-2.01 (06 Jan 2006)
+
+ 06 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/glftpd-2.01-install.patch, +glftpd-2.01.ebuild:
+ Version bump #117958 for Jakub Moc.
*glftpd-2.00 (19 Feb 2005)
diff --git a/net-ftp/glftpd/files/digest-glftpd-2.01 b/net-ftp/glftpd/files/digest-glftpd-2.01
new file mode 100644
index 000000000000..448293b8e7d0
--- /dev/null
+++ b/net-ftp/glftpd/files/digest-glftpd-2.01
@@ -0,0 +1 @@
+MD5 f15628798b1f6cfe71a781f035cfaa28 glftpd-LNX_2.01.tgz 2765868
diff --git a/net-ftp/glftpd/files/glftpd-2.01-install.patch b/net-ftp/glftpd/files/glftpd-2.01-install.patch
new file mode 100644
index 000000000000..dd0f04aa8de8
--- /dev/null
+++ b/net-ftp/glftpd/files/glftpd-2.01-install.patch
@@ -0,0 +1,105 @@
+--- installgl.sh
++++ installgl.sh
+@@ -273 +272,0 @@
+-read randomkey
+@@ -299 +298 @@
+- read usetcpd
++ usetcpd=${USETCPD}
+@@ -363 +362 @@
+- read jail
++ jail=y
+@@ -376 +375 @@
+- read jaildir
++ jaildir=${GLROOT}
+@@ -388 +387 @@
+- read reply
++ echo "SHOULD NOT HAVE BEEN HERE 1" ; exit 1
+@@ -420 +419 @@
+- read useprivgroup
++ useprivgroup=n
+@@ -441 +440 @@
+- read privgroup
++ echo "SHOULD NOT HAVE BEEN HERE 2" ; exit 1
+@@ -450 +449 @@
+- read reply
++ echo "SHOULD NOT HAVE BEEN HERE 3" ; exit 1
+@@ -468 +467 @@
+- read jailusers
++ echo "SHOULD NOT HAVE BEEN HERE 4" ; exit 1
+@@ -532 +531 @@
+- read glroot
++ break
+@@ -544 +543 @@
+- read reply
++ echo "SHOULD NOT HAVE BEEN HERE 5" ; exit 1
+@@ -620 +619 @@
+- read keystroke
++ echo "SHOULD NOT HAVE BEEN HERE A" ; exit 1
+@@ -657 +656 @@
+- read servicename
++ servicename=glftpd
+@@ -672 +671 @@
+- read keystroke
++ keystroke=y
+@@ -694 +693 @@
+- read keystroke
++ echo "SHOULD NOT HAVE BEEN HERE 6.2" ; exit 1
+@@ -751 +750 @@
+- $usegcc $gccflags "$jaildir$glroot/bin/$base" "$cfile" >/dev/null 2>&1 || \
++ $usegcc $gccflags "$jaildir$glroot/bin/$base" "$cfile" >& "$cfile".cc.log || \
+@@ -754 +753 @@
+- echo "OK."
++ echo "OK." ; rm -f "$cfile".cc.log
+@@ -757 +756 @@
+- echo "FAILED!"
++ echo "FAILED!" ; cat "$cfile".cc.log
+@@ -885 +884 @@
+- read port
++ port=21
+@@ -901,4 +899,0 @@
+-{ grep -v ^${servicename} /etc/services;
+- echo "$servicename $port/tcp"
+-} > /etc/services.new
+-mv -f /etc/services.new /etc/services
+@@ -950 +945 @@
+- read whichnetd
++ whichnetd=${WHICHNETD}
+@@ -962,4 +957 @@
+- echo "ERROR: Can't determine if you are using inetd or xinetd!"
+- echo "This is usually because neither is running at the moment -"
+- echo "install/start one of them and re-run this installer."
+- exit 1
++ whichnetd=${WHICHNETD}
+@@ -980 +972 @@
+- read keystroke
++ keystroke=n
+@@ -998 +990 @@
+- read keystroke
++ echo "SHOULD NOT HAVE BEEN HERE B" ; exit 1
+@@ -1020 +1011,0 @@
+- cp /etc/localtime /usr/lib/
+@@ -1040 +1031 @@
+- read tlsname
++ tlsname="ftp server"
+@@ -1101 +1092 @@
+- mv -f $base.pem $tls/
++ mv -f $base.pem $D$tls/
+@@ -1134 +1125 @@
+- read tls
++ echo "SHOULD NOT HAVE BEEN HERE 7" ; exit 1
+@@ -1162 +1153 @@
+- read tls
++ tls=/etc/glftpd-dsa.pem ; break
+@@ -1287,3 +1278,2 @@
+- [ ! -d "/etc/xinetd.d" ] && {
+- mkdir /etc/xinetd.d
+- echo "includedir /etc/xinetd.d" >> /etc/xinetd.conf
++ [ ! -d "$D/etc/xinetd.d" ] && {
++ mkdir $D/etc/xinetd.d
+@@ -1291 +1281 @@
+- cat <<EOF > /etc/xinetd.d/$servicename
++ cat <<EOF > $D/etc/xinetd.d/$servicename
+@@ -1324,3 +1313,0 @@
+-{ crontab -l | grep -v "$jaildir$glroot/bin/reset"
+- echo "0 0 * * * $jaildir$glroot/bin/reset ${euroweek}${confpath}"
+-} | crontab - > /dev/null
diff --git a/net-ftp/glftpd/glftpd-2.01.ebuild b/net-ftp/glftpd/glftpd-2.01.ebuild
new file mode 100644
index 000000000000..9a5035edc4bf
--- /dev/null
+++ b/net-ftp/glftpd/glftpd-2.01.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/glftpd/glftpd-2.01.ebuild,v 1.1 2006/01/06 02:41:18 vapier Exp $
+
+inherit eutils
+
+MY_P=${P/-/-LNX_}
+DESCRIPTION="a HIGHLY configurable ftp server"
+HOMEPAGE="http://www.glftpd.com/"
+SRC_URI="http://www.glftpd.com/files/${MY_P}.tgz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/openssl"
+RDEPEND="${DEPEND}
+ sys-apps/xinetd"
+
+S=${WORKDIR}/${MY_P}
+
+# custom options
+export CUSTOMGLROOT=${CUSTOMGLROOT:-/opt/glftpd}
+export GLROOT=${GLROOT:-${D}${CUSTOMGLROOT}}
+
+pkg_setup() {
+ [[ -d /proc/sysvipc ]] || die "You need System V IPC support in your kernel"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ cp installgl.sh{,.orig}
+ epatch "${FILESDIR}"/${P}-install.patch
+}
+
+yesno() { if $@ ; then echo y ; else echo n ; fi ; }
+
+src_install() {
+ dodir /etc/xinetd.d
+
+ # custom options
+ export USETCPD=$(yesno useq tcpd)
+ export JAIL=y
+ export MAKETLS=$(yesno [[ ! -e ${ROOT}/etc/glftpd-dsa.pem ]])
+ export WHICHNETD=x
+ "${S}"/installgl.sh || die "installgl.sh failed"
+
+ # fix the glftpd.conf file
+ sed -i \
+ -e "s:${GLROOT}:${CUSTOMGLROOT}/:" \
+ ${GLROOT}/glftpd.conf
+
+ mv ${GLROOT}/glftpd.conf ${D}/etc/
+ ln -s /etc/glftpd.conf ${GLROOT}/glftpd.conf
+ if [[ -e ${ROOT}/etc/glftpd-dsa.pem ]] ; then
+ cp "${ROOT}"/etc/glftpd-dsa.pem "${D}"/etc/
+ else
+ cp ftpd-dsa.pem "${D}"/etc/glftpd-dsa.pem
+ fi
+ ln -s /etc/glftpd-dsa.pem ${GLROOT}/etc/glftpd-dsa.pem
+ fperms o-r /etc/glftpd-dsa.pem
+
+ # xinetd.d entry (use our custom one :])
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/glftpd.xinetd.d glftpd
+ dosed "s:GLROOT:${CUSTOMGLROOT}:g" /etc/xinetd.d/glftpd
+
+ # env entry to protect our ftp passwd/group files
+ newenvd ${FILESDIR}/glftpd.env.d 99glftpd
+ dosed "s:GLROOT:${CUSTOMGLROOT}:g" /etc/env.d/99glftpd
+
+ # chmod the glftpd dir so that user files will work
+ chmod 711 ${GLROOT}
+}
+
+pkg_postinst() {
+ echo
+ einfo "Read the documentation in /opt/glftpd/docs/"
+ einfo "After you setup your conf file, edit the xinetd"
+ einfo "entry in /etc/xinetd.d/glftpd to enable, then"
+ einfo "start xinetd: /etc/init.d/xinetd start"
+ echo
+ einfo "To add glftpd to your services file and to"
+ einfo "create a cronjob for auto generating statistics,"
+ einfo "just run this command after you install:"
+ echo
+ einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
+}
+
+pkg_config() {
+ einfo "Updating /etc/services"
+ { grep -v ^glftpd /etc/services;
+ echo "glftpd 21/tcp"
+ } > /etc/services.new
+ mv -f /etc/services.new /etc/services
+
+ einfo "Updating crontab"
+ { crontab -l | grep -v "bin/reset"
+ echo "0 0 * * * ${CUSTOMGLROOT}/bin/reset -r ${CUSTOMGLROOT}/glftpd.conf"
+ } | crontab - > /dev/null
+}