1 |
voyageur 09/09/08 16:27:18 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: proftpd-1.3.3_rc1.ebuild |
5 |
Log: |
6 |
Bump to 1.3.3_rc1, ebuild rewritten by Bernd Lommerzheim <bernd@×××××××××××.com> in bug #276371, with lots of enhancements |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.10 net-ftp/proftpd/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/metadata.xml?rev=1.10&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/metadata.xml?rev=1.10&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/metadata.xml?r1=1.9&r2=1.10 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/metadata.xml,v |
19 |
retrieving revision 1.9 |
20 |
retrieving revision 1.10 |
21 |
diff -u -r1.9 -r1.10 |
22 |
--- metadata.xml 21 Aug 2008 22:45:39 -0000 1.9 |
23 |
+++ metadata.xml 8 Sep 2009 16:27:17 -0000 1.10 |
24 |
@@ -13,14 +13,21 @@ |
25 |
<flag name='authfile'>Enable support for the auth-file module</flag> |
26 |
<flag name='ban'>Enable support for the mod_ban module</flag> |
27 |
<flag name='case'>Enable support for the mod_case module</flag> |
28 |
+ <flag name='ctrls'>Enable support for the mod_ctrls and mod_ctrls_admin modules</flag> |
29 |
<flag name='deflate'>Enable support for the mod_deflate module</flag> |
30 |
+ <flag name='exec'>Enable support for the mod_exec module. WARNING: this could be a security risk</flag> |
31 |
+ <flag name='ident'>Enable support for the mod_ident module</flag> |
32 |
<flag name='ifsession'>Enable support for the ifsession module</flag> |
33 |
<flag name='noauthunix'>Disable support for the auth-unix module</flag> |
34 |
<flag name='opensslcrypt'>Enable support for OpenSSL crypto</flag> |
35 |
+ <flag name='ratio'>Enable support for the mod_ratio module</flag> |
36 |
+ <flag name='readme'>Enable support for the mod_readme module</flag> |
37 |
<flag name='rewrite'>Enable support for the rewrite module</flag> |
38 |
<flag name='shaper'>Enable support for the mod_shaper module</flag> |
39 |
+ <flag name='sftp'>Enable support for the mod_sftp module and optionally mod_sftp_sql and mod_sftp_pam if matching USE flags are enabled</flag> |
40 |
<flag name='sitemisc'>Enable support for the sitemisc module</flag> |
41 |
<flag name='softquota'>Enable support for the quotatab module</flag> |
42 |
+ <flag name='trace'>Build with trace support. Should not be enabled on production servers</flag> |
43 |
<flag name='vroot'>Enable support for the virtual root module</flag> |
44 |
</use> |
45 |
</pkgmetadata> |
46 |
|
47 |
|
48 |
|
49 |
1.206 net-ftp/proftpd/ChangeLog |
50 |
|
51 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.206&view=markup |
52 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.206&content-type=text/plain |
53 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?r1=1.205&r2=1.206 |
54 |
|
55 |
Index: ChangeLog |
56 |
=================================================================== |
57 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v |
58 |
retrieving revision 1.205 |
59 |
retrieving revision 1.206 |
60 |
diff -u -r1.205 -r1.206 |
61 |
--- ChangeLog 7 Sep 2009 16:46:32 -0000 1.205 |
62 |
+++ ChangeLog 8 Sep 2009 16:27:17 -0000 1.206 |
63 |
@@ -1,6 +1,14 @@ |
64 |
# ChangeLog for net-ftp/proftpd |
65 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
66 |
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.205 2009/09/07 16:46:32 voyageur Exp $ |
67 |
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.206 2009/09/08 16:27:17 voyageur Exp $ |
68 |
+ |
69 |
+*proftpd-1.3.3_rc1 (08 Sep 2009) |
70 |
+ |
71 |
+ 08 Sep 2009; Bernard Cafarelli <voyageur@g.o> |
72 |
+ +proftpd-1.3.3_rc1.ebuild, +files/proftpd.conf.sample, +files/proftpd.rc7, |
73 |
+ metadata.xml: |
74 |
+ Bump to 1.3.3_rc1, ebuild rewritten by Bernd Lommerzheim |
75 |
+ <bernd@×××××××××××.com> in bug #276371, with lots of enhancements! |
76 |
|
77 |
*proftpd-1.3.2a (07 Sep 2009) |
78 |
|
79 |
|
80 |
|
81 |
|
82 |
1.1 net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild |
83 |
|
84 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild?rev=1.1&view=markup |
85 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild?rev=1.1&content-type=text/plain |
86 |
|
87 |
Index: proftpd-1.3.3_rc1.ebuild |
88 |
=================================================================== |
89 |
# Copyright 1999-2009 Gentoo Foundation |
90 |
# Distributed under the terms of the GNU General Public License v2 |
91 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild,v 1.1 2009/09/08 16:27:17 voyageur Exp $ |
92 |
|
93 |
EAPI="2" |
94 |
inherit autotools eutils |
95 |
|
96 |
CASE_VER="0.3" |
97 |
CLAMAV_VER="0.11rc" |
98 |
DEFLATE_VER="0.3.3" |
99 |
GSS_VER="1.3.2" |
100 |
VROOT_VER="0.8.5" |
101 |
|
102 |
DESCRIPTION="An advanced and very configurable FTP server." |
103 |
HOMEPAGE="http://www.proftpd.org/ |
104 |
http://www.castaglia.org/proftpd/ |
105 |
http://www.thrallingpenguin.com/resources/mod_clamav.htm |
106 |
http://gssmod.sourceforge.net/" |
107 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
108 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) |
109 |
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) |
110 |
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) |
111 |
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz ) |
112 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" |
113 |
LICENSE="GPL-2" |
114 |
|
115 |
SLOT="0" |
116 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
117 |
IUSE="acl authfile ban +caps case clamav ctrls deflate doc exec hardened ifsession +ident ipv6 kerberos ldap mysql ncurses nls pam postgres radius ratio readme rewrite selinux sftp shaper sitemisc softquota +ssl tcpd trace vroot xinetd" |
118 |
|
119 |
DEPEND="acl? ( sys-apps/acl sys-apps/attr ) |
120 |
caps? ( sys-libs/libcap ) |
121 |
clamav? ( app-antivirus/clamav ) |
122 |
kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) ) |
123 |
ldap? ( net-nds/openldap ) |
124 |
mysql? ( virtual/mysql ) |
125 |
ncurses? ( sys-libs/ncurses ) |
126 |
sftp? ( dev-libs/openssl ) |
127 |
ssl? ( dev-libs/openssl ) |
128 |
pam? ( virtual/pam ) |
129 |
postgres? ( virtual/postgresql-base ) |
130 |
tcpd? ( sys-apps/tcp-wrappers ) |
131 |
xinetd? ( virtual/inetd )" |
132 |
RDEPEND="${DEPEND} |
133 |
net-ftp/ftpbase |
134 |
selinux? ( sec-policy/selinux-ftpd )" |
135 |
|
136 |
S="${WORKDIR}/${P/_/}" |
137 |
|
138 |
__prepare_plugin() { |
139 |
mv "${WORKDIR}"/$1/$1.c contrib |
140 |
mv "${WORKDIR}"/$1/$1.html doc/contrib |
141 |
rm -rf "${WORKDIR}"/$1 |
142 |
} |
143 |
|
144 |
src_prepare() { |
145 |
use case && __prepare_plugin mod_case |
146 |
if use clamav ; then |
147 |
mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib |
148 |
epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch |
149 |
rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER} |
150 |
fi |
151 |
use deflate && __prepare_plugin mod_deflate |
152 |
use vroot && __prepare_plugin mod_vroot |
153 |
|
154 |
# Fix MySQL includes |
155 |
sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c |
156 |
|
157 |
# Manipulate build system |
158 |
sed -i -e "s/utils install-conf install/utils install/g" Makefile.in |
159 |
sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in |
160 |
sed -e "/libtool\.m4/q" aclocal.m4 > acinclude.m4 |
161 |
rm -f aclocal.m4 |
162 |
eautoreconf |
163 |
} |
164 |
|
165 |
src_configure() { |
166 |
local myconf mylibs mymodules |
167 |
|
168 |
use acl && mymodules="${mymodules}:mod_facl" |
169 |
use ban && mymodules="${mymodules}:mod_ban" |
170 |
use case && mymodules="${mymodules}:mod_case" |
171 |
use clamav && mymodules="${mymodules}:mod_clamav" |
172 |
use ctrls && mymodules="${mymodules}:mod_ctrls_admin" |
173 |
use deflate && mymodules="${mymodules}:mod_deflate" |
174 |
use exec && mymodules="${mymodules}:mod_exec" |
175 |
if use kerberos ; then |
176 |
cd "${WORKDIR}"/mod_gss-${GSS_VER} |
177 |
if has_version app-crypt/mit-krb5 ; then |
178 |
econf --enable-mit |
179 |
else |
180 |
econf --enable-heimdal |
181 |
fi |
182 |
mv mod_{auth_gss,gss}.c "${S}"/contrib |
183 |
mv mod_gss.h "${S}"/include |
184 |
mv README.mod_{authgss,gss} "${S}" |
185 |
mv mod_gss.html "${S}"/doc/contrib |
186 |
mv rfc{1509,2228}.txt "${S}"/doc/rfc |
187 |
cd "${S}" |
188 |
rm -rf "${WORKDIR}"/mod_gss-${GSS_VER} |
189 |
mymodules="${mymodules}:mod_gss:mod_auth_gss" |
190 |
fi |
191 |
if use ldap ; then |
192 |
mylibs="${mylibs} -lresolv" |
193 |
mymodules="${mymodules}:mod_ldap" |
194 |
fi |
195 |
if use mysql || use postgres ; then |
196 |
mymodules="${mymodules}:mod_sql" |
197 |
if use mysql ; then |
198 |
myconf="${myconf} --with-includes=/usr/include/mysql" |
199 |
mymodules="${mymodules}:mod_sql_mysql" |
200 |
fi |
201 |
if use postgres ; then |
202 |
myconf="${myconf} --with-includes=/usr/include/postgresql" |
203 |
mymodules="${mymodules}:mod_sql_postgres" |
204 |
fi |
205 |
fi |
206 |
if use ssl || use sftp; then |
207 |
CFLAGS="${CFLAGS} -DHAVE_OPENSSL" |
208 |
myconf="${myconf} --with-includes=/usr/include/openssl" |
209 |
myconf="${myconf} --enable-openssl" |
210 |
mylibs="${mylibs} -lcrypto" |
211 |
fi |
212 |
use radius && mymodules="${mymodules}:mod_radius" |
213 |
use ratio && mymodules="${mymodules}:mod_ratio" |
214 |
use readme && mymodules="${mymodules}:mod_readme" |
215 |
use rewrite && mymodules="${mymodules}:mod_rewrite" |
216 |
if use sftp ; then |
217 |
mymodules="${mymodules}:mod_sftp" |
218 |
use pam && mymodules="${mymodules}:mod_sftp_pam" |
219 |
if use mysql || use postgres ; then |
220 |
mymodules="${mymodules}:mod_sftp_sql" |
221 |
fi |
222 |
fi |
223 |
use shaper && mymodules="${mymodules}:mod_shaper" |
224 |
use sitemisc && mymodules="${mymodules}:mod_site_misc" |
225 |
if use softquota ; then |
226 |
mymodules="${mymodules}:mod_quotatab:mod_quotatab_file" |
227 |
use ldap && mymodules="${mymodules}:mod_quotatab_ldap" |
228 |
use radius && mymodules="${mymodules}:mod_quotatab_radius" |
229 |
if use mysql || use postgres ; then |
230 |
mymodules="${mymodules}:mod_quotatab_sql" |
231 |
fi |
232 |
fi |
233 |
use ssl && mymodules="${mymodules}:mod_tls:mod_tls_shmcache" |
234 |
use tcpd && mymodules="${mymodules}:mod_wrap" |
235 |
use vroot && mymodules="${mymodules}:mod_vroot" |
236 |
# mod_ifsession needs to be the last module in the mymodules list. |
237 |
use ifsession && mymodules="${mymodules}:mod_ifsession" |
238 |
|
239 |
[ ! -z ${mymodules} ] && myconf="${myconf} --with-modules=${mymodules:1}" |
240 |
LIBS="${mylibs}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \ |
241 |
--sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow \ |
242 |
--enable-ctrls \ |
243 |
$(use_enable acl facl) \ |
244 |
$(use_enable authfile auth-file) \ |
245 |
$(use_enable caps cap) \ |
246 |
$(use_enable ident) \ |
247 |
$(use_enable ipv6) \ |
248 |
$(use_enable ncurses) \ |
249 |
$(use_enable nls) \ |
250 |
$(use_enable trace) \ |
251 |
$(use_enable pam auth-pam) \ |
252 |
${myconf} || die "econf failed" |
253 |
} |
254 |
|
255 |
src_install() { |
256 |
emake DESTDIR="${D}" install || die "emake install failed" |
257 |
|
258 |
keepdir /var/run/proftpd |
259 |
newinitd "${FILESDIR}"/proftpd.rc7 proftpd |
260 |
if use xinetd ; then |
261 |
insinto /etc/xinetd.d |
262 |
newins "${FILESDIR}"/proftpd.xinetd proftpd |
263 |
fi |
264 |
insinto /etc/proftpd |
265 |
doins "${FILESDIR}"/proftpd.conf.sample |
266 |
|
267 |
dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES |
268 |
if use doc ; then |
269 |
dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html |
270 |
docinto rfc |
271 |
dodoc doc/rfc/*.txt |
272 |
fi |
273 |
} |
274 |
|
275 |
pkg_postinst() { |
276 |
if use mysql && use postgres ; then |
277 |
elog "ProFTPD has been built with the MySQL and PostgreSQL modules." |
278 |
elog "You can use the 'SQLBackend' directive to specify the used SQL" |
279 |
elog "backend. Without this directive the default backend is MySQL." |
280 |
fi |
281 |
if use exec; then |
282 |
ewarn "You have enabled the mod_exec module. This can be a security risk," |
283 |
ewarn "as detailed in documentation:" |
284 |
ewarn "Use of this module allows for such external programs to be executed, and also" |
285 |
ewarn "opens up the server to the mentioned possibilities of compromise or disclosure" |
286 |
ewarn "via those programs." |
287 |
ewarn "YOU HAVE BEEN WARNED" |
288 |
ewarn "USE AT YOUR OWN RISK" |
289 |
fi |
290 |
} |