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