Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/proftpd/, net-ftp/proftpd/files/
Date: Thu, 30 Jun 2016 20:21:40
Message-Id: 1467318004.a2c956361dce86ec2c3fed71e0502d12a53b1cfd.slyfox@gentoo
1 commit: a2c956361dce86ec2c3fed71e0502d12a53b1cfd
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 30 20:20:04 2016 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 30 20:20:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2c95636
7
8 net-ftp/proftpd: drop old vulnerable versions, bug #577046
9
10 Package-Manager: portage-2.3.0
11
12 net-ftp/proftpd/Manifest | 1 -
13 .../files/proftpd-1.3.5a-unbound-sftp-p1.patch | 70 ------
14 .../files/proftpd-1.3.5a-unbound-sftp-p2.patch | 61 ------
15 net-ftp/proftpd/proftpd-1.3.5a-r2.ebuild | 240 ---------------------
16 4 files changed, 372 deletions(-)
17
18 diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
19 index 11fe9ba..008160e 100644
20 --- a/net-ftp/proftpd/Manifest
21 +++ b/net-ftp/proftpd/Manifest
22 @@ -1,7 +1,6 @@
23 DIST mod_clamav-0.11rc.tar.gz 5115 SHA256 87630eb1866066d6320ee711897d8998b8f4915c0498b2e78cc0464abd34855a SHA512 6d33ee7b1c9c8e3fb0a0014dde90cfb1d37daa0f4914f147bb800a8318bcf0e03c7c6748d84cda36c5e5c7cd11ee8114bad9978362f581f367db54d3563f4636 WHIRLPOOL b15024d1011a83a10ce52fb676f1f2162d67750dc137600b624cd04ebd498bb3c9242e4889fd7b73c18224eb483286cb543fc627b27e6a8ff4c9bf35468218b9
24 DIST mod_gss-1.3.3.tar.gz 115098 SHA256 24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e SHA512 61473f3102e2204a27d691907482a3e86108bb423be54ba47a79ef0d2a0313bcdc022529f8e620bd868453bee1b1169fce74cc454d835fdfd4be964e342bdedb WHIRLPOOL 90a15ca919326fa2b2e21fb2928e5ac39b912681bce015f3bff0b0b0c47241f41cc3c78789797ba2d8a61dafc24a9f1d18bf085808350301c228b6ed62721e80
25 DIST mod_vroot-0.9.3.tar.gz 28352 SHA256 f16c61ed7fe2d7231e1421f8f1a484f29972e0efe0e8e065ab373c388b0c073c SHA512 08a3e5df26bb4d5875b57af9e97e7e7cf27b2ad6983bfae0fac8a21f4a5be0a487cf0d9d03e9e1c08701eb3f22f2cb51a14c05fe1cba5f4085eb8a31d5142776 WHIRLPOOL be30931f117fc4f0b7de87579b483e41d86ad3ecd2999267a726664b32090cd32e6a7e748d66ddec525ee784ee2974212fd2455af313c13b67ab61625efa29d0
26 -DIST proftpd-1.3.5a.tar.gz 29988477 SHA256 a1f48df8539c414ec56e0cea63dcf4b8e16e606c05f10156f030a4a67fae5696 SHA512 d64de12c100814c5c8a3916b3c9344f5a68c2b85902ffc8e5bb088d8975b5f13a7b9a29f82085b70dc93f4599c0e0f2645977d20998dda11981e66f534ea692c WHIRLPOOL 19b361b0481d5a2eab7fbe40de7bb8c9cd320a2ac04343d2fe858fdc9a62a747f89a5d4a619808bd252f6cfd9f15353df28405eb9bdc10c7c9f0162ab093bc1e
27 DIST proftpd-1.3.5b.tar.gz 29992107 SHA256 afc1789f2478acf88dfdc7d70da90a4fa2786d628218e9574273295d044b4fc8 SHA512 5bdb9718c85c26b92256d7b3791a6a5456bec3826801b7b68f4d493d202ac77179c8378ad06efc1a805efce639db266561d3beb4bc7af61ca1352fb4bdfd4e6a WHIRLPOOL bb1a9fef464d2070c7dc1204cf2a8682e4f2719d682b0b1e541fff11f5c8a4a9a133011a607831fd30548b201531c3534248ed0eb36d0b4708e7b5b75353fc6f
28 DIST proftpd-mod-case-0.7.tar.gz 13184 SHA256 c3f65588250fea7771439933fa754927794f664e99b8d20f99b1e400fea62111 SHA512 c08d13ef82fec36ae75aa3213dd02e0ce4045904849f422e152f039a9da66a45e4423751074b8bcf8ce347a40ce0e7bde798a85cbadc962fd872aeaa898261fc WHIRLPOOL 27f49e9f34099c081add803aa679fd9abe7afa652dffe5d8e42889fef49aeaefd499e1009fc564d6c8f882b3c6dc31d4c6dd08cc06a42b770e7ef76a2ebfcf8a
29 DIST proftpd-mod-diskuse-0.9.tar.gz 18596 SHA256 424f3fd49237245ec176d27ade0965fe21a0db1d645979d5ae3e55497e3da036 SHA512 d41976bf2810e4b783e775e8c767ca2030c3b5df116219fd31cbbac7feaf9922c315bf4ea092881b0d6cf43f2f4c5dbcae61be3c3a833058d12f962a3024b975 WHIRLPOOL aabd1dc23d6c38d308e859ff778beffd0dabfe70d3530c093cf2f95e80b5e9c94b97b6b5ae5109d031f76ff94dffc3822a7aa60fa30df04523d37ebed99730d6
30
31 diff --git a/net-ftp/proftpd/files/proftpd-1.3.5a-unbound-sftp-p1.patch b/net-ftp/proftpd/files/proftpd-1.3.5a-unbound-sftp-p1.patch
32 deleted file mode 100644
33 index 03dd1d8..0000000
34 --- a/net-ftp/proftpd/files/proftpd-1.3.5a-unbound-sftp-p1.patch
35 +++ /dev/null
36 @@ -1,70 +0,0 @@
37 -commit a24db7f9864240a4ebb236a6615ec649138fef0e
38 -Author: TJ Saunders <tj@×××××××××.org>
39 -Date: Sat Nov 28 17:08:03 2015 -0800
40 -
41 - Bug#4210 - Avoid unbounded SFTP extension key/values.
42 -
43 -diff --git a/contrib/mod_sftp/fxp.c b/contrib/mod_sftp/fxp.c
44 -index 5d9ae17..03c7eb5 100644
45 ---- a/contrib/mod_sftp/fxp.c
46 -+++ b/contrib/mod_sftp/fxp.c
47 -@@ -241,6 +241,9 @@ struct fxp_extpair {
48 - unsigned char *ext_data;
49 - };
50 -
51 -+/* Maximum length of SFTP extension name, AND of the extension value. */
52 -+#define SFTP_EXT_MAX_LEN 1024
53 -+
54 - static pool *fxp_pool = NULL;
55 - static int fxp_use_gmt = TRUE;
56 -
57 -@@ -1240,6 +1243,14 @@ static struct fxp_extpair *fxp_msg_read_extpair(pool *p, unsigned char **buf,
58 - SFTP_DISCONNECT_CONN(SFTP_SSH2_DISCONNECT_BY_APPLICATION, NULL);
59 - }
60 -
61 -+ if (namelen > SFTP_EXT_MAX_LEN) {
62 -+ (void) pr_log_writefile(sftp_logfd, MOD_SFTP_VERSION,
63 -+ "received too-long SFTP extension name (%lu > max %lu), ignoring",
64 -+ (unsigned long) namelen, (unsigned long) SFTP_EXT_MAX_LEN);
65 -+ errno = EINVAL;
66 -+ return NULL;
67 -+ }
68 -+
69 - name = palloc(p, namelen + 1);
70 - memcpy(name, *buf, namelen);
71 - (*buf) += namelen;
72 -@@ -1248,6 +1259,14 @@ static struct fxp_extpair *fxp_msg_read_extpair(pool *p, unsigned char **buf,
73 -
74 - datalen = sftp_msg_read_int(p, buf, buflen);
75 - if (datalen > 0) {
76 -+ if (datalen > SFTP_EXT_MAX_LEN) {
77 -+ (void) pr_log_writefile(sftp_logfd, MOD_SFTP_VERSION,
78 -+ "received too-long SFTP extension '%s' data (%lu > max %lu), ignoring",
79 -+ name, (unsigned long) datalen, (unsigned long) SFTP_EXT_MAX_LEN);
80 -+ errno = EINVAL;
81 -+ return NULL;
82 -+ }
83 -+
84 - data = sftp_msg_read_data(p, buf, buflen, datalen);
85 -
86 - } else {
87 -@@ -2210,11 +2229,13 @@ static struct stat *fxp_attrs_read(struct fxp_packet *fxp, unsigned char **buf,
88 - struct fxp_extpair *ext;
89 -
90 - ext = fxp_msg_read_extpair(fxp->pool, buf, buflen);
91 -- pr_trace_msg(trace_channel, 15,
92 -- "protocol version %lu: read EXTENDED attribute: "
93 -- "extension '%s' (%lu bytes of data)",
94 -- (unsigned long) fxp_session->client_version, ext->ext_name,
95 -- (unsigned long) ext->ext_datalen);
96 -+ if (ext != NULL) {
97 -+ pr_trace_msg(trace_channel, 15,
98 -+ "protocol version %lu: read EXTENDED attribute: "
99 -+ "extension '%s' (%lu bytes of data)",
100 -+ (unsigned long) fxp_session->client_version, ext->ext_name,
101 -+ (unsigned long) ext->ext_datalen);
102 -+ }
103 - }
104 - }
105 -
106 -
107
108 diff --git a/net-ftp/proftpd/files/proftpd-1.3.5a-unbound-sftp-p2.patch b/net-ftp/proftpd/files/proftpd-1.3.5a-unbound-sftp-p2.patch
109 deleted file mode 100644
110 index c7d0a02..0000000
111 --- a/net-ftp/proftpd/files/proftpd-1.3.5a-unbound-sftp-p2.patch
112 +++ /dev/null
113 @@ -1,61 +0,0 @@
114 -commit f30ac3cc1a58ec7522de6aeeaa09314a45dbc690
115 -Author: TJ Saunders <tj@×××××××××.org>
116 -Date: Sat Nov 28 17:13:55 2015 -0800
117 -
118 - Correct the parameters to talk of "extended attributes", not SFTP extensions.
119 -
120 -diff --git a/contrib/mod_sftp/fxp.c b/contrib/mod_sftp/fxp.c
121 -index 03c7eb5..e7161d5 100644
122 ---- a/contrib/mod_sftp/fxp.c
123 -+++ b/contrib/mod_sftp/fxp.c
124 -@@ -235,15 +235,18 @@ static size_t fxp_packet_data_allocsz = 0;
125 - #define FXP_PACKET_DATA_DEFAULT_SZ (1024 * 16)
126 - #define FXP_RESPONSE_DATA_DEFAULT_SZ 512
127 -
128 -+#define FXP_MAX_PACKET_LEN (1024 * 512)
129 -+#define FXP_MAX_EXTENDED_ATTRIBUTES 100
130 -+
131 -+/* Maximum length of SFTP extended attribute name OR value. */
132 -+#define FXP_MAX_EXTENDED_ATTR_LEN 1024
133 -+
134 - struct fxp_extpair {
135 - char *ext_name;
136 - uint32_t ext_datalen;
137 - unsigned char *ext_data;
138 - };
139 -
140 --/* Maximum length of SFTP extension name, AND of the extension value. */
141 --#define SFTP_EXT_MAX_LEN 1024
142 --
143 - static pool *fxp_pool = NULL;
144 - static int fxp_use_gmt = TRUE;
145 -
146 -@@ -1243,10 +1246,10 @@ static struct fxp_extpair *fxp_msg_read_extpair(pool *p, unsigned char **buf,
147 - SFTP_DISCONNECT_CONN(SFTP_SSH2_DISCONNECT_BY_APPLICATION, NULL);
148 - }
149 -
150 -- if (namelen > SFTP_EXT_MAX_LEN) {
151 -+ if (namelen > FXP_MAX_EXTENDED_ATTR_LEN) {
152 - (void) pr_log_writefile(sftp_logfd, MOD_SFTP_VERSION,
153 -- "received too-long SFTP extension name (%lu > max %lu), ignoring",
154 -- (unsigned long) namelen, (unsigned long) SFTP_EXT_MAX_LEN);
155 -+ "received too-long extended attribute name (%lu > max %lu), ignoring",
156 -+ (unsigned long) namelen, (unsigned long) FXP_MAX_EXTENDED_ATTR_LEN);
157 - errno = EINVAL;
158 - return NULL;
159 - }
160 -@@ -1259,10 +1262,11 @@ static struct fxp_extpair *fxp_msg_read_extpair(pool *p, unsigned char **buf,
161 -
162 - datalen = sftp_msg_read_int(p, buf, buflen);
163 - if (datalen > 0) {
164 -- if (datalen > SFTP_EXT_MAX_LEN) {
165 -+ if (datalen > FXP_MAX_EXTENDED_ATTR_LEN) {
166 - (void) pr_log_writefile(sftp_logfd, MOD_SFTP_VERSION,
167 -- "received too-long SFTP extension '%s' data (%lu > max %lu), ignoring",
168 -- name, (unsigned long) datalen, (unsigned long) SFTP_EXT_MAX_LEN);
169 -+ "received too-long extended attribute '%s' value (%lu > max %lu), "
170 -+ "ignoring", name, (unsigned long) datalen,
171 -+ (unsigned long) FXP_MAX_EXTENDED_ATTR_LEN);
172 - errno = EINVAL;
173 - return NULL;
174 - }
175
176 diff --git a/net-ftp/proftpd/proftpd-1.3.5a-r2.ebuild b/net-ftp/proftpd/proftpd-1.3.5a-r2.ebuild
177 deleted file mode 100644
178 index beab3f9..0000000
179 --- a/net-ftp/proftpd/proftpd-1.3.5a-r2.ebuild
180 +++ /dev/null
181 @@ -1,240 +0,0 @@
182 -# Copyright 1999-2015 Gentoo Foundation
183 -# Distributed under the terms of the GNU General Public License v2
184 -# $Id$
185 -
186 -EAPI=5
187 -inherit eutils multilib systemd
188 -
189 -MOD_CASE="0.7"
190 -MOD_CLAMAV="0.11rc"
191 -MOD_DISKUSE="0.9"
192 -MOD_GSS="1.3.3"
193 -MOD_MSG="0.4.1"
194 -MOD_VROOT="0.9.3"
195 -
196 -DESCRIPTION="An advanced and very configurable FTP server"
197 -HOMEPAGE="http://www.proftpd.org/
198 - http://www.castaglia.org/proftpd/
199 - http://www.thrallingpenguin.com/resources/mod_clamav.htm
200 - http://gssmod.sourceforge.net/"
201 -SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.gz
202 - case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${MOD_CASE}.tar.gz )
203 - clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${MOD_CLAMAV}.tar.gz )
204 - diskuse? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-diskuse-${MOD_DISKUSE}.tar.gz )
205 - kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MOD_GSS}.tar.gz )
206 - msg? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-msg-${MOD_MSG}.tar.gz )
207 - vroot? ( https://github.com/Castaglia/${PN}-mod_vroot/archive/mod_vroot-${MOD_VROOT}.tar.gz )"
208 -LICENSE="GPL-2"
209 -
210 -SLOT="0"
211 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
212 -IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse doc dso dynmasq exec ifsession ifversion ident ipv6
213 - kerberos ldap libressl linguas_bg_BG linguas_en_US linguas_fr_FR linguas_it_IT linguas_ja_JP linguas_ko_KR
214 - linguas_ru_RU linguas_zh_CN linguas_zh_TW log_forensic memcache msg mysql ncurses nls pam +pcre postgres qos radius
215 - ratio readme rewrite selinux sftp shaper sitemisc snmp softquota sqlite ssl tcpd test trace unique_id vroot xinetd"
216 -# TODO: geoip
217 -REQUIRED_USE="ban? ( ctrls )
218 - msg? ( ctrls )
219 - sftp? ( ssl )
220 - shaper? ( ctrls )"
221 -
222 -CDEPEND="acl? ( virtual/acl )
223 - caps? ( sys-libs/libcap )
224 - clamav? ( app-antivirus/clamav )
225 - kerberos? ( virtual/krb5 )
226 - ldap? ( net-nds/openldap )
227 - memcache? ( >=dev-libs/libmemcached-0.41 )
228 - mysql? ( virtual/mysql )
229 - nls? ( virtual/libiconv )
230 - ncurses? ( sys-libs/ncurses:0= )
231 - ssl? (
232 - !libressl? ( dev-libs/openssl:0= )
233 - libressl? ( dev-libs/libressl:= )
234 - )
235 - pam? ( virtual/pam )
236 - pcre? ( dev-libs/libpcre )
237 - postgres? ( dev-db/postgresql:= )
238 - sqlite? ( dev-db/sqlite:3 )
239 - xinetd? ( virtual/inetd )"
240 -DEPEND="${CDEPEND}
241 - test? ( dev-libs/check )"
242 -RDEPEND="${CDEPEND}
243 - net-ftp/ftpbase
244 - selinux? ( sec-policy/selinux-ftp )"
245 -
246 -S="${WORKDIR}/${P/_/}"
247 -
248 -__prepare_module() {
249 - local mod_name=$1
250 - local mod_topdir=${WORKDIR}/${2:-${mod_name}}
251 -
252 - mv "${mod_topdir}/${mod_name}.c" contrib || die
253 - mv "${mod_topdir}/${mod_name}.html" doc/contrib || die
254 - rm -r "${mod_topdir}" || die
255 -}
256 -
257 -src_prepare() {
258 - epatch -p1 "${FILESDIR}"/${P}-unbound-sftp-{p1,p2}.patch
259 -
260 - # Skip 'install-conf' / Support LINGUAS
261 - sed -i -e "/install-all/s/ install-conf//" Makefile.in
262 - sed -i -e "s/^LANGS=.*$/LANGS=${LINGUAS}/" locale/Makefile.in
263 -
264 - # Prepare external modules
265 - use case && __prepare_module mod_case
266 - if use clamav ; then
267 - mv "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/mod_clamav.{c,h} contrib
268 - epatch "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/${PN}.patch
269 - rm -r "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}
270 - fi
271 - use msg && __prepare_module mod_msg
272 - use vroot && __prepare_module mod_vroot ${PN}-mod_vroot-mod_vroot-${MOD_VROOT}
273 -
274 - # Prepare external kerberos module
275 - if use kerberos ; then
276 - cd "${WORKDIR}"/mod_gss-${MOD_GSS}
277 -
278 - # Support app-crypt/heimdal / Gentoo Bug #284853
279 - sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in
280 -
281 - # Remove obsolete DES / Gentoo Bug #324903
282 - # Replace 'rpm' lookups / Gentoo Bug #391021
283 - sed -i -e "/ac_gss_libs/s/ -ldes425//" \
284 - -e "s/ac_libdir=\`rpm -q -l.*$/ac_libdir=\/usr\/$(get_libdir)\//" \
285 - -e "s/ac_includedir=\`rpm -q -l.*$/ac_includedir=\/usr\/include\//" configure{,.in}
286 - fi
287 -}
288 -
289 -src_configure() {
290 - local c m
291 -
292 - use acl && m="${m}:mod_facl"
293 - use ban && m="${m}:mod_ban"
294 - use case && m="${m}:mod_case"
295 - use clamav && m="${m}:mod_clamav"
296 - use copy && m="${m}:mod_copy"
297 - use ctrls && m="${m}:mod_ctrls_admin"
298 - use deflate && m="${m}:mod_deflate"
299 - if use diskuse ; then
300 - cd "${WORKDIR}"/mod_diskuse
301 - econf
302 - mv mod_diskuse.{c,h} "${S}"/contrib
303 - mv mod_diskuse.html "${S}"/doc/contrib
304 - cd "${S}"
305 - rm -r "${WORKDIR}"/mod_diskuse
306 - m="${m}:mod_diskuse"
307 - fi
308 - use dynmasq && m="${m}:mod_dynmasq"
309 - use exec && m="${m}:mod_exec"
310 - use ifsession && m="${m}:mod_ifsession"
311 - use ifversion && m="${m}:mod_ifversion"
312 - if use kerberos ; then
313 - cd "${WORKDIR}"/mod_gss-${MOD_GSS}
314 - if has_version app-crypt/mit-krb5 ; then
315 - econf --enable-mit
316 - else
317 - econf --enable-heimdal
318 - fi
319 - mv mod_{auth_gss,gss}.c "${S}"/contrib
320 - mv mod_gss.h "${S}"/include
321 - mv README.mod_{auth_gss,gss} "${S}"
322 - mv mod_gss.html "${S}"/doc/contrib
323 - mv rfc{1509,2228}.txt "${S}"/doc/rfc
324 - cd "${S}"
325 - rm -r "${WORKDIR}"/mod_gss-${MOD_GSS}
326 - m="${m}:mod_gss:mod_auth_gss"
327 - fi
328 - use ldap && m="${m}:mod_ldap"
329 - use log_forensic && m="${m}:mod_log_forensic"
330 - use msg && m="${m}:mod_msg"
331 - if use mysql || use postgres || use sqlite ; then
332 - m="${m}:mod_sql:mod_sql_passwd"
333 - use mysql && m="${m}:mod_sql_mysql"
334 - use postgres && m="${m}:mod_sql_postgres"
335 - use sqlite && m="${m}:mod_sql_sqlite"
336 - fi
337 - use qos && m="${m}:mod_qos"
338 - use radius && m="${m}:mod_radius"
339 - use ratio && m="${m}:mod_ratio"
340 - use readme && m="${m}:mod_readme"
341 - use rewrite && m="${m}:mod_rewrite"
342 - if use sftp ; then
343 - m="${m}:mod_sftp"
344 - use pam && m="${m}:mod_sftp_pam"
345 - use mysql || use postgres || use sqlite && m="${m}:mod_sftp_sql"
346 - fi
347 - use shaper && m="${m}:mod_shaper"
348 - use sitemisc && m="${m}:mod_site_misc"
349 - use snmp && m="${m}:mod_snmp"
350 - if use softquota ; then
351 - m="${m}:mod_quotatab:mod_quotatab_file"
352 - use ldap && m="${m}:mod_quotatab_ldap"
353 - use radius && m="${m}:mod_quotatab_radius"
354 - use mysql || use postgres || use sqlite && m="${m}:mod_quotatab_sql"
355 - fi
356 - if use ssl ; then
357 - m="${m}:mod_tls:mod_tls_shmcache"
358 - use memcache && m="${m}:mod_tls_memcache"
359 - fi
360 - if use tcpd ; then
361 - m="${m}:mod_wrap2:mod_wrap2_file"
362 - use mysql || use postgres || use sqlite && m="${m}:mod_wrap2_sql"
363 - fi
364 - use unique_id && m="${m}:mod_unique_id"
365 - use vroot && m="${m}:mod_vroot"
366 -
367 - if [[ -n ${PROFTP_CUSTOM_MODULES} ]]; then
368 - einfo "Adding user-specified extra modules: '${PROFTP_CUSTOM_MODULES}'"
369 - m="${m}:${PROFTP_CUSTOM_MODULES}"
370 - fi
371 -
372 - [[ -z ${m} ]] || c="${c} --with-modules=${m:1}"
373 - econf --localstatedir=/var/run/proftpd --sysconfdir=/etc/proftpd --disable-strip \
374 - $(use_enable acl facl) \
375 - $(use_enable authfile auth-file) \
376 - $(use_enable caps cap) \
377 - $(use_enable ctrls) \
378 - $(use_enable dso) \
379 - $(use_enable ident) \
380 - $(use_enable ipv6) \
381 - $(use_enable memcache) \
382 - $(use_enable ncurses) \
383 - $(use_enable nls) \
384 - $(use_enable ssl openssl) \
385 - $(use_enable pam auth-pam) \
386 - $(use_enable pcre) \
387 - $(use_enable test tests) \
388 - $(use_enable trace) \
389 - $(use_enable userland_GNU shadow) \
390 - $(use_enable userland_GNU autoshadow) \
391 - ${c:1}
392 -}
393 -
394 -src_test() {
395 - emake api-tests -C tests
396 -}
397 -
398 -src_install() {
399 - default
400 - [[ -z ${LINGUAS} ]] && rm -r "${ED}"/usr/share/locale
401 - rm -rf "${ED}"/var/run
402 -
403 - newinitd "${FILESDIR}"/proftpd.initd proftpd
404 - insinto /etc/proftpd
405 - doins "${FILESDIR}"/proftpd.conf.sample
406 -
407 - if use xinetd ; then
408 - insinto /etc/xinetd.d
409 - newins "${FILESDIR}"/proftpd.xinetd proftpd
410 - fi
411 -
412 - dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES
413 - if use doc ; then
414 - dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html
415 - docinto rfc
416 - dodoc doc/rfc/*.txt
417 - fi
418 -
419 - systemd_dounit "${FILESDIR}"/${PN}.service
420 - systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d.conf ${PN}.conf
421 -}