Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/vsftpd/, net-ftp/vsftpd/files/
Date: Sun, 24 Feb 2019 10:53:47
Message-Id: 1551005590.e45c6a269fc170ee2a45de9a65ff93504d4805e0.pacho@gentoo
1 commit: e45c6a269fc170ee2a45de9a65ff93504d4805e0
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 24 10:41:41 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 24 10:53:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e45c6a26
7
8 net-ftp/vsftpd: Drop old
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 net-ftp/vsftpd/Manifest | 2 -
14 net-ftp/vsftpd/files/vsftpd-2.3.2-as-needed.patch | 13 ---
15 net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch | 16 ---
16 net-ftp/vsftpd/vsftpd-2.3.5.ebuild | 114 ------------------
17 net-ftp/vsftpd/vsftpd-3.0.2-r1.ebuild | 121 -------------------
18 net-ftp/vsftpd/vsftpd-3.0.2-r2.ebuild | 131 ---------------------
19 net-ftp/vsftpd/vsftpd-3.0.2-r3.ebuild | 134 ----------------------
20 net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild | 134 ----------------------
21 net-ftp/vsftpd/vsftpd-3.0.2.ebuild | 117 -------------------
22 net-ftp/vsftpd/vsftpd-3.0.3-r1.ebuild | 134 ----------------------
23 net-ftp/vsftpd/vsftpd-3.0.3.ebuild | 131 ---------------------
24 11 files changed, 1047 deletions(-)
25
26 diff --git a/net-ftp/vsftpd/Manifest b/net-ftp/vsftpd/Manifest
27 index 3862fccc6fd..672d3786dd4 100644
28 --- a/net-ftp/vsftpd/Manifest
29 +++ b/net-ftp/vsftpd/Manifest
30 @@ -1,3 +1 @@
31 -DIST vsftpd-2.3.5.tar.gz 187691 BLAKE2B 59b3be665cfb39d56d7458c60cb068fbceccf853f7587668e96f392dc7693a9d84bbeed467508d4a5a55f0d9f5c7cafefc3890eb9c3e2fd2959a00ea46129289 SHA512 7d58d601c4a14cf16c074f238d557fd28e080d7573a1257f742e43bf97cff455b6bf083d8e3594cc7f8865f9485b307b692e91c17426c7fed11af9e4b41a0643
32 -DIST vsftpd-3.0.2.tar.gz 192808 BLAKE2B fd1c5dd815d9df969f2d1aceb35b5c0340728c6f5f5ab3f73eea5dc62cde65cd0c5a598184c7f68d5fceeaadef9537708adc0ac97adc4c856662e0997d8a8ca2 SHA512 d5b978e07d8b0a623b79a531824666fb9b970ad5989a8c34c21b545b62ba07cde4bfe3d77b40a8b6e92d17890c37cae209231af8f106da3404f6548e217bd023
33 DIST vsftpd-3.0.3.tar.gz 196649 BLAKE2B dbf96e788494c29d78ca49fad6a03641c9725f9a5b01a4059ad009870fdc28520cd467cd8288a8a9a520c411c495a42c3fff57ee1069efc65840adb245792dca SHA512 5a4410a88e72ecf6f60a60a89771bcec300c9f63c2ea83b219bdf65fd9749b9853f9579f7257205b55659aefcd5dab243eba878dbbd4f0ff8532dd6e60884df7
34
35 diff --git a/net-ftp/vsftpd/files/vsftpd-2.3.2-as-needed.patch b/net-ftp/vsftpd/files/vsftpd-2.3.2-as-needed.patch
36 deleted file mode 100644
37 index 330026e47e9..00000000000
38 --- a/net-ftp/vsftpd/files/vsftpd-2.3.2-as-needed.patch
39 +++ /dev/null
40 @@ -1,13 +0,0 @@
41 -Index: vsftpd-2.3.2/Makefile
42 -===================================================================
43 ---- vsftpd-2.3.2.orig/Makefile
44 -+++ vsftpd-2.3.2/Makefile
45 -@@ -21,7 +21,7 @@ OBJS = main.o utility.o prelogin.o ftpcm
46 - $(CC) -c $*.c $(CFLAGS) $(IFLAGS)
47 -
48 - vsftpd: $(OBJS)
49 -- $(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS) $(LDFLAGS)
50 -+ $(CC) -o vsftpd $(LDFLAGS) $(OBJS) $(LINK) $(LIBS)
51 -
52 - install:
53 - if [ -x /usr/local/sbin ]; then \
54
55 diff --git a/net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch b/net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch
56 deleted file mode 100644
57 index 2445bb54467..00000000000
58 --- a/net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch
59 +++ /dev/null
60 @@ -1,16 +0,0 @@
61 -Author: Michael Cree <mcree@×××××××××.nz>
62 -Description: Fixing FTBFS on alpha (Closes: #656182).
63 -
64 -diff -Naurp vsftpd.orig/sysdeputil.c vsftpd/sysdeputil.c
65 ---- vsftpd.orig/sysdeputil.c 2010-03-26 04:25:33.000000000 +0100
66 -+++ vsftpd/sysdeputil.c 2012-01-21 10:53:37.353802546 +0100
67 -@@ -81,6 +81,9 @@
68 - #include <linux/unistd.h>
69 - #include <errno.h>
70 - #include <syscall.h>
71 -+ #if defined(__alpha__)
72 -+ #define __NR_getpid __NR_getxpid
73 -+ #endif
74 - #endif
75 -
76 - #if defined(__linux__) && !defined(__ia64__) && !defined(__s390__)
77
78 diff --git a/net-ftp/vsftpd/vsftpd-2.3.5.ebuild b/net-ftp/vsftpd/vsftpd-2.3.5.ebuild
79 deleted file mode 100644
80 index 8b404d579df..00000000000
81 --- a/net-ftp/vsftpd/vsftpd-2.3.5.ebuild
82 +++ /dev/null
83 @@ -1,114 +0,0 @@
84 -# Copyright 1999-2013 Gentoo Foundation
85 -# Distributed under the terms of the GNU General Public License v2
86 -
87 -EAPI="4"
88 -
89 -inherit eutils toolchain-funcs
90 -
91 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
92 -HOMEPAGE="http://vsftpd.beasts.org/"
93 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
94 -
95 -LICENSE="GPL-2"
96 -SLOT="0"
97 -KEYWORDS="amd64 arm ~hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
98 -IUSE="caps pam tcpd ssl selinux xinetd"
99 -
100 -DEPEND="caps? ( >=sys-libs/libcap-2 )
101 - pam? ( virtual/pam )
102 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
103 - ssl? ( >=dev-libs/openssl-0.9.7d )"
104 -RDEPEND="${DEPEND}
105 - net-ftp/ftpbase
106 - selinux? ( sec-policy/selinux-ftp )
107 - xinetd? ( sys-apps/xinetd )"
108 -
109 -src_prepare() {
110 -
111 - # as-needed patch. Bug #335977
112 - epatch "${FILESDIR}/${PN}-2.3.2-as-needed.patch"
113 -
114 - # kerberos patch. bug #335980
115 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
116 -
117 - # Patch the source, config and the manpage to use /etc/vsftpd/
118 - epatch "${FILESDIR}/${P}-gentoo.patch"
119 -
120 - # Fix building without the libcap
121 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
122 -
123 - # Configure vsftpd build defaults
124 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
125 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
126 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
127 -
128 - # Ensure that we don't link against libcap unless asked
129 - if ! use caps ; then
130 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
131 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
132 - fi
133 -
134 - # Let portage control stripping
135 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
136 -}
137 -
138 -src_compile() {
139 - emake \
140 - CFLAGS="${CFLAGS}" \
141 - CC="$(tc-getCC)"
142 -}
143 -
144 -src_install() {
145 - into /usr
146 - doman ${PN}.conf.5 ${PN}.8
147 - dosbin ${PN} || die "disbin failed"
148 -
149 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
150 - README README.security REWARD SIZE \
151 - SPEED TODO TUNING || die "dodoc failed"
152 - newdoc ${PN}.conf ${PN}.conf.example
153 -
154 - docinto security
155 - dodoc SECURITY/* || die "dodoc failed"
156 -
157 - insinto "/usr/share/doc/${PF}/examples"
158 - doins -r EXAMPLE/* || die "doins faileD"
159 -
160 - insinto /etc/${PN}
161 - newins ${PN}.conf{,.example}
162 -
163 - insinto /etc/logrotate.d
164 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
165 -
166 - if use xinetd ; then
167 - insinto /etc/xinetd.d
168 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
169 - fi
170 -
171 - newinitd "${FILESDIR}/${PN}.init" ${PN}
172 -
173 - keepdir /usr/share/${PN}/empty
174 -
175 - exeinto /usr/libexec
176 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
177 -}
178 -
179 -pkg_preinst() {
180 - # If we use xinetd, then we set listen=NO
181 - # so that our default config works under xinetd - fixes #78347
182 - if use xinetd ; then
183 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
184 - fi
185 -}
186 -
187 -pkg_postinst() {
188 - einfo "vsftpd init script can now be multiplexed."
189 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
190 - einfo "If you symlink the init script to another one, say vsftpd.foo"
191 - einfo "then that uses /etc/vsftpd/foo.conf instead."
192 - einfo
193 - einfo "Example:"
194 - einfo " cd /etc/init.d"
195 - einfo " ln -s vsftpd vsftpd.foo"
196 - einfo "You can now treat vsftpd.foo like any other service"
197 -}
198
199 diff --git a/net-ftp/vsftpd/vsftpd-3.0.2-r1.ebuild b/net-ftp/vsftpd/vsftpd-3.0.2-r1.ebuild
200 deleted file mode 100644
201 index f362ee2595e..00000000000
202 --- a/net-ftp/vsftpd/vsftpd-3.0.2-r1.ebuild
203 +++ /dev/null
204 @@ -1,121 +0,0 @@
205 -# Copyright 1999-2013 Gentoo Foundation
206 -# Distributed under the terms of the GNU General Public License v2
207 -
208 -EAPI="4"
209 -
210 -inherit eutils systemd toolchain-funcs
211 -
212 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
213 -HOMEPAGE="http://vsftpd.beasts.org/"
214 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
215 -
216 -LICENSE="GPL-2"
217 -SLOT="0"
218 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
219 -IUSE="caps pam tcpd ssl selinux xinetd"
220 -
221 -DEPEND="caps? ( >=sys-libs/libcap-2 )
222 - pam? ( virtual/pam )
223 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
224 - ssl? ( >=dev-libs/openssl-0.9.7d )"
225 -RDEPEND="${DEPEND}
226 - net-ftp/ftpbase
227 - selinux? ( sec-policy/selinux-ftp )
228 - xinetd? ( sys-apps/xinetd )"
229 -
230 -src_prepare() {
231 -
232 - # kerberos patch. bug #335980
233 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
234 -
235 - # Patch the source, config and the manpage to use /etc/vsftpd/
236 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
237 -
238 - # Fix building without the libcap
239 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
240 -
241 - # Fix building on alpha. Bug #405829
242 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
243 -
244 - # Configure vsftpd build defaults
245 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
246 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
247 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
248 -
249 - # Ensure that we don't link against libcap unless asked
250 - if ! use caps ; then
251 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
252 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
253 - fi
254 -
255 - # Let portage control stripping
256 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
257 -
258 - #Bug #335977
259 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
260 -
261 - #Bug #450536
262 - epatch "${FILESDIR}"/${P}-remove-legacy-cap.patch
263 -}
264 -
265 -src_compile() {
266 - CFLAGS="${CFLAGS}" \
267 - CC="$(tc-getCC)" \
268 - emake
269 -}
270 -
271 -src_install() {
272 - into /usr
273 - doman ${PN}.conf.5 ${PN}.8
274 - dosbin ${PN} || die "disbin failed"
275 -
276 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
277 - README README.security REWARD SIZE \
278 - SPEED TODO TUNING || die "dodoc failed"
279 - newdoc ${PN}.conf ${PN}.conf.example
280 -
281 - docinto security
282 - dodoc SECURITY/* || die "dodoc failed"
283 -
284 - insinto "/usr/share/doc/${PF}/examples"
285 - doins -r EXAMPLE/* || die "doins faileD"
286 -
287 - insinto /etc/${PN}
288 - newins ${PN}.conf{,.example}
289 -
290 - insinto /etc/logrotate.d
291 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
292 -
293 - if use xinetd ; then
294 - insinto /etc/xinetd.d
295 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
296 - fi
297 -
298 - newinitd "${FILESDIR}/${PN}.init" ${PN}
299 -
300 - keepdir /usr/share/${PN}/empty
301 -
302 - exeinto /usr/libexec
303 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
304 - systemd_dounit "${FILESDIR}/${PN}.service"
305 -}
306 -
307 -pkg_preinst() {
308 - # If we use xinetd, then we set listen=NO
309 - # so that our default config works under xinetd - fixes #78347
310 - if use xinetd ; then
311 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
312 - fi
313 -}
314 -
315 -pkg_postinst() {
316 - einfo "vsftpd init script can now be multiplexed."
317 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
318 - einfo "If you symlink the init script to another one, say vsftpd.foo"
319 - einfo "then that uses /etc/vsftpd/foo.conf instead."
320 - einfo
321 - einfo "Example:"
322 - einfo " cd /etc/init.d"
323 - einfo " ln -s vsftpd vsftpd.foo"
324 - einfo "You can now treat vsftpd.foo like any other service"
325 -}
326
327 diff --git a/net-ftp/vsftpd/vsftpd-3.0.2-r2.ebuild b/net-ftp/vsftpd/vsftpd-3.0.2-r2.ebuild
328 deleted file mode 100644
329 index 787c26639af..00000000000
330 --- a/net-ftp/vsftpd/vsftpd-3.0.2-r2.ebuild
331 +++ /dev/null
332 @@ -1,131 +0,0 @@
333 -# Copyright 1999-2014 Gentoo Foundation
334 -# Distributed under the terms of the GNU General Public License v2
335 -
336 -EAPI="4"
337 -
338 -inherit eutils systemd toolchain-funcs
339 -
340 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
341 -HOMEPAGE="http://vsftpd.beasts.org/"
342 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
343 -
344 -LICENSE="GPL-2"
345 -SLOT="0"
346 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
347 -IUSE="caps pam tcpd ssl selinux xinetd"
348 -
349 -DEPEND="caps? ( >=sys-libs/libcap-2 )
350 - pam? ( virtual/pam )
351 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
352 - ssl? ( >=dev-libs/openssl-0.9.7d )"
353 -RDEPEND="${DEPEND}
354 - net-ftp/ftpbase
355 - selinux? ( sec-policy/selinux-ftp )
356 - xinetd? ( sys-apps/xinetd )"
357 -
358 -src_prepare() {
359 - # kerberos patch. bug #335980
360 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
361 -
362 - # Patch the source, config and the manpage to use /etc/vsftpd/
363 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
364 -
365 - # Fix building without the libcap
366 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
367 -
368 - # Fix building on alpha. Bug #405829
369 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
370 -
371 - # Configure vsftpd build defaults
372 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
373 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
374 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
375 -
376 - # Ensure that we don't link against libcap unless asked
377 - if ! use caps ; then
378 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
379 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
380 - fi
381 -
382 - # Let portage control stripping
383 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
384 -
385 - #Bug #335977
386 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
387 -
388 - #Bug #450536
389 - epatch "${FILESDIR}"/${P}-remove-legacy-cap.patch
390 -
391 - epatch_user
392 -}
393 -
394 -src_compile() {
395 - # Override LIBS variable. Bug #508192
396 - LIBS=
397 - use caps && LIBS+=" -lcap"
398 - use pam && LIBS+=" -lpam"
399 - use tcpd && LIBS+=" -lwrap"
400 - use ssl && LIBS+=" -lssl -lcrypto"
401 -
402 - CFLAGS="${CFLAGS}" \
403 - CC="$(tc-getCC)" \
404 - emake LIBS="${LIBS}"
405 -}
406 -
407 -src_install() {
408 - into /usr
409 - doman ${PN}.conf.5 ${PN}.8
410 - dosbin ${PN} || die "disbin failed"
411 -
412 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
413 - README README.security REWARD SIZE \
414 - SPEED TODO TUNING || die "dodoc failed"
415 - newdoc ${PN}.conf ${PN}.conf.example
416 -
417 - docinto security
418 - dodoc SECURITY/* || die "dodoc failed"
419 -
420 - insinto "/usr/share/doc/${PF}/examples"
421 - doins -r EXAMPLE/* || die "doins faileD"
422 -
423 - insinto /etc/${PN}
424 - newins ${PN}.conf{,.example}
425 -
426 - insinto /etc/logrotate.d
427 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
428 -
429 - if use xinetd ; then
430 - insinto /etc/xinetd.d
431 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
432 - fi
433 -
434 - newinitd "${FILESDIR}/${PN}.init" ${PN}
435 -
436 - keepdir /usr/share/${PN}/empty
437 -
438 - exeinto /usr/libexec
439 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
440 - systemd_dounit "${FILESDIR}/${PN}.service"
441 - systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
442 - systemd_dounit "${FILESDIR}/${PN}.socket"
443 -}
444 -
445 -pkg_preinst() {
446 - # If we use xinetd, then we set listen=NO
447 - # so that our default config works under xinetd - fixes #78347
448 - if use xinetd ; then
449 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
450 - fi
451 -}
452 -
453 -pkg_postinst() {
454 - einfo "vsftpd openRC init script can now be multiplexed."
455 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
456 - einfo "If you symlink the init script to another one, say vsftpd.foo"
457 - einfo "then that uses /etc/vsftpd/foo.conf instead."
458 - einfo
459 - einfo "Example:"
460 - einfo " cd /etc/init.d"
461 - einfo " ln -s vsftpd vsftpd.foo"
462 - einfo "You can now treat vsftpd.foo like any other service"
463 -}
464
465 diff --git a/net-ftp/vsftpd/vsftpd-3.0.2-r3.ebuild b/net-ftp/vsftpd/vsftpd-3.0.2-r3.ebuild
466 deleted file mode 100644
467 index ea672ac8b5f..00000000000
468 --- a/net-ftp/vsftpd/vsftpd-3.0.2-r3.ebuild
469 +++ /dev/null
470 @@ -1,134 +0,0 @@
471 -# Copyright 1999-2014 Gentoo Foundation
472 -# Distributed under the terms of the GNU General Public License v2
473 -
474 -EAPI="4"
475 -
476 -inherit eutils systemd toolchain-funcs
477 -
478 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
479 -HOMEPAGE="http://vsftpd.beasts.org/"
480 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
481 -
482 -LICENSE="GPL-2"
483 -SLOT="0"
484 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
485 -IUSE="caps pam tcpd ssl selinux xinetd"
486 -
487 -DEPEND="caps? ( >=sys-libs/libcap-2 )
488 - pam? ( virtual/pam )
489 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
490 - ssl? ( >=dev-libs/openssl-0.9.7d )"
491 -RDEPEND="${DEPEND}
492 - net-ftp/ftpbase
493 - selinux? ( sec-policy/selinux-ftp )
494 - xinetd? ( sys-apps/xinetd )"
495 -
496 -src_prepare() {
497 - # kerberos patch. bug #335980
498 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
499 -
500 - # Patch the source, config and the manpage to use /etc/vsftpd/
501 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
502 -
503 - # Fix building without the libcap
504 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
505 -
506 - # Fix building on alpha. Bug #405829
507 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
508 -
509 - # Increase AS_LIMIT. Bug #522412
510 - epatch "${FILESDIR}/${P}-aslim.patch"
511 -
512 - # Configure vsftpd build defaults
513 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
514 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
515 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
516 -
517 - # Ensure that we don't link against libcap unless asked
518 - if ! use caps ; then
519 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
520 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
521 - fi
522 -
523 - # Let portage control stripping
524 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
525 -
526 - #Bug #335977
527 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
528 -
529 - #Bug #450536
530 - epatch "${FILESDIR}"/${P}-remove-legacy-cap.patch
531 -
532 - epatch_user
533 -}
534 -
535 -src_compile() {
536 - # Override LIBS variable. Bug #508192
537 - LIBS=
538 - use caps && LIBS+=" -lcap"
539 - use pam && LIBS+=" -lpam"
540 - use tcpd && LIBS+=" -lwrap"
541 - use ssl && LIBS+=" -lssl -lcrypto"
542 -
543 - CFLAGS="${CFLAGS}" \
544 - CC="$(tc-getCC)" \
545 - emake LIBS="${LIBS}"
546 -}
547 -
548 -src_install() {
549 - into /usr
550 - doman ${PN}.conf.5 ${PN}.8
551 - dosbin ${PN} || die "disbin failed"
552 -
553 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
554 - README README.security REWARD SIZE \
555 - SPEED TODO TUNING || die "dodoc failed"
556 - newdoc ${PN}.conf ${PN}.conf.example
557 -
558 - docinto security
559 - dodoc SECURITY/* || die "dodoc failed"
560 -
561 - insinto "/usr/share/doc/${PF}/examples"
562 - doins -r EXAMPLE/* || die "doins faileD"
563 -
564 - insinto /etc/${PN}
565 - newins ${PN}.conf{,.example}
566 -
567 - insinto /etc/logrotate.d
568 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
569 -
570 - if use xinetd ; then
571 - insinto /etc/xinetd.d
572 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
573 - fi
574 -
575 - newinitd "${FILESDIR}/${PN}.init" ${PN}
576 -
577 - keepdir /usr/share/${PN}/empty
578 -
579 - exeinto /usr/libexec
580 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
581 - systemd_dounit "${FILESDIR}/${PN}.service"
582 - systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
583 - systemd_dounit "${FILESDIR}/${PN}.socket"
584 -}
585 -
586 -pkg_preinst() {
587 - # If we use xinetd, then we set listen=NO
588 - # so that our default config works under xinetd - fixes #78347
589 - if use xinetd ; then
590 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
591 - fi
592 -}
593 -
594 -pkg_postinst() {
595 - einfo "vsftpd openRC init script can now be multiplexed."
596 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
597 - einfo "If you symlink the init script to another one, say vsftpd.foo"
598 - einfo "then that uses /etc/vsftpd/foo.conf instead."
599 - einfo
600 - einfo "Example:"
601 - einfo " cd /etc/init.d"
602 - einfo " ln -s vsftpd vsftpd.foo"
603 - einfo "You can now treat vsftpd.foo like any other service"
604 -}
605
606 diff --git a/net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild b/net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild
607 deleted file mode 100644
608 index 9f5b84c9683..00000000000
609 --- a/net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild
610 +++ /dev/null
611 @@ -1,134 +0,0 @@
612 -# Copyright 1999-2015 Gentoo Foundation
613 -# Distributed under the terms of the GNU General Public License v2
614 -
615 -EAPI="4"
616 -
617 -inherit eutils systemd toolchain-funcs
618 -
619 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
620 -HOMEPAGE="http://vsftpd.beasts.org/"
621 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
622 -
623 -LICENSE="GPL-2"
624 -SLOT="0"
625 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
626 -IUSE="caps pam tcpd ssl selinux xinetd"
627 -
628 -DEPEND="caps? ( >=sys-libs/libcap-2 )
629 - pam? ( virtual/pam )
630 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
631 - ssl? ( >=dev-libs/openssl-0.9.7d )"
632 -RDEPEND="${DEPEND}
633 - net-ftp/ftpbase
634 - selinux? ( sec-policy/selinux-ftp )
635 - xinetd? ( sys-apps/xinetd )"
636 -
637 -src_prepare() {
638 - # kerberos patch. bug #335980
639 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
640 -
641 - # Patch the source, config and the manpage to use /etc/vsftpd/
642 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
643 -
644 - # Fix building without the libcap
645 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
646 -
647 - # Fix building on alpha. Bug #405829
648 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
649 -
650 - # Increase AS_LIMIT. Bug #522412
651 - epatch "${FILESDIR}/${P}-aslim.patch"
652 -
653 - # Configure vsftpd build defaults
654 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
655 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
656 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
657 -
658 - # Ensure that we don't link against libcap unless asked
659 - if ! use caps ; then
660 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
661 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
662 - fi
663 -
664 - # Let portage control stripping
665 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
666 -
667 - #Bug #335977
668 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
669 -
670 - #Bug #450536
671 - epatch "${FILESDIR}"/${P}-remove-legacy-cap.patch
672 -
673 - epatch_user
674 -}
675 -
676 -src_compile() {
677 - # Override LIBS variable. Bug #508192
678 - LIBS=
679 - use caps && LIBS+=" -lcap"
680 - use pam && LIBS+=" -lpam"
681 - use tcpd && LIBS+=" -lwrap"
682 - use ssl && LIBS+=" -lssl -lcrypto"
683 -
684 - CFLAGS="${CFLAGS}" \
685 - CC="$(tc-getCC)" \
686 - emake LIBS="${LIBS}"
687 -}
688 -
689 -src_install() {
690 - into /usr
691 - doman ${PN}.conf.5 ${PN}.8
692 - dosbin ${PN} || die "disbin failed"
693 -
694 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
695 - README README.security REWARD SIZE \
696 - SPEED TODO TUNING || die "dodoc failed"
697 - newdoc ${PN}.conf ${PN}.conf.example
698 -
699 - docinto security
700 - dodoc SECURITY/* || die "dodoc failed"
701 -
702 - insinto "/usr/share/doc/${PF}/examples"
703 - doins -r EXAMPLE/* || die "doins faileD"
704 -
705 - insinto /etc/${PN}
706 - newins ${PN}.conf{,.example}
707 -
708 - insinto /etc/logrotate.d
709 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
710 -
711 - if use xinetd ; then
712 - insinto /etc/xinetd.d
713 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
714 - fi
715 -
716 - newinitd "${FILESDIR}/${PN}.init" ${PN}
717 -
718 - keepdir /usr/share/${PN}/empty
719 -
720 - exeinto /usr/libexec
721 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
722 - systemd_dounit "${FILESDIR}/${PN}.service"
723 - systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
724 - systemd_dounit "${FILESDIR}/${PN}.socket"
725 -}
726 -
727 -pkg_preinst() {
728 - # If we use xinetd, then we set listen=NO
729 - # so that our default config works under xinetd - fixes #78347
730 - if use xinetd ; then
731 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
732 - fi
733 -}
734 -
735 -pkg_postinst() {
736 - einfo "vsftpd openRC init script can now be multiplexed."
737 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
738 - einfo "If you symlink the init script to another one, say vsftpd.foo"
739 - einfo "then that uses /etc/vsftpd/foo.conf instead."
740 - einfo
741 - einfo "Example:"
742 - einfo " cd /etc/init.d"
743 - einfo " ln -s vsftpd vsftpd.foo"
744 - einfo "You can now treat vsftpd.foo like any other service"
745 -}
746
747 diff --git a/net-ftp/vsftpd/vsftpd-3.0.2.ebuild b/net-ftp/vsftpd/vsftpd-3.0.2.ebuild
748 deleted file mode 100644
749 index 2e9ae68e650..00000000000
750 --- a/net-ftp/vsftpd/vsftpd-3.0.2.ebuild
751 +++ /dev/null
752 @@ -1,117 +0,0 @@
753 -# Copyright 1999-2013 Gentoo Foundation
754 -# Distributed under the terms of the GNU General Public License v2
755 -
756 -EAPI="4"
757 -
758 -inherit eutils toolchain-funcs
759 -
760 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
761 -HOMEPAGE="http://vsftpd.beasts.org/"
762 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
763 -
764 -LICENSE="GPL-2"
765 -SLOT="0"
766 -KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
767 -IUSE="caps pam tcpd ssl selinux xinetd"
768 -
769 -DEPEND="caps? ( >=sys-libs/libcap-2 )
770 - pam? ( virtual/pam )
771 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
772 - ssl? ( >=dev-libs/openssl-0.9.7d )"
773 -RDEPEND="${DEPEND}
774 - net-ftp/ftpbase
775 - selinux? ( sec-policy/selinux-ftp )
776 - xinetd? ( sys-apps/xinetd )"
777 -
778 -src_prepare() {
779 -
780 - # kerberos patch. bug #335980
781 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
782 -
783 - # Patch the source, config and the manpage to use /etc/vsftpd/
784 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
785 -
786 - # Fix building without the libcap
787 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
788 -
789 - # Fix building on alpha. Bug #405829
790 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
791 -
792 - # Configure vsftpd build defaults
793 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
794 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
795 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
796 -
797 - # Ensure that we don't link against libcap unless asked
798 - if ! use caps ; then
799 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
800 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
801 - fi
802 -
803 - # Let portage control stripping
804 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
805 -
806 - #Bug #335977
807 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
808 -}
809 -
810 -src_compile() {
811 - CFLAGS="${CFLAGS}" \
812 - CC="$(tc-getCC)" \
813 - emake
814 -}
815 -
816 -src_install() {
817 - into /usr
818 - doman ${PN}.conf.5 ${PN}.8
819 - dosbin ${PN} || die "disbin failed"
820 -
821 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
822 - README README.security REWARD SIZE \
823 - SPEED TODO TUNING || die "dodoc failed"
824 - newdoc ${PN}.conf ${PN}.conf.example
825 -
826 - docinto security
827 - dodoc SECURITY/* || die "dodoc failed"
828 -
829 - insinto "/usr/share/doc/${PF}/examples"
830 - doins -r EXAMPLE/* || die "doins faileD"
831 -
832 - insinto /etc/${PN}
833 - newins ${PN}.conf{,.example}
834 -
835 - insinto /etc/logrotate.d
836 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
837 -
838 - if use xinetd ; then
839 - insinto /etc/xinetd.d
840 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
841 - fi
842 -
843 - newinitd "${FILESDIR}/${PN}.init" ${PN}
844 -
845 - keepdir /usr/share/${PN}/empty
846 -
847 - exeinto /usr/libexec
848 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
849 -}
850 -
851 -pkg_preinst() {
852 - # If we use xinetd, then we set listen=NO
853 - # so that our default config works under xinetd - fixes #78347
854 - if use xinetd ; then
855 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
856 - fi
857 -}
858 -
859 -pkg_postinst() {
860 - einfo "vsftpd init script can now be multiplexed."
861 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
862 - einfo "If you symlink the init script to another one, say vsftpd.foo"
863 - einfo "then that uses /etc/vsftpd/foo.conf instead."
864 - einfo
865 - einfo "Example:"
866 - einfo " cd /etc/init.d"
867 - einfo " ln -s vsftpd vsftpd.foo"
868 - einfo "You can now treat vsftpd.foo like any other service"
869 -}
870
871 diff --git a/net-ftp/vsftpd/vsftpd-3.0.3-r1.ebuild b/net-ftp/vsftpd/vsftpd-3.0.3-r1.ebuild
872 deleted file mode 100644
873 index a61b38e5a2c..00000000000
874 --- a/net-ftp/vsftpd/vsftpd-3.0.3-r1.ebuild
875 +++ /dev/null
876 @@ -1,134 +0,0 @@
877 -# Copyright 1999-2016 Gentoo Foundation
878 -# Distributed under the terms of the GNU General Public License v2
879 -
880 -EAPI="6"
881 -
882 -inherit eutils systemd toolchain-funcs
883 -
884 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
885 -HOMEPAGE="http://vsftpd.beasts.org/"
886 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
887 -
888 -LICENSE="GPL-2"
889 -SLOT="0"
890 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
891 -IUSE="caps libressl pam tcpd ssl selinux xinetd"
892 -
893 -DEPEND="caps? ( >=sys-libs/libcap-2 )
894 - pam? ( virtual/pam )
895 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
896 - ssl? (
897 - !libressl? ( dev-libs/openssl:0= )
898 - libressl? ( dev-libs/libressl:0= )
899 - )"
900 -RDEPEND="${DEPEND}
901 - net-ftp/ftpbase
902 - selinux? ( sec-policy/selinux-ftp )
903 - xinetd? ( sys-apps/xinetd )"
904 -
905 -src_prepare() {
906 - # kerberos patch. bug #335980
907 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
908 -
909 - # Patch the source, config and the manpage to use /etc/vsftpd/
910 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
911 -
912 - # Fix building without the libcap
913 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
914 -
915 - # Fix building on alpha. Bug #405829
916 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
917 -
918 - # Configure vsftpd build defaults
919 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
920 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
921 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
922 -
923 - # Ensure that we don't link against libcap unless asked
924 - if ! use caps ; then
925 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
926 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
927 - fi
928 -
929 - # Let portage control stripping
930 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
931 -
932 - #Bug #335977
933 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
934 -
935 - #Bug #450536
936 - epatch "${FILESDIR}"/${PN}-3.0.2-remove-legacy-cap.patch
937 -
938 - eapply_user
939 -}
940 -
941 -src_compile() {
942 - # Override LIBS variable. Bug #508192
943 - LIBS=
944 - use caps && LIBS+=" -lcap"
945 - use pam && LIBS+=" -lpam"
946 - use tcpd && LIBS+=" -lwrap"
947 - use ssl && LIBS+=" -lssl -lcrypto"
948 -
949 - CFLAGS="${CFLAGS}" \
950 - CC="$(tc-getCC)" \
951 - emake LIBS="${LIBS}"
952 -}
953 -
954 -src_install() {
955 - into /usr
956 - doman ${PN}.conf.5 ${PN}.8
957 - dosbin ${PN} || die "disbin failed"
958 -
959 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
960 - README README.security REWARD SIZE \
961 - SPEED TODO TUNING || die "dodoc failed"
962 - newdoc ${PN}.conf ${PN}.conf.example
963 -
964 - docinto security
965 - dodoc SECURITY/* || die "dodoc failed"
966 -
967 - insinto "/usr/share/doc/${PF}/examples"
968 - doins -r EXAMPLE/* || die "doins faileD"
969 -
970 - insinto /etc/${PN}
971 - newins ${PN}.conf{,.example}
972 -
973 - insinto /etc/logrotate.d
974 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
975 -
976 - if use xinetd ; then
977 - insinto /etc/xinetd.d
978 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
979 - fi
980 -
981 - newinitd "${FILESDIR}/${PN}.init" ${PN}
982 -
983 - keepdir /usr/share/${PN}/empty
984 -
985 - exeinto /usr/libexec
986 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
987 - systemd_dounit "${FILESDIR}/${PN}.service"
988 - systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
989 - systemd_dounit "${FILESDIR}/${PN}.socket"
990 -}
991 -
992 -pkg_preinst() {
993 - # If we use xinetd, then we set listen=NO
994 - # so that our default config works under xinetd - fixes #78347
995 - if use xinetd ; then
996 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
997 - fi
998 -}
999 -
1000 -pkg_postinst() {
1001 - einfo "vsftpd openRC init script can now be multiplexed."
1002 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
1003 - einfo "If you symlink the init script to another one, say vsftpd.foo"
1004 - einfo "then that uses /etc/vsftpd/foo.conf instead."
1005 - einfo
1006 - einfo "Example:"
1007 - einfo " cd /etc/init.d"
1008 - einfo " ln -s vsftpd vsftpd.foo"
1009 - einfo "You can now treat vsftpd.foo like any other service"
1010 -}
1011
1012 diff --git a/net-ftp/vsftpd/vsftpd-3.0.3.ebuild b/net-ftp/vsftpd/vsftpd-3.0.3.ebuild
1013 deleted file mode 100644
1014 index 48d8e8795fd..00000000000
1015 --- a/net-ftp/vsftpd/vsftpd-3.0.3.ebuild
1016 +++ /dev/null
1017 @@ -1,131 +0,0 @@
1018 -# Copyright 1999-2015 Gentoo Foundation
1019 -# Distributed under the terms of the GNU General Public License v2
1020 -
1021 -EAPI="4"
1022 -
1023 -inherit eutils systemd toolchain-funcs
1024 -
1025 -DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
1026 -HOMEPAGE="http://vsftpd.beasts.org/"
1027 -SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
1028 -
1029 -LICENSE="GPL-2"
1030 -SLOT="0"
1031 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
1032 -IUSE="caps pam tcpd ssl selinux xinetd"
1033 -
1034 -DEPEND="caps? ( >=sys-libs/libcap-2 )
1035 - pam? ( virtual/pam )
1036 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
1037 - ssl? ( >=dev-libs/openssl-0.9.7d )"
1038 -RDEPEND="${DEPEND}
1039 - net-ftp/ftpbase
1040 - selinux? ( sec-policy/selinux-ftp )
1041 - xinetd? ( sys-apps/xinetd )"
1042 -
1043 -src_prepare() {
1044 - # kerberos patch. bug #335980
1045 - epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
1046 -
1047 - # Patch the source, config and the manpage to use /etc/vsftpd/
1048 - epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
1049 -
1050 - # Fix building without the libcap
1051 - epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
1052 -
1053 - # Fix building on alpha. Bug #405829
1054 - epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
1055 -
1056 - # Configure vsftpd build defaults
1057 - use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
1058 - use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
1059 - use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
1060 -
1061 - # Ensure that we don't link against libcap unless asked
1062 - if ! use caps ; then
1063 - sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
1064 - epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
1065 - fi
1066 -
1067 - # Let portage control stripping
1068 - sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
1069 -
1070 - #Bug #335977
1071 - epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
1072 -
1073 - #Bug #450536
1074 - epatch "${FILESDIR}"/${PN}-3.0.2-remove-legacy-cap.patch
1075 -
1076 - epatch_user
1077 -}
1078 -
1079 -src_compile() {
1080 - # Override LIBS variable. Bug #508192
1081 - LIBS=
1082 - use caps && LIBS+=" -lcap"
1083 - use pam && LIBS+=" -lpam"
1084 - use tcpd && LIBS+=" -lwrap"
1085 - use ssl && LIBS+=" -lssl -lcrypto"
1086 -
1087 - CFLAGS="${CFLAGS}" \
1088 - CC="$(tc-getCC)" \
1089 - emake LIBS="${LIBS}"
1090 -}
1091 -
1092 -src_install() {
1093 - into /usr
1094 - doman ${PN}.conf.5 ${PN}.8
1095 - dosbin ${PN} || die "disbin failed"
1096 -
1097 - dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
1098 - README README.security REWARD SIZE \
1099 - SPEED TODO TUNING || die "dodoc failed"
1100 - newdoc ${PN}.conf ${PN}.conf.example
1101 -
1102 - docinto security
1103 - dodoc SECURITY/* || die "dodoc failed"
1104 -
1105 - insinto "/usr/share/doc/${PF}/examples"
1106 - doins -r EXAMPLE/* || die "doins faileD"
1107 -
1108 - insinto /etc/${PN}
1109 - newins ${PN}.conf{,.example}
1110 -
1111 - insinto /etc/logrotate.d
1112 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
1113 -
1114 - if use xinetd ; then
1115 - insinto /etc/xinetd.d
1116 - newins "${FILESDIR}/${PN}.xinetd" ${PN}
1117 - fi
1118 -
1119 - newinitd "${FILESDIR}/${PN}.init" ${PN}
1120 -
1121 - keepdir /usr/share/${PN}/empty
1122 -
1123 - exeinto /usr/libexec
1124 - doexe "${FILESDIR}/vsftpd-checkconfig.sh"
1125 - systemd_dounit "${FILESDIR}/${PN}.service"
1126 - systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
1127 - systemd_dounit "${FILESDIR}/${PN}.socket"
1128 -}
1129 -
1130 -pkg_preinst() {
1131 - # If we use xinetd, then we set listen=NO
1132 - # so that our default config works under xinetd - fixes #78347
1133 - if use xinetd ; then
1134 - sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
1135 - fi
1136 -}
1137 -
1138 -pkg_postinst() {
1139 - einfo "vsftpd openRC init script can now be multiplexed."
1140 - einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
1141 - einfo "If you symlink the init script to another one, say vsftpd.foo"
1142 - einfo "then that uses /etc/vsftpd/foo.conf instead."
1143 - einfo
1144 - einfo "Example:"
1145 - einfo " cd /etc/init.d"
1146 - einfo " ln -s vsftpd vsftpd.foo"
1147 - einfo "You can now treat vsftpd.foo like any other service"
1148 -}