1 |
voyageur 09/09/07 16:46:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: proftpd-1.3.2a.ebuild |
5 |
Removed: proftpd-1.3.1.ebuild proftpd-1.3.2_rc2-r2.ebuild |
6 |
proftpd-1.3.1_rc2-r3.ebuild |
7 |
proftpd-1.3.2_rc2.ebuild proftpd-1.3.2.ebuild |
8 |
proftpd-1.3.2-r1.ebuild proftpd-1.3.2_rc2-r1.ebuild |
9 |
proftpd-1.3.1-r1.ebuild |
10 |
Log: |
11 |
Remove old versions, bump to 1.3.2a (with some modules), thanks to Bernd Lommerzheim <bernd@×××××××××××.com> in bug #276371. Also fix bug #280150, updating mit-krb5 dependency |
12 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
13 |
|
14 |
Revision Changes Path |
15 |
1.205 net-ftp/proftpd/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.205&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.205&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?r1=1.204&r2=1.205 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v |
24 |
retrieving revision 1.204 |
25 |
retrieving revision 1.205 |
26 |
diff -u -r1.204 -r1.205 |
27 |
--- ChangeLog 2 May 2009 15:57:27 -0000 1.204 |
28 |
+++ ChangeLog 7 Sep 2009 16:46:32 -0000 1.205 |
29 |
@@ -1,6 +1,25 @@ |
30 |
# ChangeLog for net-ftp/proftpd |
31 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.204 2009/05/02 15:57:27 jer Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.205 2009/09/07 16:46:32 voyageur Exp $ |
34 |
+ |
35 |
+*proftpd-1.3.2a (07 Sep 2009) |
36 |
+ |
37 |
+ 07 Sep 2009; Bernard Cafarelli <voyageur@g.o> |
38 |
+ -proftpd-1.3.1_rc2-r3.ebuild, -proftpd-1.3.1.ebuild, |
39 |
+ -proftpd-1.3.1-r1.ebuild, -files/proftpd-1.3.1-CVE-2008-4242.patch, |
40 |
+ -files/proftpd-1.3.1-bug208840.patch, |
41 |
+ -files/proftpd-1.3.1-bug218850.patch, |
42 |
+ -files/proftpd-1.3.1_rc2-bug164612.patch, |
43 |
+ -files/proftpd-1.3.1_rc2-bug167003.patch, |
44 |
+ -files/proftpd-1.3.1_rc2-bug175082.patch, |
45 |
+ -files/proftpd-1.3.1_rc2-bug178866.patch, |
46 |
+ -files/proftpd-1.3.1_rc2-bug181712.patch, -proftpd-1.3.2_rc2.ebuild, |
47 |
+ -proftpd-1.3.2_rc2-r1.ebuild, -proftpd-1.3.2_rc2-r2.ebuild, |
48 |
+ -proftpd-1.3.2.ebuild, -proftpd-1.3.2-r1.ebuild, |
49 |
+ -files/proftpd-1.3.2_rc2-CVE-2008-4242.patch, +proftpd-1.3.2a.ebuild: |
50 |
+ Remove old versions, bump to 1.3.2a (with some modules), thanks to Bernd |
51 |
+ Lommerzheim <bernd@×××××××××××.com> in bug #276371. Also fix bug #280150, |
52 |
+ updating mit-krb5 dependency |
53 |
|
54 |
02 May 2009; Jeroen Roovers <jer@g.o> proftpd-1.3.2-r2.ebuild: |
55 |
Stable for HPPA (bug #264370). |
56 |
|
57 |
|
58 |
|
59 |
1.1 net-ftp/proftpd/proftpd-1.3.2a.ebuild |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2a.ebuild?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2a.ebuild?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: proftpd-1.3.2a.ebuild |
65 |
=================================================================== |
66 |
# Copyright 1999-2009 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2a.ebuild,v 1.1 2009/09/07 16:46:32 voyageur Exp $ |
69 |
|
70 |
inherit eutils flag-o-matic toolchain-funcs autotools |
71 |
|
72 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
73 |
|
74 |
IUSE="acl authfile ban case clamav deflate hardened ifsession ipv6 kerberos ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd" |
75 |
|
76 |
CASE_VER="0.3" |
77 |
CLAMAV_VER="0.11rc" |
78 |
DEFLATE_VER="0.3.3" |
79 |
MODGSS_VER="1.3.2" |
80 |
SHAPER_VER="0.6.5" |
81 |
VROOT_VER="0.8.3" |
82 |
|
83 |
DESCRIPTION="An advanced and very configurable FTP server." |
84 |
|
85 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
86 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) |
87 |
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) |
88 |
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) |
89 |
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MODGSS_VER}.tar.gz ) |
90 |
shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz ) |
91 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" |
92 |
|
93 |
HOMEPAGE="http://www.proftpd.org/ |
94 |
http://www.castaglia.org/proftpd/ |
95 |
http://www.thrallingpenguin.com/resources/mod_clamav.htm |
96 |
http://gssmod.sourceforge.net" |
97 |
|
98 |
SLOT="0" |
99 |
LICENSE="GPL-2" |
100 |
|
101 |
DEPEND="acl? ( sys-apps/acl sys-apps/attr ) |
102 |
clamav? ( app-antivirus/clamav ) |
103 |
kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) ) |
104 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
105 |
mysql? ( virtual/mysql ) |
106 |
ncurses? ( sys-libs/ncurses ) |
107 |
opensslcrypt? ( >=dev-libs/openssl-0.9.6f ) |
108 |
pam? ( virtual/pam ) |
109 |
postgres? ( virtual/postgresql-base ) |
110 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
111 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 ) |
112 |
xinetd? ( virtual/inetd )" |
113 |
|
114 |
RDEPEND="${DEPEND} |
115 |
net-ftp/ftpbase |
116 |
selinux? ( sec-policy/selinux-ftpd )" |
117 |
|
118 |
S="${WORKDIR}/${P/_/}" |
119 |
|
120 |
pkg_setup() { |
121 |
# Add the proftpd user to make the default config |
122 |
# work out-of-the-box |
123 |
enewgroup proftpd |
124 |
enewuser proftpd -1 -1 -1 proftpd |
125 |
} |
126 |
|
127 |
src_unpack() { |
128 |
unpack ${P/_/}.tar.bz2 |
129 |
cd "${S}" |
130 |
|
131 |
# Fix parallel build (committed upstream in 1.3.3rc1) |
132 |
epatch "${FILESDIR}"/${PN}-1.3.2-parallel-build.patch |
133 |
# Fix mysql include when both backends are enabled |
134 |
epatch "${FILESDIR}"/${PN}-1.3.2-mysql-include.patch |
135 |
# Do not use bundled libltdl when compiling mod_dso |
136 |
epatch "${FILESDIR}"/${PN}-1.3.2-system-libltdl.patch |
137 |
|
138 |
# Fix stripping of files |
139 |
sed -e "s| @INSTALL_STRIP@||g" -i Make* |
140 |
|
141 |
if use case ; then |
142 |
unpack ${PN}-mod-case-${CASE_VER}.tar.gz |
143 |
cp -f mod_case/mod_case.c contrib/ |
144 |
cp -f mod_case/mod_case.html doc/ |
145 |
fi |
146 |
|
147 |
if use clamav ; then |
148 |
unpack mod_clamav-${CLAMAV_VER}.tar.gz |
149 |
cp -f mod_clamav-${CLAMAV_VER}/mod_clamav.* contrib/ |
150 |
epatch mod_clamav-${CLAMAV_VER}/${PN}.patch |
151 |
fi |
152 |
|
153 |
if use deflate ; then |
154 |
unpack ${PN}-mod-deflate-${DEFLATE_VER}.tar.gz |
155 |
cp -f mod_deflate/mod_deflate.c contrib/ |
156 |
cp -f mod_deflate/mod_deflate.html doc/ |
157 |
fi |
158 |
|
159 |
if use kerberos ; then |
160 |
unpack mod_gss-${MODGSS_VER}.tar.gz |
161 |
fi |
162 |
|
163 |
if use shaper ; then |
164 |
unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz |
165 |
cp -f mod_shaper/mod_shaper.c contrib/ |
166 |
cp -f mod_shaper/mod_shaper.html doc/ |
167 |
fi |
168 |
|
169 |
if use vroot ; then |
170 |
unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz |
171 |
cp -f mod_vroot/mod_vroot.c contrib/ |
172 |
cp -f mod_vroot/mod_vroot.html doc/ |
173 |
fi |
174 |
|
175 |
# Fix bug #221275 |
176 |
# extract custom PR_ macros from aclocal.m4 to acinclude.m4 |
177 |
# and delete the provided aclocal.m4 before running autoreconf |
178 |
einfo "Extract custom m4 macros from aclocal.m4 ..." |
179 |
sed -e '/libtool\.m4/q' aclocal.m4 > acinclude.m4 |
180 |
rm -f aclocal.m4 |
181 |
|
182 |
eautoreconf |
183 |
} |
184 |
|
185 |
src_compile() { |
186 |
addpredict /etc/krb5.conf |
187 |
local modules myconf mylibs |
188 |
|
189 |
modules="mod_ratio:mod_readme:mod_ctrls_admin" |
190 |
use acl && modules="${modules}:mod_facl" |
191 |
use ban && modules="${modules}:mod_ban" |
192 |
use case && modules="${modules}:mod_case" |
193 |
use clamav && modules="${modules}:mod_clamav" |
194 |
use deflate && modules="${modules}:mod_deflate" |
195 |
use pam && modules="${modules}:mod_auth_pam" |
196 |
use radius && modules="${modules}:mod_radius" |
197 |
use rewrite && modules="${modules}:mod_rewrite" |
198 |
use shaper && modules="${modules}:mod_shaper" |
199 |
use sitemisc && modules="${modules}:mod_site_misc" |
200 |
use ssl && modules="${modules}:mod_tls" |
201 |
use tcpd && modules="${modules}:mod_wrap" |
202 |
use vroot && modules="${modules}:mod_vroot" |
203 |
|
204 |
# pam needs to be explicitely disabled |
205 |
use pam || myconf="${myconf} --enable-auth-pam=no" |
206 |
|
207 |
if use ldap ; then |
208 |
modules="${modules}:mod_ldap" |
209 |
mylibs="${mylibs} -lresolv" |
210 |
use ssl && CFLAGS="${CFLAGS} -DUSE_LDAP_TLS" |
211 |
fi |
212 |
|
213 |
if use opensslcrypt ; then |
214 |
myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl" |
215 |
mylibs="${mylibs} -lcrypto" |
216 |
CFLAGS="${CFLAGS} -DHAVE_OPENSSL" |
217 |
fi |
218 |
|
219 |
use nls && myconf="${myconf} --enable-nls" |
220 |
|
221 |
if use mysql || use postgres ; then |
222 |
modules="${modules}:mod_sql" |
223 |
if use mysql ; then |
224 |
modules="${modules}:mod_sql_mysql" |
225 |
myconf="${myconf} --with-includes=/usr/include/mysql" |
226 |
fi |
227 |
if use postgres ; then |
228 |
modules="${modules}:mod_sql_postgres" |
229 |
myconf="${myconf} --with-includes=/usr/include/postgresql" |
230 |
fi |
231 |
fi |
232 |
|
233 |
if use softquota ; then |
234 |
modules="${modules}:mod_quotatab" |
235 |
if use mysql || use postgres ; then |
236 |
modules="${modules}:mod_quotatab_sql" |
237 |
fi |
238 |
if use radius ; then |
239 |
modules="${modules}:mod_quotatab_radius" |
240 |
fi |
241 |
if use ldap ; then |
242 |
modules="${modules}:mod_quotatab_file:mod_quotatab_ldap" |
243 |
else |
244 |
modules="${modules}:mod_quotatab_file" |
245 |
fi |
246 |
fi |
247 |
|
248 |
# mod_ifsession should be the last module in the --with-modules list |
249 |
# see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation |
250 |
use ifsession && modules="${modules}:mod_ifsession" |
251 |
|
252 |
# bug #30359 |
253 |
use hardened && echo > lib/libcap/cap_sys.c |
254 |
gcc-specs-pie && echo > lib/libcap/cap_sys.c |
255 |
|
256 |
if use noauthunix ; then |
257 |
myconf="${myconf} --disable-auth-unix" |
258 |
else |
259 |
myconf="${myconf} --enable-auth-unix" |
260 |
fi |
261 |
|
262 |
if use kerberos ; then |
263 |
cd "${S}"/mod_gss-${MODGSS_VER} |
264 |
# Generate source files for installed virtual/krb5 provider |
265 |
if has_version app-crypt/mit-krb5; then |
266 |
econf --enable-mit |
267 |
else |
268 |
econf --enable-heimdal |
269 |
fi |
270 |
cd "${S}" |
271 |
# copy the generated files |
272 |
cp -f mod_gss-${MODGSS_VER}/mod_gss.c contrib/ |
273 |
cp -f mod_gss-${MODGSS_VER}/mod_gss.h include/ |
274 |
cp -f mod_gss-${MODGSS_VER}/mod_auth_gss.c contrib/ |
275 |
|
276 |
myconf="${myconf} --enable-dso --with-shared=mod_gss:mod_auth_gss" |
277 |
fi |
278 |
|
279 |
LIBS="${mylibs}" econf \ |
280 |
--sbindir=/usr/sbin \ |
281 |
--localstatedir=/var/run \ |
282 |
--sysconfdir=/etc/proftpd \ |
283 |
--enable-shadow \ |
284 |
--enable-autoshadow \ |
285 |
--enable-ctrls \ |
286 |
--with-modules=${modules} \ |
287 |
$(use_enable acl facl) \ |
288 |
$(use_enable authfile auth-file) \ |
289 |
$(use_enable ipv6) \ |
290 |
$(use_enable ncurses) \ |
291 |
${myconf} || die "econf failed" |
292 |
|
293 |
emake || die "emake failed" |
294 |
} |
295 |
|
296 |
src_install() { |
297 |
emake DESTDIR="${D}" install || die "emake install failed" |
298 |
|
299 |
keepdir /var/run/proftpd |
300 |
|
301 |
dodoc "${FILESDIR}/proftpd.conf" \ |
302 |
COPYING CREDITS ChangeLog NEWS README* \ |
303 |
doc/license.txt |
304 |
dohtml doc/*.html |
305 |
dohtml doc/howto/*.html |
306 |
|
307 |
docinto rfc |
308 |
dodoc doc/rfc/*.txt |
309 |
|
310 |
mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib" |
311 |
|
312 |
insinto /etc/proftpd |
313 |
newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample |
314 |
|
315 |
if use xinetd ; then |
316 |
insinto /etc/xinetd.d |
317 |
newins "${FILESDIR}/proftpd.xinetd" proftpd |
318 |
fi |
319 |
|
320 |
newinitd "${FILESDIR}/proftpd.rc6" proftpd |
321 |
} |
322 |
|
323 |
pkg_postinst() { |
324 |
elog |
325 |
elog "You can find the config files in /etc/proftpd" |
326 |
elog |
327 |
ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp." |
328 |
ewarn "Remember to change that in the configuration file." |
329 |
ewarn |
330 |
if use mysql && use postgres ; then |
331 |
ewarn "ProFTPD has been build with the MySQL and PostgreSQL modules." |
332 |
ewarn "You can use the 'SQLBackend' directive to specify the used SQL" |
333 |
ewarn "backend. Without this directive the default backend is MySQL." |
334 |
ewarn |
335 |
fi |
336 |
if use clamav ; then |
337 |
ewarn "mod_clamav was updated to a new version, which uses Clamd" |
338 |
ewarn "only for virus scanning, so you'll have to set Clamd up" |
339 |
ewarn "and start it, also re-check the mod_clamav docs." |
340 |
ewarn |
341 |
fi |
342 |
} |