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/
Date: Thu, 15 Aug 2019 18:44:24
Message-Id: 1565894650.f3a7f7abcd42b96eb6ffeccdf180049f1e4e0a6f.slyfox@gentoo
1 commit: f3a7f7abcd42b96eb6ffeccdf180049f1e4e0a6f
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 15 18:43:24 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 15 18:44:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3a7f7ab
7
8 net-ftp/proftpd: drop old
9
10 Bug: https://bugs.gentoo.org/690528
11 Package-Manager: Portage-2.3.71, Repoman-2.3.17
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 net-ftp/proftpd/proftpd-1.3.6-r3.ebuild | 272 -------------------------------
15 net-ftp/proftpd/proftpd-1.3.6-r4.ebuild | 274 --------------------------------
16 2 files changed, 546 deletions(-)
17
18 diff --git a/net-ftp/proftpd/proftpd-1.3.6-r3.ebuild b/net-ftp/proftpd/proftpd-1.3.6-r3.ebuild
19 deleted file mode 100644
20 index c5b9e539a75..00000000000
21 --- a/net-ftp/proftpd/proftpd-1.3.6-r3.ebuild
22 +++ /dev/null
23 @@ -1,272 +0,0 @@
24 -# Copyright 1999-2019 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=6
28 -inherit multilib systemd tmpfiles
29 -
30 -MOD_CASE="0.7"
31 -MOD_CLAMAV="0.11rc"
32 -MOD_DISKUSE="0.9"
33 -MOD_GSS="1.3.6"
34 -MOD_MSG="0.4.1"
35 -MOD_VROOT="0.9.4"
36 -
37 -DESCRIPTION="An advanced and very configurable FTP server"
38 -HOMEPAGE="http://www.proftpd.org/
39 - http://www.castaglia.org/proftpd/
40 - http://www.thrallingpenguin.com/resources/mod_clamav.htm
41 - http://gssmod.sourceforge.net/"
42 -SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.gz
43 - case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${MOD_CASE}.tar.gz )
44 - clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${MOD_CLAMAV}.tar.gz )
45 - diskuse? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-diskuse-${MOD_DISKUSE}.tar.gz )
46 - kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MOD_GSS}.tar.gz )
47 - msg? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-msg-${MOD_MSG}.tar.gz )
48 - vroot? ( https://github.com/Castaglia/${PN}-mod_vroot/archive/v${MOD_VROOT}.tar.gz -> mod_vroot-${MOD_VROOT}.tar.gz )"
49 -LICENSE="GPL-2"
50 -
51 -SLOT="0"
52 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
53 -IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse doc dso dynmasq exec ifsession ifversion ident ipv6
54 - kerberos ldap libressl log_forensic memcache msg mysql ncurses nls pam +pcre postgres qos radius
55 - ratio readme rewrite selinux sftp shaper sitemisc snmp sodium softquota sqlite ssl tcpd test unique_id vroot xinetd"
56 -# TODO: geoip
57 -REQUIRED_USE="ban? ( ctrls )
58 - msg? ( ctrls )
59 - sftp? ( ssl )
60 - shaper? ( ctrls )
61 -
62 - mysql? ( ssl )
63 - postgres? ( ssl )
64 - sqlite? ( ssl )
65 -"
66 -
67 -CDEPEND="acl? ( virtual/acl )
68 - caps? ( sys-libs/libcap )
69 - clamav? ( app-antivirus/clamav )
70 - kerberos? ( virtual/krb5 )
71 - ldap? ( net-nds/openldap )
72 - memcache? ( >=dev-libs/libmemcached-0.41 )
73 - mysql? ( dev-db/mysql-connector-c:0= )
74 - nls? ( virtual/libiconv )
75 - ncurses? ( sys-libs/ncurses:0= )
76 - ssl? (
77 - !libressl? ( dev-libs/openssl:0= )
78 - libressl? ( dev-libs/libressl:= )
79 - )
80 - pam? ( virtual/pam )
81 - pcre? ( dev-libs/libpcre )
82 - postgres? ( dev-db/postgresql:= )
83 - sodium? ( dev-libs/libsodium:0= )
84 - sqlite? ( dev-db/sqlite:3 )
85 - xinetd? ( virtual/inetd )"
86 -DEPEND="${CDEPEND}
87 - test? ( dev-libs/check )"
88 -RDEPEND="${CDEPEND}
89 - net-ftp/ftpbase
90 - selinux? ( sec-policy/selinux-ftp )"
91 -
92 -S="${WORKDIR}/${P/_/}"
93 -
94 -PATCHES=(
95 - "${FILESDIR}"/${PN}-1.3.6-use-trace.patch
96 - "${FILESDIR}"/${PN}-1.3.6-sighup-crash.patch
97 -)
98 -
99 -RESTRICT=test # tests corrupt memory. need to be fixed upstream first
100 -
101 -in_dir() {
102 - pushd "${WORKDIR}/${1}" || die
103 - shift
104 - "$@"
105 - popd
106 -}
107 -
108 -src_prepare() {
109 - # Skip 'install-conf' / Support LINGUAS
110 - sed -i -e "/install-all/s/ install-conf//" Makefile.in || die
111 - sed -i -e "s/^LANGS=.*$/LANGS=${LINGUAS}/" locale/Makefile.in || die
112 -
113 - # Prepare external modules
114 - if use case; then
115 - cp -v "${WORKDIR}"/mod_case/mod_case.c contrib || die
116 - cp -v "${WORKDIR}"/mod_case/mod_case.html doc/contrib || die
117 - fi
118 -
119 - if use clamav ; then
120 - cp -v "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/mod_clamav.{c,h} contrib || die
121 - eapply "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/${PN}.patch
122 - fi
123 -
124 - if use diskuse; then
125 - in_dir mod_diskuse eapply "${FILESDIR}"/${PN}-1.3.6_rc4-diskuse-refresh-api.patch
126 -
127 - # ./configure will modify files. Symlink them instead of copying
128 - ln -sv "${WORKDIR}"/mod_diskuse/mod_diskuse.h "${S}"/contrib || die
129 -
130 - cp -v "${WORKDIR}"/mod_diskuse/mod_diskuse.c "${S}"/contrib || die
131 - cp -v "${WORKDIR}"/mod_diskuse/mod_diskuse.html "${S}"/doc/contrib || die
132 - fi
133 -
134 - if use msg; then
135 - in_dir mod_msg eapply "${FILESDIR}"/${PN}-1.3.6_rc4-msg-refresh-api.patch
136 -
137 - cp -v "${WORKDIR}"/mod_msg/mod_msg.c contrib || die
138 - cp -v "${WORKDIR}"/mod_msg/mod_msg.html doc/contrib || die
139 - fi
140 -
141 - if use vroot; then
142 - in_dir ${PN}-mod_vroot-${MOD_VROOT} eapply "${FILESDIR}"/${PN}-1.3.6_rc4-vroot-refresh-api.patch
143 -
144 - cp -v "${WORKDIR}"/${PN}-mod_vroot-${MOD_VROOT}/mod_vroot.c contrib || die
145 - cp -v "${WORKDIR}"/${PN}-mod_vroot-${MOD_VROOT}/mod_vroot.html doc/contrib || die
146 - fi
147 -
148 - if use kerberos ; then
149 - in_dir mod_gss-${MOD_GSS} eapply "${FILESDIR}"/${PN}-1.3.6_rc4-gss-refresh-api.patch
150 -
151 - # Support app-crypt/heimdal / Gentoo Bug #284853
152 - sed -i -e "s/krb5_principal2principalname/_\0/" "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_auth_gss.c.in || die
153 -
154 - # Remove obsolete DES / Gentoo Bug #324903
155 - # Replace 'rpm' lookups / Gentoo Bug #391021
156 - sed -i -e "/ac_gss_libs/s/ -ldes425//" \
157 - -e "s/ac_libdir=\`rpm -q -l.*$/ac_libdir=\/usr\/$(get_libdir)\//" \
158 - -e "s/ac_includedir=\`rpm -q -l.*$/ac_includedir=\/usr\/include\//" "${WORKDIR}"/mod_gss-${MOD_GSS}/configure{,.in} || die
159 -
160 - # ./configure will modify files. Symlink them instead of copying
161 - ln -sv "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_auth_gss.c "${S}"/contrib || die
162 - ln -sv "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_gss.c "${S}"/contrib || die
163 - ln -sv "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_gss.h "${S}"/include || die
164 -
165 - cp -v "${WORKDIR}"/mod_gss-${MOD_GSS}/README.mod_{auth_gss,gss} "${S}" || die
166 - cp -v "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_gss.html "${S}"/doc/contrib || die
167 - cp -v "${WORKDIR}"/mod_gss-${MOD_GSS}/rfc{1509,2228}.txt "${S}"/doc/rfc || die
168 - fi
169 -
170 - default
171 -}
172 -
173 -src_configure() {
174 - local c m
175 -
176 - use acl && m="${m}:mod_facl"
177 - use ban && m="${m}:mod_ban"
178 - use case && m="${m}:mod_case"
179 - use clamav && m="${m}:mod_clamav"
180 - use copy && m="${m}:mod_copy"
181 - use ctrls && m="${m}:mod_ctrls_admin"
182 - use deflate && m="${m}:mod_deflate"
183 - if use diskuse ; then
184 - in_dir mod_diskuse econf
185 - m="${m}:mod_diskuse"
186 - fi
187 - use dynmasq && m="${m}:mod_dynmasq"
188 - use exec && m="${m}:mod_exec"
189 - use ifsession && m="${m}:mod_ifsession"
190 - use ifversion && m="${m}:mod_ifversion"
191 - if use kerberos ; then
192 - in_dir mod_gss-${MOD_GSS} econf
193 - m="${m}:mod_gss:mod_auth_gss"
194 - fi
195 - use ldap && m="${m}:mod_ldap"
196 - use log_forensic && m="${m}:mod_log_forensic"
197 - use msg && m="${m}:mod_msg"
198 - if use mysql || use postgres || use sqlite ; then
199 - m="${m}:mod_sql:mod_sql_passwd"
200 - use mysql && m="${m}:mod_sql_mysql"
201 - use postgres && m="${m}:mod_sql_postgres"
202 - use sqlite && m="${m}:mod_sql_sqlite"
203 - fi
204 - use qos && m="${m}:mod_qos"
205 - use radius && m="${m}:mod_radius"
206 - use ratio && m="${m}:mod_ratio"
207 - use readme && m="${m}:mod_readme"
208 - use rewrite && m="${m}:mod_rewrite"
209 - if use sftp ; then
210 - m="${m}:mod_sftp"
211 - use pam && m="${m}:mod_sftp_pam"
212 - use mysql || use postgres || use sqlite && m="${m}:mod_sftp_sql"
213 - fi
214 - use shaper && m="${m}:mod_shaper"
215 - use sitemisc && m="${m}:mod_site_misc"
216 - use snmp && m="${m}:mod_snmp"
217 - if use softquota ; then
218 - m="${m}:mod_quotatab:mod_quotatab_file"
219 - use ldap && m="${m}:mod_quotatab_ldap"
220 - use radius && m="${m}:mod_quotatab_radius"
221 - use mysql || use postgres || use sqlite && m="${m}:mod_quotatab_sql"
222 - fi
223 - if use ssl ; then
224 - m="${m}:mod_tls:mod_tls_shmcache"
225 - use memcache && m="${m}:mod_tls_memcache"
226 - fi
227 - if use tcpd ; then
228 - m="${m}:mod_wrap2:mod_wrap2_file"
229 - use mysql || use postgres || use sqlite && m="${m}:mod_wrap2_sql"
230 - fi
231 - use unique_id && m="${m}:mod_unique_id"
232 - use vroot && m="${m}:mod_vroot"
233 -
234 - if [[ -n ${PROFTP_CUSTOM_MODULES} ]]; then
235 - einfo "Adding user-specified extra modules: '${PROFTP_CUSTOM_MODULES}'"
236 - m="${m}:${PROFTP_CUSTOM_MODULES}"
237 - fi
238 -
239 - [[ -z ${m} ]] || c="${c} --with-modules=${m:1}"
240 -
241 - econf --localstatedir=/var/run/proftpd --sysconfdir=/etc/proftpd --disable-strip \
242 - $(use_enable acl facl) \
243 - $(use_enable authfile auth-file) \
244 - $(use_enable caps cap) \
245 - $(use_enable ctrls) \
246 - $(use_enable dso) \
247 - $(use_enable ident) \
248 - $(use_enable ipv6) \
249 - $(use_enable memcache) \
250 - $(use_enable ncurses) \
251 - $(use_enable nls) \
252 - $(use_enable ssl openssl) \
253 - $(use_enable pam auth-pam) \
254 - $(use_enable pcre) \
255 - $(use_enable sodium) \
256 - $(use_enable test tests) \
257 - --enable-trace \
258 - $(use_enable userland_GNU shadow) \
259 - $(use_enable userland_GNU autoshadow) \
260 - ${c:1}
261 -}
262 -
263 -src_test() {
264 - emake api-tests -C tests
265 -}
266 -
267 -src_install() {
268 - default
269 - [[ -z ${LINGUAS-set} ]] && rm -r "${ED}"/usr/share/locale
270 - rm -rf "${ED}"/var/run
271 -
272 - newinitd "${FILESDIR}"/proftpd.initd proftpd
273 - insinto /etc/proftpd
274 - doins "${FILESDIR}"/proftpd.conf.sample
275 -
276 - if use xinetd ; then
277 - insinto /etc/xinetd.d
278 - newins "${FILESDIR}"/proftpd.xinetd proftpd
279 - fi
280 -
281 - dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES
282 - if use doc ; then
283 - dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html
284 - docinto rfc
285 - dodoc doc/rfc/*.txt
286 - fi
287 -
288 - systemd_dounit "${FILESDIR}"/${PN}.service
289 - systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d.conf ${PN}.conf
290 -}
291 -
292 -pkg_postinst() {
293 - # Create /var/run files at package merge time: bug #650000
294 - tmpfiles_process ${PN}.conf
295 -}
296
297 diff --git a/net-ftp/proftpd/proftpd-1.3.6-r4.ebuild b/net-ftp/proftpd/proftpd-1.3.6-r4.ebuild
298 deleted file mode 100644
299 index 489e76d5026..00000000000
300 --- a/net-ftp/proftpd/proftpd-1.3.6-r4.ebuild
301 +++ /dev/null
302 @@ -1,274 +0,0 @@
303 -# Copyright 1999-2019 Gentoo Authors
304 -# Distributed under the terms of the GNU General Public License v2
305 -
306 -EAPI=7
307 -inherit multilib systemd tmpfiles
308 -
309 -MOD_CASE="0.7"
310 -MOD_CLAMAV="0.11rc"
311 -MOD_DISKUSE="0.9"
312 -MOD_GSS="1.3.6"
313 -MOD_MSG="0.4.1"
314 -MOD_VROOT="0.9.4"
315 -
316 -DESCRIPTION="An advanced and very configurable FTP server"
317 -HOMEPAGE="http://www.proftpd.org/
318 - http://www.castaglia.org/proftpd/
319 - http://www.thrallingpenguin.com/resources/mod_clamav.htm
320 - http://gssmod.sourceforge.net/"
321 -SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.gz
322 - case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${MOD_CASE}.tar.gz )
323 - clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${MOD_CLAMAV}.tar.gz )
324 - diskuse? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-diskuse-${MOD_DISKUSE}.tar.gz )
325 - kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MOD_GSS}.tar.gz )
326 - msg? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-msg-${MOD_MSG}.tar.gz )
327 - vroot? ( https://github.com/Castaglia/${PN}-mod_vroot/archive/v${MOD_VROOT}.tar.gz -> mod_vroot-${MOD_VROOT}.tar.gz )"
328 -LICENSE="GPL-2"
329 -
330 -SLOT="0"
331 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
332 -IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse dso dynmasq exec ifsession ifversion ident ipv6
333 - kerberos ldap libressl log_forensic memcache msg mysql ncurses nls pam +pcre postgres qos radius
334 - ratio readme rewrite selinux sftp shaper sitemisc snmp sodium softquota sqlite ssl tcpd test unique_id vroot"
335 -# TODO: geoip
336 -REQUIRED_USE="ban? ( ctrls )
337 - msg? ( ctrls )
338 - sftp? ( ssl )
339 - shaper? ( ctrls )
340 -
341 - mysql? ( ssl )
342 - postgres? ( ssl )
343 - sqlite? ( ssl )
344 -"
345 -
346 -CDEPEND="acl? ( virtual/acl )
347 - caps? ( sys-libs/libcap )
348 - clamav? ( app-antivirus/clamav )
349 - kerberos? ( virtual/krb5 )
350 - ldap? ( net-nds/openldap )
351 - memcache? ( >=dev-libs/libmemcached-0.41 )
352 - mysql? ( dev-db/mysql-connector-c:0= )
353 - nls? ( virtual/libiconv )
354 - ncurses? ( sys-libs/ncurses:0= )
355 - ssl? (
356 - !libressl? ( dev-libs/openssl:0= )
357 - libressl? ( dev-libs/libressl:= )
358 - )
359 - pam? ( virtual/pam )
360 - pcre? ( dev-libs/libpcre )
361 - postgres? ( dev-db/postgresql:= )
362 - sodium? ( dev-libs/libsodium:0= )
363 - sqlite? ( dev-db/sqlite:3 )
364 -"
365 -DEPEND="${CDEPEND}
366 - test? ( dev-libs/check )"
367 -RDEPEND="${CDEPEND}
368 - net-ftp/ftpbase
369 - selinux? ( sec-policy/selinux-ftp )"
370 -
371 -S="${WORKDIR}/${P/_/}"
372 -
373 -PATCHES=(
374 - "${FILESDIR}"/${PN}-1.3.6-use-trace.patch
375 - "${FILESDIR}"/${PN}-1.3.6-sighup-crash.patch
376 -)
377 -
378 -RESTRICT=test # tests corrupt memory. need to be fixed upstream first
379 -
380 -in_dir() {
381 - pushd "${WORKDIR}/${1}" || die
382 - shift
383 - "$@"
384 - popd
385 -}
386 -
387 -src_prepare() {
388 - # Skip 'install-conf' / Support LINGUAS
389 - sed -i -e "/install-all/s/ install-conf//" Makefile.in || die
390 - sed -i -e "s/^LANGS=.*$/LANGS=${LINGUAS}/" locale/Makefile.in || die
391 -
392 - # Prepare external modules
393 - if use case; then
394 - cp -v "${WORKDIR}"/mod_case/mod_case.c contrib || die
395 - cp -v "${WORKDIR}"/mod_case/mod_case.html doc/contrib || die
396 - fi
397 -
398 - if use clamav ; then
399 - cp -v "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/mod_clamav.{c,h} contrib || die
400 - eapply "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/${PN}.patch
401 - fi
402 -
403 - if use diskuse; then
404 - in_dir mod_diskuse eapply "${FILESDIR}"/${PN}-1.3.6_rc4-diskuse-refresh-api.patch
405 -
406 - # ./configure will modify files. Symlink them instead of copying
407 - ln -sv "${WORKDIR}"/mod_diskuse/mod_diskuse.h "${S}"/contrib || die
408 -
409 - cp -v "${WORKDIR}"/mod_diskuse/mod_diskuse.c "${S}"/contrib || die
410 - cp -v "${WORKDIR}"/mod_diskuse/mod_diskuse.html "${S}"/doc/contrib || die
411 - fi
412 -
413 - if use msg; then
414 - in_dir mod_msg eapply "${FILESDIR}"/${PN}-1.3.6_rc4-msg-refresh-api.patch
415 -
416 - cp -v "${WORKDIR}"/mod_msg/mod_msg.c contrib || die
417 - cp -v "${WORKDIR}"/mod_msg/mod_msg.html doc/contrib || die
418 - fi
419 -
420 - if use vroot; then
421 - in_dir ${PN}-mod_vroot-${MOD_VROOT} eapply "${FILESDIR}"/${PN}-1.3.6_rc4-vroot-refresh-api.patch
422 -
423 - cp -v "${WORKDIR}"/${PN}-mod_vroot-${MOD_VROOT}/mod_vroot.c contrib || die
424 - cp -v "${WORKDIR}"/${PN}-mod_vroot-${MOD_VROOT}/mod_vroot.html doc/contrib || die
425 - fi
426 -
427 - if use kerberos ; then
428 - in_dir mod_gss-${MOD_GSS} eapply "${FILESDIR}"/${PN}-1.3.6_rc4-gss-refresh-api.patch
429 -
430 - # Support app-crypt/heimdal / Gentoo Bug #284853
431 - sed -i -e "s/krb5_principal2principalname/_\0/" "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_auth_gss.c.in || die
432 -
433 - # Remove obsolete DES / Gentoo Bug #324903
434 - # Replace 'rpm' lookups / Gentoo Bug #391021
435 - sed -i -e "/ac_gss_libs/s/ -ldes425//" \
436 - -e "s/ac_libdir=\`rpm -q -l.*$/ac_libdir=\/usr\/$(get_libdir)\//" \
437 - -e "s/ac_includedir=\`rpm -q -l.*$/ac_includedir=\/usr\/include\//" "${WORKDIR}"/mod_gss-${MOD_GSS}/configure{,.in} || die
438 -
439 - # ./configure will modify files. Symlink them instead of copying
440 - ln -sv "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_auth_gss.c "${S}"/contrib || die
441 - ln -sv "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_gss.c "${S}"/contrib || die
442 - ln -sv "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_gss.h "${S}"/include || die
443 -
444 - cp -v "${WORKDIR}"/mod_gss-${MOD_GSS}/README.mod_{auth_gss,gss} "${S}" || die
445 - cp -v "${WORKDIR}"/mod_gss-${MOD_GSS}/mod_gss.html "${S}"/doc/contrib || die
446 - cp -v "${WORKDIR}"/mod_gss-${MOD_GSS}/rfc{1509,2228}.txt "${S}"/doc/rfc || die
447 - fi
448 -
449 - default
450 -}
451 -
452 -src_configure() {
453 - local c m
454 -
455 - use acl && m="${m}:mod_facl"
456 - use ban && m="${m}:mod_ban"
457 - use case && m="${m}:mod_case"
458 - use clamav && m="${m}:mod_clamav"
459 - use copy && m="${m}:mod_copy"
460 - use ctrls && m="${m}:mod_ctrls_admin"
461 - use deflate && m="${m}:mod_deflate"
462 - if use diskuse ; then
463 - in_dir mod_diskuse econf
464 - m="${m}:mod_diskuse"
465 - fi
466 - use dynmasq && m="${m}:mod_dynmasq"
467 - use exec && m="${m}:mod_exec"
468 - use ifsession && m="${m}:mod_ifsession"
469 - use ifversion && m="${m}:mod_ifversion"
470 - if use kerberos ; then
471 - in_dir mod_gss-${MOD_GSS} econf
472 - m="${m}:mod_gss:mod_auth_gss"
473 - fi
474 - use ldap && m="${m}:mod_ldap"
475 - use log_forensic && m="${m}:mod_log_forensic"
476 - use msg && m="${m}:mod_msg"
477 - if use mysql || use postgres || use sqlite ; then
478 - m="${m}:mod_sql:mod_sql_passwd"
479 - use mysql && m="${m}:mod_sql_mysql"
480 - use postgres && m="${m}:mod_sql_postgres"
481 - use sqlite && m="${m}:mod_sql_sqlite"
482 - fi
483 - use qos && m="${m}:mod_qos"
484 - use radius && m="${m}:mod_radius"
485 - use ratio && m="${m}:mod_ratio"
486 - use readme && m="${m}:mod_readme"
487 - use rewrite && m="${m}:mod_rewrite"
488 - if use sftp ; then
489 - m="${m}:mod_sftp"
490 - use pam && m="${m}:mod_sftp_pam"
491 - use mysql || use postgres || use sqlite && m="${m}:mod_sftp_sql"
492 - fi
493 - use shaper && m="${m}:mod_shaper"
494 - use sitemisc && m="${m}:mod_site_misc"
495 - use snmp && m="${m}:mod_snmp"
496 - if use softquota ; then
497 - m="${m}:mod_quotatab:mod_quotatab_file"
498 - use ldap && m="${m}:mod_quotatab_ldap"
499 - use radius && m="${m}:mod_quotatab_radius"
500 - use mysql || use postgres || use sqlite && m="${m}:mod_quotatab_sql"
501 - fi
502 - if use ssl ; then
503 - m="${m}:mod_tls:mod_tls_shmcache"
504 - use memcache && m="${m}:mod_tls_memcache"
505 - fi
506 - if use tcpd ; then
507 - m="${m}:mod_wrap2:mod_wrap2_file"
508 - use mysql || use postgres || use sqlite && m="${m}:mod_wrap2_sql"
509 - fi
510 - use unique_id && m="${m}:mod_unique_id"
511 - use vroot && m="${m}:mod_vroot"
512 -
513 - if [[ -n ${PROFTP_CUSTOM_MODULES} ]]; then
514 - einfo "Adding user-specified extra modules: '${PROFTP_CUSTOM_MODULES}'"
515 - m="${m}:${PROFTP_CUSTOM_MODULES}"
516 - fi
517 -
518 - [[ -z ${m} ]] || c="${c} --with-modules=${m:1}"
519 -
520 - econf --localstatedir=/var/run/proftpd --sysconfdir=/etc/proftpd --disable-strip \
521 - $(use_enable acl facl) \
522 - $(use_enable authfile auth-file) \
523 - $(use_enable caps cap) \
524 - $(use_enable ctrls) \
525 - $(use_enable dso) \
526 - $(use_enable ident) \
527 - $(use_enable ipv6) \
528 - $(use_enable memcache) \
529 - $(use_enable ncurses) \
530 - $(use_enable nls) \
531 - $(use_enable ssl openssl) \
532 - $(use_enable pam auth-pam) \
533 - $(use_enable pcre) \
534 - $(use_enable sodium) \
535 - $(use_enable test tests) \
536 - --enable-trace \
537 - $(use_enable userland_GNU shadow) \
538 - $(use_enable userland_GNU autoshadow) \
539 - ${c:1}
540 -}
541 -
542 -src_test() {
543 - emake api-tests -C tests
544 -}
545 -
546 -src_install() {
547 - default
548 - [[ -z ${LINGUAS-set} ]] && rm -r "${ED}"/usr/share/locale
549 - rm -rf "${ED}"/var/run
550 -
551 - newinitd "${FILESDIR}"/proftpd.initd proftpd
552 - insinto /etc/proftpd
553 - doins "${FILESDIR}"/proftpd.conf.sample
554 -
555 - insinto /etc/xinetd.d
556 - newins "${FILESDIR}"/proftpd.xinetd proftpd
557 -
558 - insinto /etc/logrotate.d
559 - newins "${FILESDIR}"/${PN}.logrotate ${PN}
560 -
561 - dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES
562 -
563 - docinto html
564 - dodoc doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html
565 -
566 - docinto rfc
567 - dodoc doc/rfc/*.txt
568 -
569 - systemd_dounit "${FILESDIR}"/${PN}.service
570 - systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d.conf ${PN}.conf
571 -}
572 -
573 -pkg_postinst() {
574 - # Create /var/run files at package merge time: bug #650000
575 - tmpfiles_process ${PN}.conf
576 -}