diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-04-29 19:32:17 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-04-29 19:32:17 +0000 |
commit | 63e1d4882967279d26a302400ebc9bab1c76f121 (patch) | |
tree | 858330c9ce5d099776d1075b4032e755e9a8bb43 /net-ftp | |
parent | Fixes for glib (diff) | |
download | gentoo-2-63e1d4882967279d26a302400ebc9bab1c76f121.tar.gz gentoo-2-63e1d4882967279d26a302400ebc9bab1c76f121.tar.bz2 gentoo-2-63e1d4882967279d26a302400ebc9bab1c76f121.zip |
Update, FHS2.1 fixes, added USE pam,mysql,postgres,ldap
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/proftpd/proftpd-1.2.1.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/net-ftp/proftpd/proftpd-1.2.1.ebuild b/net-ftp/proftpd/proftpd-1.2.1.ebuild new file mode 100644 index 000000000000..78454ea07be3 --- /dev/null +++ b/net-ftp/proftpd/proftpd-1.2.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.1.ebuild,v 1.1 2001/04/29 19:32:17 achim Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="proftpd." +SRC_URI="ftp://ftp.proftpd.org/distrib/${P}.tar.bz2 + http://www.lastditcheffort.org/aah/src/mod_sql-3.1.5.patch.tar.gz" +HOMEPAGE="http://www.proftpd.net/" + +DEPEND="virtual/glibc + pam? ( >=sys-libs/pam-0.75 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + postgres? ( >=dev-db/postgresql-7.1 )" + + +src_unpack() { + + unpack ${P}.tar.bz2 + cd ${S} + gzip -dc ${DISTDIR}/mod_sql-3.1.5.patch.tar.gz | patch -p0 +} + +src_compile() { + local modules + local myinc + modules="mod_ratio:mod_readme:mod_linuxprivs" + if [ "`use pam`" ] ; then + modules="$modules:mod_pam" + fi + if [ "`use mysql`" ] ; then + modules="$modules:mod_sql:mod_sql_mysql" + else + if [ "`use postgres`" ] ; then + modules="$modules:mod_sql:mod_sql_postgres" + myinc="/usr/include/postgresql" + fi + fi + if [ "`use ldap`" ] ; then + modules="$modules:mod_ldap" + fi + + if [ "$myinc" ] ; then + myinc="--with-includes=$myinc" + fi + + ./configure --host=${CHOST} --prefix=/usr --sbindir=/usr/sbin \ + --sysconfdir=/etc/proftp --localstatedir=/var/run --mandir=/usr/share/man \ + --with-modules=$modules --disable-sendfile --enable-shadow --enable-autoshadow $myinc + try make + +} + +src_install() { + try make install prefix=${D}/usr sysconfdir=${D}/etc/proftp \ + mandir=${D}/usr/share/man \ + localstatedir=${D}/var/run sbindir=${D}/usr/sbin + + into /usr + dodir /home/ftp + dobin contrib/genuser.pl + dodoc COPYING CREDITS ChangeLog NEWS + dodoc README* + cd doc + dodoc API Changes-1.2.0pre3 license.txt GetConf ShowUndocumented + dodoc Undocumented.txt development.notes + docinto html + dodoc *.html + docinto rfc + dodoc rfc/*.txt + cp ${FILESDIR}/proftpd.conf ${D}/etc/proftp +} + + + + |