Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /home/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.15.ebuild,v 1.3 2003/07/29 13:48:42 gmsoft Exp $ |
4 |
|
5 |
DESCRIPTION="Pure-FTPd is a fast, production-quality, standard-conformant FTP server" |
6 |
SRC_URI="ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/${P}.tar.bz2" |
7 |
HOMEPAGE="http://www.pureftpd.org/" |
8 |
DEPEND="virtual/glibc |
9 |
pam? ( >=sys-libs/pam-0.75 ) |
10 |
mysql? ( >=dev-db/mysql-3* ) |
11 |
postgres? ( >=dev-db/postgresql-7.2.2 ) |
12 |
ldap? ( >=net-nds/openldap-2.0.25 ) |
13 |
crypt? ( >=dev-libs/openssl-0.9.6d )" |
14 |
SLOT="0" |
15 |
# Changed from GPL-2 to BSD 06/09/2003 |
16 |
LICENSE="BSD" |
17 |
KEYWORDS="x86 ppc sparc alpha hppa" |
18 |
IUSE="pam mysql postgres ldap crypt" |
19 |
|
20 |
src_compile() { |
21 |
use pam && myconf="${myconf} --with-pam" |
22 |
use ldap && myconf="${myconf} --with-ldap" |
23 |
use mysql && myconf="${myconf} --with-mysql" |
24 |
use postgres && myconf="${myconf} --with-pgsql" |
25 |
use crypt && myconf="${myconf} --with-tls" |
26 |
|
27 |
econf --with-altlog --with-extauth \ |
28 |
--with-puredb --with-cookie \ |
29 |
--with-throttling --with-ratios \ |
30 |
--with-quotas --with-ftpwho \ |
31 |
--with-uploadscript --with-virtualhosts \ |
32 |
--with-virtualchroot --with-diraliases \ |
33 |
--with-peruserlimits ${myconf} |
34 |
emake || die "compile problem" |
35 |
} |
36 |
|
37 |
src_install() { |
38 |
einstall |
39 |
|
40 |
dodoc AUTHORS CONTACT COPYING ChangeLog FAQ HISTORY INSTALL README* NEWS |
41 |
|
42 |
dodir /etc/{conf.d,init.d} |
43 |
cp ${FILESDIR}/ftpusers ${D}/etc/ftpusers |
44 |
cp ${FILESDIR}/pure-ftpd.conf_d ${D}/etc/conf.d/pure-ftpd |
45 |
|
46 |
use pam && insinto /etc/pam.d && doins pam/{ftplockout,pure-ftpd} |
47 |
|
48 |
exeinto /etc/init.d |
49 |
newexe ${FILESDIR}/pure-ftpd.rc6-r1 pure-ftpd |
50 |
|
51 |
insopts -m 644 |
52 |
insinto /etc/xinetd.d |
53 |
newins ${FILESDIR}/pure-ftpd.xinetd pure-ftpd |
54 |
|
55 |
if [ `use ldap` ]; then |
56 |
dodir /etc/openldap/schema |
57 |
insinto /etc/openldap/schema |
58 |
doins openldap.schema |
59 |
insinto /etc/openldap |
60 |
doins pureftpd-ldap.conf |
61 |
fi |
62 |
} |
63 |
|
64 |
pkg_postinst() { |
65 |
einfo "Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file." |
66 |
echo |
67 |
ewarn "It's *really* important to read the README provided with Pure-FTPd." |
68 |
ewarn "Just point your browser at http://www.pureftpd.org/README" |
69 |
ewarn "If you plan to use SSL/TLS, also have a look at " |
70 |
ewarn "http://www.pureftpd.org/README.TLS" |
71 |
} |