1 |
chtekk 08/04/17 07:57:57 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: proftpd-1.3.1.ebuild |
5 |
Removed: proftpd-1.3.1_rc3.ebuild |
6 |
Log: |
7 |
Version bump to ProFTPd 1.3.1. |
8 |
(Portage version: 2.1.5_rc4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.167 net-ftp/proftpd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.167&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.167&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?r1=1.166&r2=1.167 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v |
20 |
retrieving revision 1.166 |
21 |
retrieving revision 1.167 |
22 |
diff -u -r1.166 -r1.167 |
23 |
--- ChangeLog 11 Nov 2007 15:21:30 -0000 1.166 |
24 |
+++ ChangeLog 17 Apr 2008 07:57:56 -0000 1.167 |
25 |
@@ -1,6 +1,18 @@ |
26 |
# ChangeLog for net-ftp/proftpd |
27 |
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.166 2007/11/11 15:21:30 armin76 Exp $ |
29 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.167 2008/04/17 07:57:56 chtekk Exp $ |
31 |
+ |
32 |
+*proftpd-1.3.1 (17 Apr 2008) |
33 |
+ |
34 |
+ 17 Apr 2008; Luca Longinotti <chtekk@g.o> |
35 |
+ -files/proftpd-1.3.1_rc3-mod_mysql.patch, files/proftpd.rc6, |
36 |
+ -proftpd-1.3.1_rc3.ebuild, +proftpd-1.3.1.ebuild: |
37 |
+ Version bump to ProFTPd 1.3.1. Added reload command to init-script as well |
38 |
+ as improved configuration checking, fixes bug #97896. Added new modules: |
39 |
+ mod_ban, mod_case, mod_deflate, mod_gzipfs, fixes bug #146888 and bug |
40 |
+ #177991. Added support for LDAP TLS, fixes bug #203598. Updated mod_clamav |
41 |
+ to 0.7, fixes bug #212601. Cleaned up ebuild and added support for |
42 |
+ softquotas via Radius. |
43 |
|
44 |
11 Nov 2007; Raúl Porcel <armin76@g.o> proftpd-1.3.1_rc3.ebuild: |
45 |
Add ~ia64 wrt #198769 |
46 |
|
47 |
|
48 |
|
49 |
1.1 net-ftp/proftpd/proftpd-1.3.1.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: proftpd-1.3.1.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2008 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1.ebuild,v 1.1 2008/04/17 07:57:56 chtekk Exp $ |
59 |
|
60 |
inherit eutils flag-o-matic toolchain-funcs |
61 |
|
62 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
63 |
|
64 |
IUSE="acl authfile ban case clamav deflate gzipfs hardened ifsession ipv6 ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd" |
65 |
|
66 |
CASE_VER="0.3" |
67 |
CLAMAV_VER="0.7" |
68 |
DEFLATE_VER="0.3" |
69 |
GZIPFS_VER="0.9rc4" |
70 |
SHAPER_VER="0.6.3" |
71 |
VROOT_VER="0.7.2" |
72 |
|
73 |
DESCRIPTION="An advanced and very configurable FTP server." |
74 |
|
75 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
76 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) |
77 |
clamav? ( http://www.thrallingpenguin.com/resources/mod_clamav-${CLAMAV_VER}.tar.gz ) |
78 |
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) |
79 |
gzipfs? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-gzipfs-${GZIPFS_VER}.tar.gz ) |
80 |
shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz ) |
81 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" |
82 |
|
83 |
HOMEPAGE="http://www.proftpd.org/ |
84 |
http://www.castaglia.org/proftpd/ |
85 |
http://www.thrallingpenguin.com/resources/mod_clamav.htm" |
86 |
|
87 |
SLOT="0" |
88 |
LICENSE="GPL-2" |
89 |
|
90 |
DEPEND="acl? ( sys-apps/acl sys-apps/attr ) |
91 |
clamav? ( app-antivirus/clamav ) |
92 |
gzipfs? ( sys-libs/zlib ) |
93 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
94 |
mysql? ( virtual/mysql ) |
95 |
ncurses? ( sys-libs/ncurses ) |
96 |
opensslcrypt? ( >=dev-libs/openssl-0.9.6f ) |
97 |
pam? ( virtual/pam ) |
98 |
postgres? ( virtual/postgresql-base ) |
99 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
100 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 ) |
101 |
xinetd? ( virtual/inetd )" |
102 |
|
103 |
RDEPEND="${DEPEND} |
104 |
net-ftp/ftpbase |
105 |
selinux? ( sec-policy/selinux-ftpd )" |
106 |
|
107 |
S="${WORKDIR}/${P/_/}" |
108 |
|
109 |
pkg_setup() { |
110 |
# Add the proftpd user to make the default config |
111 |
# work out-of-the-box |
112 |
enewgroup proftpd |
113 |
enewuser proftpd -1 -1 -1 proftpd |
114 |
} |
115 |
|
116 |
src_unpack() { |
117 |
unpack ${P/_/}.tar.bz2 |
118 |
|
119 |
cd "${S}" |
120 |
|
121 |
# Fix stripping of files |
122 |
sed -e "s| @INSTALL_STRIP@||g" -i Make* |
123 |
|
124 |
if use case ; then |
125 |
unpack ${PN}-mod-case-${CASE_VER}.tar.gz |
126 |
cp -f mod_case/mod_case.c contrib/ |
127 |
cp -f mod_case/mod_case.html doc/ |
128 |
fi |
129 |
|
130 |
if use clamav ; then |
131 |
unpack mod_clamav-${CLAMAV_VER}.tar.gz |
132 |
cp -f mod_clamav-${CLAMAV_VER}/mod_clamav.* contrib/ |
133 |
epatch mod_clamav-${CLAMAV_VER}/${PN}.patch |
134 |
fi |
135 |
|
136 |
if use deflate ; then |
137 |
unpack ${PN}-mod-deflate-${DEFLATE_VER}.tar.gz |
138 |
cp -f mod_deflate/mod_deflate.c contrib/ |
139 |
cp -f mod_deflate/mod_deflate.html doc/ |
140 |
fi |
141 |
|
142 |
if use gzipfs ; then |
143 |
unpack ${PN}-mod-gzipfs-${GZIPFS_VER}.tar.gz |
144 |
cp -f mod_gzipfs/mod_gzipfs.c contrib/ |
145 |
cp -f mod_gzipfs/mod_gzipfs.html doc/ |
146 |
fi |
147 |
|
148 |
if use shaper ; then |
149 |
unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz |
150 |
cp -f mod_shaper/mod_shaper.c contrib/ |
151 |
cp -f mod_shaper/mod_shaper.html doc/ |
152 |
fi |
153 |
|
154 |
if use vroot ; then |
155 |
unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz |
156 |
cp -f mod_vroot/mod_vroot.c contrib/ |
157 |
cp -f mod_vroot/mod_vroot.html doc/ |
158 |
fi |
159 |
} |
160 |
|
161 |
src_compile() { |
162 |
addpredict /etc/krb5.conf |
163 |
local modules myconf |
164 |
|
165 |
modules="mod_ratio:mod_readme" |
166 |
use acl && modules="${modules}:mod_facl" |
167 |
use ban && modules="${modules}:mod_ban" |
168 |
use case && modules="${modules}:mod_case" |
169 |
use clamav && modules="${modules}:mod_clamav" |
170 |
use deflate && modules="${modules}:mod_deflate" |
171 |
use gzipfs && modules="${modules}:mod_gzipfs" |
172 |
use pam && modules="${modules}:mod_auth_pam" |
173 |
use radius && modules="${modules}:mod_radius" |
174 |
use rewrite && modules="${modules}:mod_rewrite" |
175 |
use shaper && modules="${modules}:mod_shaper" |
176 |
use sitemisc && modules="${modules}:mod_site_misc" |
177 |
use ssl && modules="${modules}:mod_tls" |
178 |
use tcpd && modules="${modules}:mod_wrap" |
179 |
use vroot && modules="${modules}:mod_vroot" |
180 |
|
181 |
# pam needs to be explicitely disabled |
182 |
use pam || myconf="${myconf} --enable-auth-pam=no" |
183 |
|
184 |
if use ldap ; then |
185 |
modules="${modules}:mod_ldap" |
186 |
append-ldflags "-lresolv" |
187 |
if use ssl ; then |
188 |
CFLAGS="${CFLAGS} -DUSE_LDAP_TLS" |
189 |
fi |
190 |
fi |
191 |
|
192 |
if use opensslcrypt ; then |
193 |
myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl" |
194 |
append-ldflags "-lcrypto" |
195 |
CFLAGS="${CFLAGS} -DHAVE_OPENSSL" |
196 |
fi |
197 |
|
198 |
if use nls ; then |
199 |
myconf="${myconf} --enable-nls" |
200 |
fi |
201 |
|
202 |
if use mysql && use postgres ; then |
203 |
ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules." |
204 |
ewarn "Presently this ebuild defaults to mysql. If you would like to" |
205 |
ewarn "change the default behaviour, merge ProFTPD with:" |
206 |
ewarn "USE='-mysql postgres' emerge proftpd" |
207 |
epause 5 |
208 |
fi |
209 |
|
210 |
if use mysql ; then |
211 |
modules="${modules}:mod_sql:mod_sql_mysql" |
212 |
myconf="${myconf} --with-includes=/usr/include/mysql" |
213 |
elif use postgres ; then |
214 |
modules="${modules}:mod_sql:mod_sql_postgres" |
215 |
myconf="${myconf} --with-includes=/usr/include/postgresql" |
216 |
fi |
217 |
|
218 |
if use softquota ; then |
219 |
modules="${modules}:mod_quotatab" |
220 |
if use mysql || use postgres ; then |
221 |
modules="${modules}:mod_quotatab_sql" |
222 |
fi |
223 |
if use radius ; then |
224 |
modules="${modules}:mod_quotatab_radius" |
225 |
fi |
226 |
if use ldap ; then |
227 |
modules="${modules}:mod_quotatab_file:mod_quotatab_ldap" |
228 |
else |
229 |
modules="${modules}:mod_quotatab_file" |
230 |
fi |
231 |
fi |
232 |
|
233 |
# mod_ifsession should be the last module in the --with-modules list |
234 |
# see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation |
235 |
use ifsession && modules="${modules}:mod_ifsession" |
236 |
|
237 |
# bug #30359 |
238 |
use hardened && echo > lib/libcap/cap_sys.c |
239 |
gcc-specs-pie && echo > lib/libcap/cap_sys.c |
240 |
|
241 |
if use noauthunix ; then |
242 |
myconf="${myconf} --disable-auth-unix" |
243 |
else |
244 |
myconf="${myconf} --enable-auth-unix" |
245 |
fi |
246 |
|
247 |
econf \ |
248 |
--sbindir=/usr/sbin \ |
249 |
--localstatedir=/var/run \ |
250 |
--sysconfdir=/etc/proftpd \ |
251 |
--enable-shadow \ |
252 |
--enable-autoshadow \ |
253 |
--enable-ctrls \ |
254 |
--with-modules=${modules} \ |
255 |
$(use_enable acl facl) \ |
256 |
$(use_enable authfile auth-file) \ |
257 |
$(use_enable ipv6) \ |
258 |
$(use_enable ncurses) \ |
259 |
${myconf} || die "econf failed" |
260 |
|
261 |
emake || die "emake failed" |
262 |
} |
263 |
|
264 |
src_install() { |
265 |
emake DESTDIR="${D}" install || die "emake install failed" |
266 |
|
267 |
keepdir /var/run/proftpd |
268 |
|
269 |
dodoc "${FILESDIR}/proftpd.conf" \ |
270 |
COPYING CREDITS ChangeLog NEWS README* \ |
271 |
doc/license.txt |
272 |
dohtml doc/*.html |
273 |
dohtml doc/howto/*.html |
274 |
|
275 |
docinto rfc |
276 |
dodoc doc/rfc/*.txt |
277 |
|
278 |
mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib" |
279 |
|
280 |
insinto /etc/proftpd |
281 |
newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample |
282 |
|
283 |
if use xinetd ; then |
284 |
insinto /etc/xinetd.d |
285 |
newins "${FILESDIR}/proftpd.xinetd" proftpd |
286 |
fi |
287 |
|
288 |
newinitd "${FILESDIR}/proftpd.rc6" proftpd |
289 |
} |
290 |
|
291 |
pkg_postinst() { |
292 |
elog |
293 |
elog "You can find the config files in /etc/proftpd" |
294 |
elog |
295 |
ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp." |
296 |
ewarn "Remember to change that in the configuration file." |
297 |
ewarn |
298 |
if use clamav ; then |
299 |
ewarn "mod_clamav was updated to a new version, which uses Clamd" |
300 |
ewarn "only for virus scanning, so you'll have to set Clamd up" |
301 |
ewarn "and start it, also re-check the mod_clamav docs." |
302 |
ewarn |
303 |
fi |
304 |
} |
305 |
|
306 |
|
307 |
|
308 |
-- |
309 |
gentoo-commits@l.g.o mailing list |