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