Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/pure-ftpd: ChangeLog pure-ftpd-1.0.34.ebuild pure-ftpd-1.0.32.ebuild
Date: Wed, 02 Nov 2011 13:17:04
Message-Id: 20111102131654.7289D2004B@flycatcher.gentoo.org
1 polynomial-c 11/11/02 13:16:54
2
3 Modified: ChangeLog
4 Added: pure-ftpd-1.0.34.ebuild
5 Removed: pure-ftpd-1.0.32.ebuild
6 Log:
7 Version bump. Removed old
8
9 (Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.128 net-ftp/pure-ftpd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/ChangeLog?rev=1.128&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/ChangeLog?rev=1.128&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/ChangeLog?r1=1.127&r2=1.128
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v
21 retrieving revision 1.127
22 retrieving revision 1.128
23 diff -u -r1.127 -r1.128
24 --- ChangeLog 18 Oct 2011 17:04:00 -0000 1.127
25 +++ ChangeLog 2 Nov 2011 13:16:54 -0000 1.128
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-ftp/pure-ftpd
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.127 2011/10/18 17:04:00 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.128 2011/11/02 13:16:54 polynomial-c Exp $
31 +
32 +*pure-ftpd-1.0.34 (02 Nov 2011)
33 +
34 + 02 Nov 2011; Lars Wendler <polynomial-c@g.o> -pure-ftpd-1.0.32.ebuild,
35 + +pure-ftpd-1.0.34.ebuild:
36 + Version bump. Removed old.
37
38 18 Oct 2011; Lars Wendler <polynomial-c@g.o> files/pure-ftpd.rc11:
39 Fixed init script once again to be POSIX compliant.
40
41
42
43 1.1 net-ftp/pure-ftpd/pure-ftpd-1.0.34.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.34.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.34.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pure-ftpd-1.0.34.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.34.ebuild,v 1.1 2011/11/02 13:16:54 polynomial-c Exp $
53
54 EAPI=2
55 inherit eutils confutils flag-o-matic
56
57 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
58
59 DESCRIPTION="Fast, production-quality, standard-conformant FTP server."
60 HOMEPAGE="http://www.pureftpd.org/"
61 SRC_URI="ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2
62 http://download.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2"
63
64 LICENSE="BSD"
65 SLOT="0"
66
67 IUSE="anondel anonperm anonren anonres caps charconv ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd"
68
69 DEPEND="caps? ( sys-libs/libcap )
70 charconv? ( virtual/libiconv )
71 ldap? ( >=net-nds/openldap-2.0.25 )
72 mysql? ( virtual/mysql )
73 pam? ( virtual/pam )
74 postgres? ( dev-db/postgresql-base )
75 ssl? ( >=dev-libs/openssl-0.9.6g )
76 sysquota? ( sys-fs/quota[-rpc] )
77 xinetd? ( virtual/inetd )"
78
79 RDEPEND="${DEPEND}
80 net-ftp/ftpbase
81 selinux? ( sec-policy/selinux-ftpd )"
82
83 src_prepare() {
84 epatch "${FILESDIR}"/${PN}-1.0.28-pam.patch
85 }
86
87 src_configure() {
88 # adjust max user length to something more appropriate
89 # for virtual hosts. See bug #62472 for details.
90 sed -e "s:# define MAX_USER_LENGTH 32U:# define MAX_USER_LENGTH 127U:" -i "${S}/src/ftpd.h" || die "sed failed"
91
92 local my_conf=""
93
94 # Let's configure the USE-enabled stuff
95 enable_extension_without "capabilities" "caps"
96 enable_extension_with "rfc2640" "charconv" 0
97 enable_extension_with "ldap" "ldap" 0
98 enable_extension_with "mysql" "mysql" 0
99 enable_extension_with "pam" "pam" 0
100 enable_extension_with "paranoidmsg" "paranoidmsg" 0
101 enable_extension_with "pgsql" "postgres" 0
102 enable_extension_with "tls" "ssl" 0
103 enable_extension_with "virtualchroot" "vchroot" 0
104 enable_extension_with "sysquotas" "sysquota" 0
105 enable_extension_without "inetd" "xinetd"
106
107 # noiplog is a negative flag, we don't want that enabled by default,
108 # so we handle it manually, as confutils can't do that
109 use noiplog && my_conf="${my_conf} --without-iplogging"
110
111 # Those features are only configurable like this, see bug #179375.
112 use anondel && append-cppflags -DANON_CAN_DELETE
113 use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS
114 use anonren && append-cppflags -DANON_CAN_RENAME
115 use anonres && append-cppflags -DANON_CAN_RESUME
116 use resolveids && append-cppflags -DALWAYS_RESOLVE_IDS
117
118 econf \
119 --with-altlog \
120 --with-cookie \
121 --with-diraliases \
122 --with-extauth \
123 --with-ftpwho \
124 --with-language=${PUREFTPD_LANG:=english} \
125 --with-peruserlimits \
126 --with-privsep \
127 --with-puredb \
128 --with-quotas \
129 --with-ratios \
130 --with-throttling \
131 --with-uploadscript \
132 --with-virtualhosts \
133 --enable-largefile \
134 ${my_conf} || die "econf failed"
135 }
136
137 src_install() {
138 emake DESTDIR="${D}" install || die "emake install failed"
139
140 dodoc AUTHORS CONTACT ChangeLog FAQ HISTORY INSTALL README* NEWS
141
142 newconfd "${FILESDIR}/pure-ftpd.conf_d-3" pure-ftpd
143
144 newinitd "${FILESDIR}/pure-ftpd.rc11" pure-ftpd
145
146 dodir /var/lib/run/${PN}
147
148 if use xinetd ; then
149 insinto /etc/xinetd.d
150 newins "${FILESDIR}/pure-ftpd.xinetd" pure-ftpd
151 fi
152
153 if use ldap ; then
154 insinto /etc/openldap/schema
155 doins pureftpd.schema
156 insinto /etc/openldap
157 insopts -m 0600
158 doins pureftpd-ldap.conf
159 fi
160 }
161
162 pkg_postinst() {
163 elog
164 elog "Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file!"
165 elog
166 ewarn "It's *really* important to read the README provided with Pure-FTPd!"
167 ewarn "Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info"
168 ewarn "and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info."
169 ewarn
170 if use charconv ; then
171 ewarn "Charset conversion is an *experimental* feature!"
172 ewarn "Remember to set a valid charset for your filesystem in the configuration!"
173 fi
174 }