Gentoo Archives: gentoo-dev

From: djamil essaissi <djamil@×××××××××××××××.com>
To: "gentoo-dev@g.o" <gentoo-dev@g.o>
Subject: [gentoo-dev] a quick and durty pureftpd 1.0.6 ebuild ...
Date: Wed, 26 Dec 2001 11:25:14
Message-Id: 1009387842.550.6.camel@djamil
1 it worked for me ...
2 a quick search / replace with vi ...
3
4 -----Forwarded Message-----
5
6 > From: root@××××××××.net
7 > Subject: No Subject
8 > Date: 26 Dec 2001 17:20:29 +0000
9 >
10 > # Copyright 1999-2000 Gentoo Technologies, Inc.
11 > # Distributed under the terms of the GNU General Public License, v2 or later
12 > # Author Parag Mehta <pm@g.o>
13 > # /space/gentoo/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.6.ebuild,v 1.1 2001/08/21 09:20:57 pm Exp
14 >
15 > A=pure-ftpd-1.0.6.tar.gz
16 > S=${WORKDIR}/${P}
17 > DESCRIPTION="A Fast Production Quality FTP Server - Bug fixes backported from 0.99 . No new feature. Use this version on production servers."
18 > SRC_URI="http://prdownloads.sourceforge.net/pureftpd/${A}"
19 > HOMEPAGE="http://pureftpd.sourceforge.net"
20 > #http://prdownloads.sourceforge.net/pureftpd/pure-ftpd-1.0.6.tar.gz
21 > DEPEND=">=sys-libs/glibc-2.1.3
22 > >=sys-libs/pam-0.75"
23 >
24 > src_compile() {
25 >
26 > cd ${S}
27 > try ./configure --prefix=/usr --with-throttling --with-virtualhosts \
28 > --with-ratios --with-largefile --with-cookie --with-welcomemsg \
29 > --with-altlog --with-ftpwho --with-uploadscript --infodir=/usr/share/info \
30 > --mandir=/usr/share/man --with-pam
31 > try make
32 >
33 > }
34 >
35 > src_install () {
36 >
37 > cd ${S}
38 > try make DESTDIR=${D} install
39 > dodoc COPYING ChangeLog README README.Configuration-File
40 > dodoc README.Contrib README.LDAP README.Netfilter
41 > dodir /etc/pure-ftpd
42 > dodir /etc/pam.d
43 > dodir /home/ftp
44 > dodir /home/ftp/pub
45 > dodir /home/ftp/incoming
46 > cp $S/pam/pure-ftpd ${D}/etc/pam.d/
47 > cp $S/configuration-file/*.pl ${D}/usr/sbin/
48 > cp $S/configuration-file/*.py ${D}/usr/sbin/
49 > cp $S/configuration-file/pure-ftpd.conf ${D}/etc/pure-ftpd/pure-ftpd.conf
50 > cp ${FILESDIR}/ftpusers ${D}/etc
51 > cp ${FILESDIR}/pure-ftpwho_html.py ${D}/usr/sbin/
52 > cp ${FILESDIR}/pure-ftp_xml_python.py ${D}/usr/sbin/
53 > cp ${FILESDIR}/welcome.msg ${D}/home/ftp/
54 > echo -e "\033[1;42m\033[1;33m Please do no forget to run, the following syntax : \033[0m"
55 > echo -e "\033[1;42m\033[1;33m ebuild pure-ftpd-1.0.6.ebuild config \033[0m"
56 > echo -e "\033[1;42m\033[1;33m This will add the necessary post install config to your system. \033[0m"
57 > dosym /dev/null /etc/pure-ftpd/127.0.0.1
58 > fowners ftp.bin /home/ftp
59 > fowners ftp.bin /home/ftp/incoming
60 > fowners root.root /home/ftp/pub
61 > fperms 757 /home/ftp/incoming
62 > fperms 700 /etc/pure-ftpd
63 > fperms 600 /etc/ftpusers
64 > fperms 644 /home/ftp/welcome.msg
65 > }
66 >
67 > pkg_config() {
68 > echo "This config script will add pftpd lines to your /etc/xinetd.conf."
69 > echo "Press control-C to abort now OR hit Enter to continue."
70 > echo
71 > read
72 > cat ${FILESDIR}/pftpd.inetd >> ${ROOT}/etc/inetd.conf
73 > /etc/rc.d/init.d/svc-xinetd restart
74 > echo "Modifications applied."
75 > }
76 >
77 >
78 >
79 >