Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/proftpd: ChangeLog proftpd-1.3.3a.ebuild
Date: Thu, 29 Jul 2010 21:50:45
Message-Id: 20100729215032.CA3E32CE15@corvid.gentoo.org
1 voyageur 10/07/29 21:50:32
2
3 Modified: ChangeLog
4 Added: proftpd-1.3.3a.ebuild
5 Log:
6 Version bump and fix quiet mode in init script, thanks Lommerzheim <bernd@×××××××××××.com>, bugs #314055 and #330253
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.232 net-ftp/proftpd/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.232&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.232&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/ChangeLog?r1=1.231&r2=1.232
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v
19 retrieving revision 1.231
20 retrieving revision 1.232
21 diff -u -r1.231 -r1.232
22 --- ChangeLog 23 Jun 2010 13:37:01 -0000 1.231
23 +++ ChangeLog 29 Jul 2010 21:50:32 -0000 1.232
24 @@ -1,6 +1,13 @@
25 # ChangeLog for net-ftp/proftpd
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.231 2010/06/23 13:37:01 voyageur Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.232 2010/07/29 21:50:32 voyageur Exp $
29 +
30 +*proftpd-1.3.3a (29 Jul 2010)
31 +
32 + 29 Jul 2010; Bernard Cafarelli <voyageur@g.o>
33 + +proftpd-1.3.3a.ebuild, files/proftpd.initd:
34 + Version bump and fix quiet mode in init script, thanks Lommerzheim
35 + <bernd@×××××××××××.com>, bugs #314055 and #330253
36
37 *proftpd-1.3.3-r1 (23 Jun 2010)
38
39
40
41
42 1.1 net-ftp/proftpd/proftpd-1.3.3a.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3a.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3a.ebuild?rev=1.1&content-type=text/plain
46
47 Index: proftpd-1.3.3a.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3a.ebuild,v 1.1 2010/07/29 21:50:32 voyageur Exp $
52
53 EAPI="2"
54 inherit eutils autotools
55
56 CASE_VER="0.4"
57 CLAMAV_VER="0.11rc"
58 DEFLATE_VER="0.5.4"
59 GSS_VER="1.3.3"
60 VROOT_VER="0.8.5"
61
62 DESCRIPTION="An advanced and very configurable FTP server."
63 HOMEPAGE="http://www.proftpd.org/
64 http://www.castaglia.org/proftpd/
65 http://www.thrallingpenguin.com/resources/mod_clamav.htm
66 http://gssmod.sourceforge.net/"
67 SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2
68 case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz )
69 clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz )
70 deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz )
71 kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz )
72 vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )"
73 LICENSE="GPL-2"
74
75 SLOT="0"
76 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
77 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"
78
79 DEPEND="acl? ( sys-apps/acl sys-apps/attr )
80 caps? ( sys-libs/libcap )
81 clamav? ( app-antivirus/clamav )
82 kerberos? ( virtual/krb5 )
83 ldap? ( net-nds/openldap )
84 mysql? ( virtual/mysql )
85 ncurses? ( sys-libs/ncurses )
86 pam? ( virtual/pam )
87 postgres? ( dev-db/postgresql-base )
88 sftp? ( dev-libs/openssl )
89 ssl? ( dev-libs/openssl )
90 tcpd? ( sys-apps/tcp-wrappers )
91 xinetd? ( virtual/inetd )"
92 RDEPEND="${DEPEND}
93 net-ftp/ftpbase
94 selinux? ( sec-policy/selinux-ftpd )"
95
96 S="${WORKDIR}/${P/_/}"
97
98 __prepare_module() {
99 mv "${WORKDIR}"/$1/$1.c contrib
100 mv "${WORKDIR}"/$1/$1.html doc/contrib
101 rm -rf "${WORKDIR}"/$1
102 }
103
104 pkg_setup() {
105 if [ -f "${ROOT}"/var/run/proftpd.pid ] ; then
106 eerror "Your ProFTPD server is running. In order to install this update"
107 eerror "you have to stop the running server. If you are using ProFTPD in"
108 eerror "the standalone mode you can stop the server by executing:"
109 eerror " /etc/init.d/proftpd stop"
110 eerror "If you are sure that ProFTPD is not running anymore you have to"
111 eerror "delete the /var/run/proftpd.pid file."
112 die "This update requires to stop the ProFTPD server!"
113 fi
114 }
115
116 src_prepare() {
117 use case && __prepare_module mod_case
118 if use clamav ; then
119 mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib
120 epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch
121 rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER}
122 fi
123 use deflate && __prepare_module mod_deflate
124 use vroot && __prepare_module mod_vroot
125
126 # Fix MySQL includes
127 sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c
128
129 # Manipulate build system
130 sed -i -e "s/utils install-conf install/utils install/g" Makefile.in
131 sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in
132
133 # Support new versions of mit-krb5 (Gentoo Bugs #284853, #324903)
134 if use kerberos ; then
135 cd "${WORKDIR}"/mod_gss-${GSS_VER}
136 sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in
137 sed -i -e "/ac_gss_libs/s/\-ldes425\ //" configure.in
138 eautoreconf
139 fi
140 }
141
142 src_configure() {
143 local myc myl mym
144
145 use acl && mym="${mym}:mod_facl"
146 use ban && mym="${mym}:mod_ban"
147 use case && mym="${mym}:mod_case"
148 use clamav && mym="${mym}:mod_clamav"
149 if use ctrls || use shaper ; then
150 myc="${myc} --enable-ctrls"
151 mym="${mym}:mod_ctrls_admin"
152 fi
153 use deflate && mym="${mym}:mod_deflate"
154 use exec && mym="${mym}:mod_exec"
155 if use kerberos ; then
156 cd "${WORKDIR}"/mod_gss-${GSS_VER}
157 if has_version app-crypt/mit-krb5 ; then
158 econf --enable-mit
159 else
160 econf --enable-heimdal
161 fi
162 mv mod_{auth_gss,gss}.c "${S}"/contrib
163 mv mod_gss.h "${S}"/include
164 mv README.mod_{auth_gss,gss} "${S}"
165 mv mod_gss.html "${S}"/doc/contrib
166 mv rfc{1509,2228}.txt "${S}"/doc/rfc
167 cd "${S}"
168 rm -rf "${WORKDIR}"/mod_gss-${GSS_VER}
169 mym="${mym}:mod_gss:mod_auth_gss"
170 fi
171 if use ldap ; then
172 myl="${myl} -lresolv"
173 mym="${mym}:mod_ldap"
174 fi
175 if use mysql || use postgres ; then
176 mym="${mym}:mod_sql:mod_sql_passwd"
177 if use mysql ; then
178 myc="${myc} --with-includes=/usr/include/mysql"
179 mym="${mym}:mod_sql_mysql"
180 fi
181 if use postgres ; then
182 myc="${myc} --with-includes=/usr/include/postgresql"
183 mym="${mym}:mod_sql_postgres"
184 fi
185 fi
186 if use sftp || use ssl ; then
187 CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
188 myc="${myc} --enable-openssl --with-includes=/usr/include/openssl"
189 myl="${myl} -lcrypto"
190 fi
191 use radius && mym="${mym}:mod_radius"
192 use ratio && mym="${mym}:mod_ratio"
193 use readme && mym="${mym}:mod_readme"
194 use rewrite && mym="${mym}:mod_rewrite"
195 if use sftp ; then
196 mym="${mym}:mod_sftp"
197 use pam && mym="${mym}:mod_sftp_pam"
198 if use mysql || use postgres ; then
199 mym="${mym}:mod_sftp_sql"
200 fi
201 fi
202 use shaper && mym="${mym}:mod_shaper"
203 use sitemisc && mym="${mym}:mod_site_misc"
204 if use softquota ; then
205 mym="${mym}:mod_quotatab:mod_quotatab_file"
206 use ldap && mym="${mym}:mod_quotatab_ldap"
207 use radius && mym="${mym}:mod_quotatab_radius"
208 if use mysql || use postgres ; then
209 mym="${mym}:mod_quotatab_sql"
210 fi
211 fi
212 use ssl && mym="${mym}:mod_tls:mod_tls_shmcache"
213 use tcpd && mym="${mym}:mod_wrap"
214 use vroot && mym="${mym}:mod_vroot"
215 # mod_ifsession needs to be the last module in the mym list.
216 use ifsession && mym="${mym}:mod_ifsession"
217
218 [ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}"
219 LIBS="${myl:1}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \
220 --sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow ${myc:1} \
221 $(use_enable acl facl) \
222 $(use_enable authfile auth-file) \
223 $(use_enable caps cap) \
224 $(use_enable ident) \
225 $(use_enable ipv6) \
226 $(use_enable ncurses) \
227 $(use_enable nls) \
228 $(use_enable trace) \
229 $(use_enable pam auth-pam)
230 }
231
232 src_install() {
233 emake DESTDIR="${D}" install
234
235 insinto /etc/proftpd
236 doins "${FILESDIR}"/proftpd.conf.sample
237 keepdir /var/run/proftpd
238 newinitd "${FILESDIR}"/proftpd.initd proftpd
239 if use xinetd ; then
240 insinto /etc/xinetd.d
241 newins "${FILESDIR}"/proftpd.xinetd proftpd
242 fi
243
244 dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES
245 if use doc ; then
246 dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html
247 docinto rfc
248 dodoc doc/rfc/*.txt
249 fi
250 }
251
252 pkg_postinst() {
253 if use mysql && use postgres ; then
254 elog
255 elog "ProFTPD has been built with the MySQL and PostgreSQL modules."
256 elog "You can use the 'SQLBackend' directive to specify the used SQL"
257 elog "backend. Without this directive the default backend is MySQL."
258 elog
259 fi
260 if use exec ; then
261 ewarn
262 ewarn "ProFTPD has been built with the mod_exec module. This module"
263 ewarn "can be a security risk for your server as it executes external"
264 ewarn "programs. Vulnerables in these external programs may disclose"
265 ewarn "information or even compromise your server."
266 ewarn "You have been warned! Use this module at your own risk!"
267 ewarn
268 fi
269 }