diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-24 01:41:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-24 01:41:16 +0000 |
commit | 049d24484fe2702d8d4dce03671a1ce21dfc0298 (patch) | |
tree | 2935bd0b8d80423f33b6050859e08ac9c6be4b7a /net-ftp/glftpd | |
parent | Marked ppc stable for bug #86405. (diff) | |
download | gentoo-2-049d24484fe2702d8d4dce03671a1ce21dfc0298.tar.gz gentoo-2-049d24484fe2702d8d4dce03671a1ce21dfc0298.tar.bz2 gentoo-2-049d24484fe2702d8d4dce03671a1ce21dfc0298.zip |
re-add the glftpd stuff in pkg_config for /etc/services #86417
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-ftp/glftpd')
-rw-r--r-- | net-ftp/glftpd/glftpd-2.00.ebuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net-ftp/glftpd/glftpd-2.00.ebuild b/net-ftp/glftpd/glftpd-2.00.ebuild index 4d6c5e4c5114..491917c5f4b7 100644 --- a/net-ftp/glftpd/glftpd-2.00.ebuild +++ b/net-ftp/glftpd/glftpd-2.00.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/glftpd/glftpd-2.00.ebuild,v 1.2 2005/02/20 22:09:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/glftpd/glftpd-2.00.ebuild,v 1.3 2005/03/24 01:41:16 vapier Exp $ inherit eutils @@ -45,7 +45,7 @@ src_install() { # custom options export USETCPD=$(yesno useq tcpd) export JAIL=y - export MAKETLS=$(yesno [ ! -e /etc/glftpd-dsa.pem ]) + export MAKETLS=$(yesno [[ ! -e ${ROOT}/etc/glftpd-dsa.pem ]]) export WHICHNETD=x "${S}"/installgl.sh || die "installgl.sh failed" @@ -56,10 +56,10 @@ src_install() { mv ${GLROOT}/glftpd.conf ${D}/etc/ ln -s /etc/glftpd.conf ${GLROOT}/glftpd.conf - if [ -e /etc/glftpd-dsa.pem ] ; then - cp /etc/glftpd-dsa.pem ${D}/etc/ + 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 + 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 @@ -92,6 +92,12 @@ pkg_postinst() { } 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" |