Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/vsftpd: vsftpd-3.0.2-r4.ebuild ChangeLog
Date: Sat, 31 Jan 2015 13:07:53
Message-Id: 20150131130747.AAC2010C2A@oystercatcher.gentoo.org
1 hwoarang 15/01/31 13:07:47
2
3 Modified: ChangeLog
4 Added: vsftpd-3.0.2-r4.ebuild
5 Log:
6 Make sure child processes are killed properly. Bug #537290 by rhumbliner
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)
9
10 Revision Changes Path
11 1.181 net-ftp/vsftpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/vsftpd/ChangeLog?rev=1.181&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/vsftpd/ChangeLog?rev=1.181&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/vsftpd/ChangeLog?r1=1.180&r2=1.181
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v
20 retrieving revision 1.180
21 retrieving revision 1.181
22 diff -u -r1.180 -r1.181
23 --- ChangeLog 14 Sep 2014 11:04:49 -0000 1.180
24 +++ ChangeLog 31 Jan 2015 13:07:47 -0000 1.181
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-ftp/vsftpd
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.180 2014/09/14 11:04:49 hwoarang Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.181 2015/01/31 13:07:47 hwoarang Exp $
31 +
32 +*vsftpd-3.0.2-r4 (31 Jan 2015)
33 +
34 + 31 Jan 2015; Markos Chandras <hwoarang@g.o> +vsftpd-3.0.2-r4.ebuild,
35 + files/vsftpd.init:
36 + Make sure child processes are killed properly. Bug #537290 by rhumbliner
37
38 *vsftpd-3.0.2-r3 (14 Sep 2014)
39
40
41
42
43 1.1 net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: vsftpd-3.0.2-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-3.0.2-r4.ebuild,v 1.1 2015/01/31 13:07:47 hwoarang Exp $
53
54 EAPI="4"
55
56 inherit eutils systemd toolchain-funcs
57
58 DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
59 HOMEPAGE="http://vsftpd.beasts.org/"
60 SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
65 IUSE="caps pam tcpd ssl selinux xinetd"
66
67 DEPEND="caps? ( >=sys-libs/libcap-2 )
68 pam? ( virtual/pam )
69 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
70 ssl? ( >=dev-libs/openssl-0.9.7d )"
71 RDEPEND="${DEPEND}
72 net-ftp/ftpbase
73 selinux? ( sec-policy/selinux-ftp )
74 xinetd? ( sys-apps/xinetd )"
75
76 src_prepare() {
77 # kerberos patch. bug #335980
78 epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
79
80 # Patch the source, config and the manpage to use /etc/vsftpd/
81 epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
82
83 # Fix building without the libcap
84 epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
85
86 # Fix building on alpha. Bug #405829
87 epatch "${FILESDIR}/${PN}-3.0.2-alpha.patch"
88
89 # Increase AS_LIMIT. Bug #522412
90 epatch "${FILESDIR}/${P}-aslim.patch"
91
92 # Configure vsftpd build defaults
93 use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
94 use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
95 use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
96
97 # Ensure that we don't link against libcap unless asked
98 if ! use caps ; then
99 sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
100 epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
101 fi
102
103 # Let portage control stripping
104 sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
105
106 #Bug #335977
107 epatch "${FILESDIR}"/${PN}-3.0.0-Makefile.patch
108
109 #Bug #450536
110 epatch "${FILESDIR}"/${P}-remove-legacy-cap.patch
111
112 epatch_user
113 }
114
115 src_compile() {
116 # Override LIBS variable. Bug #508192
117 LIBS=
118 use caps && LIBS+=" -lcap"
119 use pam && LIBS+=" -lpam"
120 use tcpd && LIBS+=" -lwrap"
121 use ssl && LIBS+=" -lssl -lcrypto"
122
123 CFLAGS="${CFLAGS}" \
124 CC="$(tc-getCC)" \
125 emake LIBS="${LIBS}"
126 }
127
128 src_install() {
129 into /usr
130 doman ${PN}.conf.5 ${PN}.8
131 dosbin ${PN} || die "disbin failed"
132
133 dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
134 README README.security REWARD SIZE \
135 SPEED TODO TUNING || die "dodoc failed"
136 newdoc ${PN}.conf ${PN}.conf.example
137
138 docinto security
139 dodoc SECURITY/* || die "dodoc failed"
140
141 insinto "/usr/share/doc/${PF}/examples"
142 doins -r EXAMPLE/* || die "doins faileD"
143
144 insinto /etc/${PN}
145 newins ${PN}.conf{,.example}
146
147 insinto /etc/logrotate.d
148 newins "${FILESDIR}/${PN}.logrotate" ${PN}
149
150 if use xinetd ; then
151 insinto /etc/xinetd.d
152 newins "${FILESDIR}/${PN}.xinetd" ${PN}
153 fi
154
155 newinitd "${FILESDIR}/${PN}.init" ${PN}
156
157 keepdir /usr/share/${PN}/empty
158
159 exeinto /usr/libexec
160 doexe "${FILESDIR}/vsftpd-checkconfig.sh"
161 systemd_dounit "${FILESDIR}/${PN}.service"
162 systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
163 systemd_dounit "${FILESDIR}/${PN}.socket"
164 }
165
166 pkg_preinst() {
167 # If we use xinetd, then we set listen=NO
168 # so that our default config works under xinetd - fixes #78347
169 if use xinetd ; then
170 sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
171 fi
172 }
173
174 pkg_postinst() {
175 einfo "vsftpd openRC init script can now be multiplexed."
176 einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
177 einfo "If you symlink the init script to another one, say vsftpd.foo"
178 einfo "then that uses /etc/vsftpd/foo.conf instead."
179 einfo
180 einfo "Example:"
181 einfo " cd /etc/init.d"
182 einfo " ln -s vsftpd vsftpd.foo"
183 einfo "You can now treat vsftpd.foo like any other service"
184 }