Gentoo Archives: gentoo-commits

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