ChangeLog

# ChangeLog for net-ftp/proftpd
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.172 2008/07/16 16:00:28 chtekk Exp $

16 Jul 2008; Luca Longinotti
proftpd-1.3.1_rc2-r3.ebuild:
Fix pgsql deps.

21 May 2008; Tiziano Müller
proftpd-1.3.1_rc2-r3.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

24 Apr 2008; Luca Longinotti
+files/proftpd-1.3.1-bug218850.patch, proftpd-1.3.1.ebuild:
Fix bug #218850.

21 Apr 2008; Luca Longinotti metadata.xml:
Metadata update.

17 Apr 2008; Luca Longinotti
+files/proftpd-1.3.1-bug208840.patch, proftpd-1.3.1.ebuild:
Fix bug #208840. Remove mod_gzipfs, too old, breaks compile.

*proftpd-1.3.1 (17 Apr 2008)

17 Apr 2008; Luca Longinotti
-files/proftpd-1.3.1_rc3-mod_mysql.patch, files/proftpd.rc6,
-proftpd-1.3.1_rc3.ebuild, +proftpd-1.3.1.ebuild:
Version bump to ProFTPd 1.3.1. Added reload command to init-script as well
as improved configuration checking, fixes bug #97896. Added new modules:
mod_ban, mod_case, mod_deflate, mod_gzipfs, fixes bug #146888 and bug
#177991. Added support for LDAP TLS, fixes bug #203598. Updated mod_clamav
to 0.7, fixes bug #212601. Cleaned up ebuild and added support for
softquotas via Radius.

11 Nov 2007; Raúl Porcel proftpd-1.3.1_rc3.ebuild:
Add ~ia64 wrt #198769

23 Sep 2007; Stefaan De Roeck
+files/proftpd-1.3.1_rc3-mod_mysql.patch, proftpd-1.3.1_rc3.ebuild:
Incorporate upstream patch fixing trivial quoting mistake, bug #190316

*proftpd-1.3.1_rc3 (26 Aug 2007)

26 Aug 2007; Luca Longinotti
-proftpd-1.3.1_rc2-r1.ebuild, proftpd-1.3.1_rc2-r3.ebuild,
+proftpd-1.3.1_rc3.ebuild:
AMD64 stable of 1.3.1_rc2-r3 to get rid of the broken 1.3.1_rc2-r1.
Added 1.3.1_rc3 and updated mod_shaper to 0.6.3, fixes bug #186656.

28 Jun 2007; Tobias Scherbaum
proftpd-1.3.1_rc2-r3.ebuild:
ppc stable, bug #175082

*proftpd-1.3.1_rc2-r3 (26 Jun 2007)

26 Jun 2007; Luca Longinotti
+files/proftpd-1.3.1_rc2-bug181712.patch, -proftpd-1.3.1_rc2-r2.ebuild,
+proftpd-1.3.1_rc2-r3.ebuild:
Fix bug #181712.

11 Jun 2007; Gustavo Zacarias
proftpd-1.3.1_rc2-r2.ebuild:
Stable on sparc wrt security #175082

11 Jun 2007; Markus Rothe
proftpd-1.3.1_rc2-r2.ebuild:
Stable on ppc64; bug #175082

10 Jun 2007; Raúl Porcel
proftpd-1.3.1_rc2-r2.ebuild:
alpha/x86 stable wrt #175082

10 Jun 2007; Jeroen Roovers proftpd-1.3.1_rc2-r2.ebuild:
Stable for HPPA (bug #175082) again.

*proftpd-1.3.1_rc2-r2 (10 Jun 2007)

10 Jun 2007; Luca Longinotti
+files/proftpd-1.3.1_rc2-bug178866.patch, -proftpd-1.3.1_rc2.ebuild,
+proftpd-1.3.1_rc2-r2.ebuild:
Fixes bug #178866.

16 May 2007; Tobias Scherbaum
proftpd-1.3.1_rc2-r1.ebuild:
ppc stable, bug #175082

16 May 2007; Daniel Gryniewicz
proftpd-1.3.1_rc2-r1.ebuild:
Marked stable on amd64 for bug #175082

14 May 2007; Gustavo Zacarias
proftpd-1.3.1_rc2-r1.ebuild:
Stable on sparc wrt security #175082

14 May 2007; Jose Luis Rivero
proftpd-1.3.1_rc2-r1.ebuild:
Stable on alpha wrt security #175082

14 May 2007; Jeroen Roovers proftpd-1.3.1_rc2-r1.ebuild:
Stable for HPPA (bug #175082).

13 May 2007; Raúl Porcel
proftpd-1.3.1_rc2-r1.ebuild:
x86 stable wrt bug 175082

13 May 2007; Markus Rothe
proftpd-1.3.1_rc2-r1.ebuild:
Stable on ppc64; bug #175082

*proftpd-1.3.1_rc2-r1 (11 May 2007)

11 May 2007; Luca Longinotti
+files/proftpd-1.3.1_rc2-bug164612.patch,
+files/proftpd-1.3.1_rc2-bug167003.patch,
+files/proftpd-1.3.1_rc2-bug175082.patch, +proftpd-1.3.1_rc2-r1.ebuild:
Fix bugs #164612, #167003 and #175082.

08 May 2007; Marius Mauch proftpd-1.3.1_rc2.ebuild:
Replacing einfo with elog

*proftpd-1.3.1_rc2 (25 Jan 2007)

25 Jan 2007; Luca Longinotti
-files/proftpd-1.2.10-ftpshut.patch,
-files/proftpd-1.2.10-gcc4_mod_quotatab_sql.patch,
-files/proftpd-1.2.10-openssl_0.9.8.patch,
-files/proftpd-1.2.10-sqlshowinfo.patch,
-files/proftpd-1.3.0-main_commandbuf.patch,
-files/proftpd-1.3.0-mod_ctrls_sighup.patch,
-files/proftpd-1.3.0-mod_sql_mysql.patch,
-files/proftpd-1.3.0-mod_tls_overflow.patch, -proftpd-1.2.10-r7.ebuild,
-proftpd-1.3.0a.ebuild, -proftpd-1.3.1_rc1.ebuild,
+proftpd-1.3.1_rc2.ebuild:
Remove old 1.2.10 and 1.3.0a versions. Move 1.3.1_rc1 to 1.3.1_rc2, which
just fixes a few bugs, two of which important/critical, see Gentoo bugs
#159066 and #159772.

23 Jan 2007; Steve Dibb proftpd-1.3.1_rc1.ebuild:
amd64 stable, security bug 158122

19 Jan 2007; Alexander H. Færøy
proftpd-1.3.0a.ebuild:
Marked ~mips; bug #156720

24 Dec 2006; René Nussbaumer
proftpd-1.3.1_rc1.ebuild:
Stable on hppa. See bug #158122.

23 Dec 2006; Bryan Østergaard
proftpd-1.3.1_rc1.ebuild:
Stable on Alpha, bug 158122.

21 Dec 2006; Andrej Kacian proftpd-1.3.1_rc1.ebuild:
Stable on x86, security bug #158122.

21 Dec 2006; Gustavo Zacarias
proftpd-1.3.1_rc1.ebuild:
Stable on sparc wrt security #158122

21 Dec 2006; Markus Rothe proftpd-1.3.1_rc1.ebuild:
Stable on ppc64; bug #158122

21 Dec 2006; Tobias Scherbaum
proftpd-1.3.1_rc1.ebuild:
Stable on ppc wrt bug #158122.

*proftpd-1.3.1_rc1 (20 Dec 2006)

20 Dec 2006; Luca Longinotti
+proftpd-1.3.1_rc1.ebuild:
Update to 1.3.1_rc1 to fix security bug #158122. Update vroot module to
0.7.2. Add nls USE flag to handle translated messages and UTF8 file paths.

30 Nov 2006; Luca Longinotti -proftpd-1.3.0-r1.ebuild,
-proftpd-1.3.0-r2.ebuild, proftpd-1.3.0a.ebuild:
AMD64 stable and remove old vulnerable versions.

30 Nov 2006; Alexander H. Færøy
proftpd-1.3.0a.ebuild:
Stable on Alpha; bug #154650

30 Nov 2006; Markus Rothe proftpd-1.3.0a.ebuild:
Stable on ppc64; bug #154650

29 Nov 2006; Tobias Scherbaum
proftpd-1.3.0a.ebuild:
ppc stable, bug #154650

29 Nov 2006; Gustavo Zacarias proftpd-1.3.0a.ebuild:
Stable on sparc wrt security #154650

29 Nov 2006; Jeroen Roovers proftpd-1.3.0a.ebuild:
Stable for HPPA (bug #154650).

28 Nov 2006; Christian Faulhammer
proftpd-1.3.0a.ebuild:
stable x86, security bug #154650

*proftpd-1.3.0a (28 Nov 2006)

28 Nov 2006; Luca Longinotti
+files/proftpd-1.3.0-main_commandbuf.patch,
+files/proftpd-1.3.0-mod_tls_overflow.patch, +proftpd-1.3.0a.ebuild:
Fix security bugs #156503 and #154650. Update mod_shaper to 0.6.2.

23 Nov 2006; Francesco Riosa proftpd-1.2.10-r7.ebuild,
proftpd-1.3.0-r1.ebuild, proftpd-1.3.0-r2.ebuild:
dev-db/mysql => virtual/mysql

01 Oct 2006; Tobias Scherbaum
proftpd-1.3.0-r2.ebuild:
hppa stable, bug #147654

29 Sep 2006; proftpd-1.3.0-r2.ebuild:
Stable on x86, bug #147654.

27 Sep 2006; Stephanie Lockwood-Childs
proftpd-1.3.0-r2.ebuild:
stable on ppc (Bug #147654)

25 Sep 2006; Jason Wever proftpd-1.3.0-r2.ebuild:
Stable on SPARC wrt bug #147654.

24 Sep 2006; proftpd-1.3.0-r2.ebuild:
stable on amd64 wrt bug 147654

24 Sep 2006; Markus Rothe proftpd-1.3.0-r2.ebuild:
Stable on ppc64; bug #147654

*proftpd-1.3.0-r2 (23 Sep 2006)

23 Sep 2006; Luca Longinotti
+files/proftpd-1.3.0-mod_ctrls_sighup.patch, files/proftpd.rc6,
proftpd-1.2.10-r7.ebuild, proftpd-1.3.0-r1.ebuild,
+proftpd-1.3.0-r2.ebuild:
Fix redundant S definition. Update mod_clamav version, bug #141270. Fix PAM
linking, bug #101672. Update init-script to use dns, bug #147350. Fix
failure after SIGHUP, bug #147654.

23 Sep 2006; Luca Longinotti
-files/openssl-0.9.8.patch, -files/proftpd-1.2.9-makefile.patch,
-files/proftpd-1.2.9-privescal-fix.patch,
-files/1.2.9_rc3-reversedns.diff, +files/proftpd-1.2.10-ftpshut.patch,
+files/proftpd-1.2.10-gcc4_mod_quotatab_sql.patch,
+files/proftpd-1.2.10-openssl_0.9.8.patch,
+files/proftpd-1.2.10-sqlshowinfo.patch,
+files/proftpd-1.3.0-mod_sql_mysql.patch, -files/ftp.pamd,
-files/ftp.pamd-include, -files/gcc4-mod_quotatab_sql.patch,
-files/mod_sql_mysql.diff, -files/mod_sql_postgres.c.patch,
files/proftpd.conf, files/proftpd.rc6, -files/proftpd.rc6-r2,
-files/proftpd-ftpshut.patch, -files/proftpd-sqlshowinfo.patch,
proftpd-1.2.10-r7.ebuild, proftpd-1.3.0-r1.ebuild:
General ebuild and filesdir cleanup, sync 1.2.10 and 1.3.0 ebuilds for
easier maintainance. No functional or changes in the result, so no revbump.
Fix stripping of files (QA notice). Fix default user not present, which
broke the default sample config.

23 Sep 2006; Tobias Scherbaum
proftpd-1.3.0-r1.ebuild:
hppa stable, bug #146538

22 Sep 2006; Luca Longinotti metadata.xml:
Set myself as maintainer.

15 Sep 2006; Jason Wever proftpd-1.3.0-r1.ebuild:
Stable on SPARC wrt bug #146538.

09 Sep 2006; Stephanie Lockwood-Childs
proftpd-1.3.0-r1.ebuild:
stable on ppc (Bug #146538)

09 Sep 2006; Thomas Cort proftpd-1.3.0-r1.ebuild:
Stable on amd64 wrt Bug #146538.

08 Sep 2006; Thomas Cort proftpd-1.3.0-r1.ebuild:
Stable on alpha wrt Bug #146538.

08 Sep 2006; Joshua Jackson proftpd-1.3.0-r1.ebuild:
Stable x86; bug #146538

07 Sep 2006; Gustavo Felisberto ;
files/mod_sql_mysql.diff:
Fixed format on patch. Should solve issue with <=sys-devel/patch-2.5.9

06 Sep 2006; Gustavo Felisberto ;
+files/openssl-0.9.8.patch, files/mod_sql_mysql.diff,
proftpd-1.2.10-r7.ebuild:
Updated Unix socket patch for mysql auth in 1.3.0 (bug #111668). Added patch
to build 1.2.10 with openssl 0.9.8 (bug #146534).

06 Sep 2006; Markus Rothe proftpd-1.3.0-r1.ebuild:
Stable on ppc64; bug #146538

04 Sep 2006; Gustavo Felisberto ;
+files/gcc4-mod_quotatab_sql.patch, proftpd-1.2.10-r7.ebuild:
Added patch to solve issue while building with gcc 4. Close bug #145940.
Thanks to everyone in that bug.

24 Jun 2006; Gustavo Felisberto ;
proftpd-1.3.0-r1.ebuild:
Removed sendfile USE flag is this is on by default

24 Jun 2006; Gustavo Felisberto ;
proftpd-1.3.0.ebuild:
Updated to fix vroot and ifesession issues. Comments in bug 111668

*proftpd-1.3.0 (23 Jun 2006)

23 Jun 2006; Gustavo Felisberto ;
+files/mod_sql_mysql.diff, +files/proftpd.rc6-r2, +proftpd-1.3.0.ebuild:
Adding new version with extra modules. If any problems appear please report
them back in bug #111668.

27 May 2006; Gustavo Felisberto ; metadata.xml,
-proftpd-1.2.9-r2.ebuild, -proftpd-1.2.10.ebuild,
-proftpd-1.2.10-r1.ebuild, -proftpd-1.2.10-r2.ebuild,
-proftpd-1.2.10-r3.ebuild, -proftpd-1.2.10-r5.ebuild,
-proftpd-1.2.10-r6.ebuild:
Removed older versions at request from sollar@g.o (Ned Ludd)

31 Dec 2005; Diego Pettenò
proftpd-1.2.10-r5.ebuild:
Change /bin/false to -1 in enewuser call.

31 Jul 2005; Gustavo Zacarias
proftpd-1.2.10-r7.ebuild:
Stable on sparc wrt #100364

31 Jul 2005; Fernando J. Pereda
proftpd-1.2.10-r7.ebuild:
stable on alpha wrt bug #100364

30 Jul 2005; Rene Nussbaumer
proftpd-1.2.10-r7.ebuild:
Stable on hppa. bug #100364

29 Jul 2005; Markus Rothe proftpd-1.2.10-r7.ebuild:
Stable on ppc64 (bug #100364)

29 Jul 2005; Tobias Scherbaum
proftpd-1.2.10-r7.ebuild:
ppc stable, #100364

*proftpd-1.2.10-r7 (29 Jul 2005)

29 Jul 2005; Roy Marples
+files/proftpd-ftpshut.patch, +files/proftpd-sqlshowinfo.patch,
+proftpd-1.2.10-r7.ebuild:
Fix ftpshut and SqlShowInfo, bug #100364
Stable on amd64 and x86

09 Jul 2005; Gustavo Felisberto ;
proftpd-1.2.10-r6.ebuild:
Cosmetic.

*proftpd-1.2.10-r6 (08 Jul 2005)

08 Jul 2005; Gustavo Felisberto ;
+proftpd-1.2.10-r6.ebuild:
New revision that uses the new net-ftp/ftpbase. Nice work there UberLord.

07 Jul 2005; Gustavo Felisberto ;
proftpd-1.2.9-r2.ebuild, proftpd-1.2.10.ebuild, proftpd-1.2.10-r1.ebuild,
proftpd-1.2.10-r2.ebuild, proftpd-1.2.10-r3.ebuild,
proftpd-1.2.10-r5.ebuild:
Added addpredict /etc/krb5.conf to solve bug #98281. Thanks Jakub.

*proftpd-1.2.10-r5 (08 Jun 2005)

08 Jun 2005; Gustavo Felisberto ;
-proftpd-1.2.10-r4.ebuild, +proftpd-1.2.10-r5.ebuild:
Fixed problem with noauthunix flag. Thanks uberloard.

06 Jun 2005; Markus Rothe proftpd-1.2.10-r3.ebuild:
Stable on ppc64; bug #93484

06 Jun 2005; Gustavo Felisberto ;
proftpd-1.2.10-r4.ebuild:
Changed useflag to noauthunix as authunix is needed in linux (dont know
about bsd, but bsd users can use useflag).

04 Jun 2005; Gustavo Felisberto ;
proftpd-1.2.10-r4.ebuild:
Small QA issues

*proftpd-1.2.10-r4 (04 Jun 2005)

04 Jun 2005; Gustavo Felisberto ;
+files/ftp.pamd-include, +proftpd-1.2.10-r4.ebuild:
Thanks to flameeyes in #93163 we now build and install in g/bsd.

07 Mar 2005; Markus Rothe proftpd-1.2.10-r2.ebuild:
Stable on ppc64

*proftpd-1.2.10-r3 (02 Mar 2005)

02 Mar 2005; Gustavo Felisberto ;
+proftpd-1.2.10-r3.ebuild:
As seen on bug #75072 and others mod_delay is causing lots of problems, and
seems impossible to backport it to 1.2.10 as it is being developed for the cvs
version. Also am fixing small issue with softquota as reported in #80002 by
Michael Cramer. Also fixing bug #83312 and #63196 pam related credits Roy
Marples . As a bonus a fix for a small bug in dodoc
reported by Thilo Bangert in #65320.

21 Jan 2005; Markus Rothe proftpd-1.2.10-r2.ebuild:
Added ~ppc64 to KEYWORDS; bug #78927

09 Jan 2005; Sven Wegener proftpd-1.2.10-r1.ebuild,
proftpd-1.2.10-r2.ebuild:
Added missing parentheses in SRC_URI/*DEPEND/LICENSE.

*proftpd-1.2.10-r2 (06 Dec 2004)

06 Dec 2004; Gustavo Felisberto ;
+proftpd-1.2.10-r2.ebuild, -proftpd-1.2.7.ebuild, -proftpd-1.2.8.ebuild:
Removed older versions and added a new release that uses the sendfile()
function. Use with care.

30 Nov 2004; Guy Martin proftpd-1.2.10-r1.ebuild:
Stable on hppa.

30 Nov 2004; Bryan Østergaard
proftpd-1.2.10-r1.ebuild:
Stable on alpha, bug 67648.

29 Nov 2004; Simon Stelling proftpd-1.2.10-r1.ebuild:
stable on amd64, see bug #67648

29 Nov 2004; Gustavo Zacarias
proftpd-1.2.10-r1.ebuild:
Stable on sparc wrt #67648

28 Nov 2004; Joseph Jezak proftpd-1.2.10-r1.ebuild:
Marked ppc stable for bug #67648.

27 Nov 2004; Gustavo Felisberto ;
proftpd-1.2.10-r1.ebuild:
Stable on x86

*proftpd-1.2.10-r1 (26 Nov 2004)

26 Nov 2004; Gustavo Felisberto ;
+proftpd-1.2.10-r1.ebuild:
Adding version 1.2.10-r1 with fix for time attack bug
#http://bugs.gentoo.org/show_bug.cgi?id=67648

23 Nov 2004; Sven Wegener :
Fixed digest.

01 Nov 2004; Bryan Østergaard proftpd-1.2.10.ebuild:
Stable on alpha.

19 Oct 2004; Dylan Carlson proftpd-1.2.10.ebuild,
proftpd-1.2.8.ebuild:
Stable on amd64.

11 Oct 2004; Guy Martin proftpd-1.2.10.ebuild:
Marked stable on hppa.

18 Sep 2004; Jason Wever proftpd-1.2.10.ebuild:
Stable on sparc.

16 Sep 2004; Gustavo Felisberto ;
proftpd-1.2.10.ebuild:
Mod shaper causes problems again :( . Marking stable as the rest is rock solid.

*proftpd-1.2.10 (07 Sep 2004)

07 Sep 2004; Gustavo Felisberto ;
+proftpd-1.2.10.ebuild, -proftpd-1.2.10_rc3-r1.ebuild:
Adding version 1.2.10, mod_shaper is back and also adding selinux flag and
dep, thanks to petre rodan on bug 62905 for this one

*proftpd-1.2.10_rc3-r1 (06 Sep 2004)

06 Sep 2004; Ciaran McCreesh
proftpd-1.2.10_rc3-r1.ebuild, proftpd-1.2.9-r2.ebuild:
Switch to use epause and ebeep, bug #62950

29 Jul 2004; Gustavo Felisberto ;
-proftpd-1.2.10_rc1-r1.ebuild:
Removing the shaper module because it causes strange problems.

*proftpd-1.2.10_rc3 (14 Jul 2004)

14 Jul 2004; Gustavo Felisberto ;
proftpd-1.2.10_rc1-r1.ebuild, +proftpd-1.2.10_rc3.ebuild:
Adding rc3. Please report back (by mail) sucess stories

14 Jul 2004; Gustavo Felisberto ;
proftpd-1.2.10_rc1-r1.ebuild:
Added softquota flag to rc1-r1 and removed the old rc1 ebuild. 1.2.10_rc2 came
out today but has a bug and will not build, I have contacted upstream and rc3
will come out soon.

*proftpd-1.2.10_rc1-r1 (08 Jul 2004)

08 Jul 2004; Gustavo Felisberto ; metadata.xml,
+proftpd-1.2.10_rc1-r1.ebuild:
Adding suport fpr mod_shaper a trafic-shaper for all the server. Also
rager@g seems to be missing so I will maintain this in the meantime.

*proftpd-1.2.10_rc1 (08 Jun 2004)

08 Jun 2004; Nick Hadaway proftpd-1.2.10_rc1.ebuild :
Important security fixes. From proftpd.org: Additionally a flaw in
the CIDRACL code has been discovered which can lead to an escalation in
access rights within the ftp site. This flaw affects all versions up to
and including 1.2.9, it has been fixed in cvs and 1.2.10rc1. To avoid
the flaw do not use CIDR based ACLs on vulnerable versions or use
mod_wrap and /etc/hosts.allow|deny.

05 Jun 2004; Bryan Østergaard proftpd-1.2.9-r2.ebuild:
Stable on alpha.

12 May 2004; Alexander Gabert proftpd-1.2.9-r2.ebuild:
removed hardened-gcc logic, changed to use flag logic for capability bugfix

06 May 2004; David Holm proftpd-1.2.9-r2.ebuild:
Stable on ppc.

05 May 2004; Jon Portnoy proftpd-1.2.9-r2.ebuild :
Stable on x86.

05 May 2004; Jason Wever proftpd-1.2.9-r2.ebuild:
Stable on sparc wrt bug #49496.

04 May 2004; Brandon Hale proftpd-1.2.9-r2.ebuild:
Carry over stable flags on amd64 and hppa to -r2, I nuked their latest stable.

*proftpd-1.2.9-r2 (04 May 2004)

04 May 2004; Brandon Hale -proftpd-1.2.9-r1.ebuild,
+proftpd-1.2.9-r2.ebuild, -proftpd-1.2.9.ebuild:
Add patch to close privelage escalation bug, see bug #49496. Removing affected
versions.

27 Apr 2004; Aron Griffis proftpd-1.2.9-r1.ebuild:
Add inherit eutils

20 Apr 2004; Jeremy Huddleston
proftpd-1.2.9-r1.ebuild, proftpd-1.2.9.ebuild:
is-flag -fPIC -> has_pic to work with new gcc builds and USE=hardened.

09 Mar 2004; Daniel Ahlberg proftpd-1.2.9-r1.ebuild:
Adding amd64 keyword. Closing #44105.

12 Feb 2004; Stewart Honsberger
proftpd-1.2.9-r1.ebuild, proftpd-1.2.9.ebuild:
Re: Bug #40260; add warning to ebuild if both USE=postgres and mysql are set

*proftpd-1.2.9-r1 (12 Feb 2004)

12 Feb 2004; Stewart Honsberger
proftpd-1.2.9-r1.ebuild, files/proftpd-1.2.9-makefile.patch:
Re: Bug #39678; apply patch to correct race condition for paralell build.

31 Jan 2004; Christian Birchinger proftpd-1.2.9.ebuild:
Added sparc stable keyword

29 Jan 2004; proftpd-1.2.9.ebuild:
Added ~mips to KEYWORDS.

24 Jan 2004; Stewart Honsberger files/proftpd.rc6:
Re: Bug #28345 added "--retry 20" to start-stop-daemon line in init script
to account for stray processes.

23 Jan 2004; Nick Hadaway proftpd-1.2.9.ebuild:
Removed libpcap dependancy. See bug #36291. Also removed unneeded
src_unpack() section.

23 Jan 2004; Stewart Honsberger files/proftpd.xinetd:
Re: Bug #37457, fix proftpd.xinetd

23 Jan 2004; Stewart Honsberger proftpd-1.2.9.ebuild:
Marked stable on x86.

*proftpd-1.2.9 (05 Nov 2003)

22 Jan 2004; Guy Martin proftpd-1.2.9.ebuild:
Marked stable on hppa.

05 Nov 2003; Stewart Honsberger proftpd-1.2.9.ebuild:
Version bump. Security fixes, some memory leaks, IPv4 / IPv6 fixes.

20 Oct 2003; Nick Hadaway proftpd-1.2.9_rc3.ebuild:
Added files/1.2.9_rc3-reversedns.diff which was taken from the
upstream cvs repository. Gentoo bug #31465 and proftpd bug #2204.

*proftpd-1.2.9_rc3 (16 Oct 2003)

16 Oct 2003; Nick Hadaway proftpd-1.2.9_rc3.ebuild:
Addresses bug #29639 and #30004. Also includes a remote exploit fix.
Version bump. 1.2.9 release is coming soon. :)

*proftpd-1.2.9_rc2-r1 (13 Oct 2003)

13 Oct 2003; proftpd-1.2.9_rc2-r1.ebuild,
files/proftpd-1.2.9_rc2-dirtree-r118.patch:
Adding TJ Saunders directive lookup code patch from Comment #10
http://bugs.proftpd.org/show_bug.cgi?id=2183 for src/dirtree.c This should
close Gentoo Bug #29639

05 Oct 2003; proftpd-1.2.9_rc2.ebuild:
reversed yet_exec workaround, changing solution to make proftpd compile for
users when -fPIC is found in C[XX]FLAGS or using hgcc.. see bug #30359

05 Oct 2003; Alexander Gabert proftpd-1.2.9_rc2.ebuild:
added yet_exec flags for configure run, otherwise build failure due to broken
assembler syscall in cap module building

02 Oct 2003; Brad House proftpd-1.2.8.ebuild:
add ~amd64 flag

30 Sep 2003; Christian Birchinger
proftpd-1.2.9_rc2.ebuild:
Added sparc stable keyword

29 Sep 2003; proftpd-1.2.9_rc2.ebuild:
marked stable on x86

*proftpd-1.2.9_rc2 (23 Sep 2003)

23 Sep 2003; Daniel Ahlberg proftpd-1.2.9_rc2.ebuild:
Security update

22 Jun 2003; root proftpd-1.2.9_rc1.ebuild:
Changed install stanza so files install in the proper location

17 Jun 2003; Nick Hadaway proftpd-1.2.9_rc1.ebuild,
proftpd-1.2.8.ebuild:
Address bug #22963 which fixes compiling with the mysql module

*proftpd-1.2.9_rc1 (16 Jun 2003)

16 Jun 2003; Nick Hadaway proftpd-1.2.9_rc1.ebuild,
files/digest-proftpd-1.2.9_rc1:
Version bump. einstall doesn't work in this version. Added some
commented code for the new mod_{radius,ifsession,rewrite} modules.
A couple "New & Enhanced" configuration directives as well...
AnonRejectPasswords, RootRevoke, SocketOptions, and ListOptions.
Increased postgres depend to >=7.3 (bug #19675)

*proftpd-1.2.8 (02 June 2003)

03 Jun 2003; Christian Birchinger proftpd-1.2.8.ebuild:
Added sparc stable keyword

02 June 2003; Brad Laue proftpd-1.2.8.ebuild:
Marking stable, it's well tested.

*proftpd-1.2.8 (17 Mar 2003)

17 Apr 2003; Martin Holzer Manifest,
proftpd-1.2.7.ebuild, proftpd-1.2.8.ebuild:
Adding info about config file

17 Mar 2003; Martin Holzer proftpd-1.2.8.ebuild:
Version bumped. Ebuild submitted in #17666 by bugsubmit@snerk.org

*proftpd-1.2.7 (15 Dec 2002)

23 Mar 2003; Graham Forest proftpd-1.2.7.ebuild:
set ppc in keywords

17 Jan 2003; Daniel Ahlberg files/proftpd.conf :
Closes #13734.

15 Dec 2002; Daniel Ahlberg proftpd-1.2.7.ebuild :
Marked as stable.

05 Mar 2003; Will Woods proftpd-1.2.7.ebuild:
Added alpha to KEYWORDS

25 Feb 2003; Guy Martin proftpd-1.2.7.ebuild :
Added hppa to keywords.

15 Dec 2002; Daniel Ahlberg proftpd-1.2.7.ebuild :
Version bump.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

23 Nov 2002; Maik Schreiber proftpd-1.2.7_rc3.ebuild:
Changed KEYWORDS to "~x86 ~ppc ~sparc ~sparc64", as proftpd-1.2.7_rc2.ebuild
has. Also fixed ChangeLog.

19 Nov 2002; L. Boshell proftpd-1.2.7_rc3.ebuild:
Modified tcp-wrappers dep, so default-1.0 users don't have problems with it.
See bug #10930.

*proftpd-1.2.7_rc3 (17 Nov 2002)

17 Nov 2002; Bruce A. Locke proftpd-1.2.7_rc3.ebuild:
Version bump, ebuild cleanups, and:

- mod_ldap TLS enable suggested by psi-jack@myrealbox.com (Eric Renfro)
- mod_tls added (suggestion from stian@barmen.nu (Stian B. Barmen))
- mod_wrap for TCP wrappers support
- sample config file location in rc6 message changed

09 Nov 2002; Ryan Phillips : set emake to make. Fixes #10267

*proftpd-1.2.7_rc2 (02 Nov 2002)

02 Nov 2002; Maik Schreiber : New version. Also we use
user/group "proftpd" from now on instead of nobody/nogroup.

07 Sep 2002; Seemant Kulleen proftpd-1.2.5-r1.ebuild,
proftpd-1.2.6_rc1-r1.ebuild: Removed redundant glibc dependency and replaced
it with the libpcap. Thanks to: saragon@home.se (Daniel) in bug #7614.

*proftpd-1.2.6_rc1-r1 (03 Aug 2002)

03 Aug 2002; Bruce A. Locke proftpd-1.2.6_rc1-r1.ebuild,
files/digest-proftpd-1.2.6_rc1-r1:
Added xinetd file contributed by alextxm@tin.it (Alessandro Pisani) and
fixed minor directory and documentation buglets

*proftpd-1.2.6_rc1 (19 Jul 2002)

19 Jul 2002; Kyle Manna proftpd-1.2.6_rc1.ebuild:
Added masked release candidate. Please test.

28 Jun 2002; J.Alberto Suárez L. proftpd-1.2.5-r1.ebuild:

Fix bug #3791 In mod_sql_postgres.c line 38: #inlcude
is patched to: #include .

*proftpd-1.2.5-r1 (20 Jun 2002)

20 Jun 2002; Kyle Manna proftpd-1.2.5-r1.ebuild :
Now we copy pam ftp file if we 'use pam'

*proftpd-1.2.5 (09 Jun 2002)

09 Jun 2002; Kyle Manna proftpd-1.2.5.ebuild :

Version bump, added SLOT="0" and LICENSE="GPL-2"

2 Apr 2002; Tod Neidt proftpd-1.2.4-r7.ebuild :

Specified rundir in make install, needed to avoid sandbox violation of
'mkdir /var/run/proftp' on initial install.

*proftpd-1.2.4-r7 (18 Mar 2002)

18 Mar 2002; Donny Davies proftpd-1.2.4-r7.ebuild :

Fix compilation with USE ldap. Closes #722, thanks goto rectrix@rectrix.cx (Tim Hobbs)
for report and suggested resolution.

*proftpd-1.2.4-r6 (01 Feb 2002)

01 Feb 2002; G.Bevin ChangeLog :

Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

Manifest

AUX proftpd-1.3.1-bug208840.patch 1000 RMD160 f8cc6aadf4496c3d88a2968d18479f021d40abb8 SHA1 4de215408ec6be835133c41db3015f4dd24a7774 SHA256 b0c0d16ffaeb12e118c929e535e5d8297b8265894ee80b4c8ea32c8c0f0fbb5e
AUX proftpd-1.3.1-bug218850.patch 482 RMD160 934f1a9efdae189df9b30390d1b579a96a7ed99e SHA1 6a4c5225de5a15958868eca42cc44e034e5b28df SHA256 383c1146f40d57845532147e0c28f8df4b116603e6d089d46c5b4c5691f62be4
AUX proftpd-1.3.1_rc2-bug164612.patch 779 RMD160 3bb73beff421ff27d153a6051299ada6bc532330 SHA1 cbf74c1c6a2ed794b1558e39cc85a41650bac21d SHA256 68b0bb47c3f46b931ff1887f299028803a15888641dfaad47865615bb0d6952c
AUX proftpd-1.3.1_rc2-bug167003.patch 316 RMD160 7fcade6de378727081d0a14775b2e240f2a5aa31 SHA1 14439ace9c84932c460df3baace3fcbb10968c03 SHA256 55b87a0da8df2c4f257cbeb090d7a6fafda142a9db88c97728281358ac4792ff
AUX proftpd-1.3.1_rc2-bug175082.patch 9671 RMD160 ab5144464b0b0c618ed51d1907694a56f2f72f5c SHA1 65ea3a861dc493439a8b2e2d3271dba57825bbac SHA256 018077db323cb370dd68fb30c284090316a041f53e02e07478cb1e07e22f30dc
AUX proftpd-1.3.1_rc2-bug178866.patch 1731 RMD160 11d06f7d5ea2ad4678ff989514daaa10d1b92c2c SHA1 7b15937e55b13985ece4a6275cae4c6487b834cb SHA256 658f2e71e1e062e94e8437b10443576432fbc4dd342d297473aef603c6b450aa
AUX proftpd-1.3.1_rc2-bug181712.patch 1098 RMD160 1c4a77dfb401c6d888fabc259e21f5022828335b SHA1 387e079c66df054909a2c7d94485189aa1b09afc SHA256 bdb1364ae5a518f5d50b8a232e94bd83b2d3f846d51566c7ed63550ac3858698
AUX proftpd.conf 1671 RMD160 1242c9c20e21e4832e5771e5fd57085cc5312066 SHA1 91cadfcbd1034f744f6513492258efa3b95fa9e6 SHA256 d289078ee6c5764b16979e7b720d99bcccf4d87176eecd6108dc9dc37949f0dd
AUX proftpd.rc6 1202 RMD160 03e4bd127d379bdc9c62640dea0e6f65b9defda7 SHA1 f674f0871052d7a031b4ee9886b33d6a041d635d SHA256 0ab218ccb323cbcbd53598e93c3565f00245380a9ee1374cc22c2c1db88f7a37
AUX proftpd.xinetd 295 RMD160 c5c829319e901f478fe58b920347cc1b8706a366 SHA1 3f1bd8d6cbb1488301b9aa0346e02b571fd0783a SHA256 150a5701f5c2788ecdf2c6ec228ce674963c9dc7bc1c511ad1eba8dfe05e2d5d
DIST mod_clamav-0.7.tar.gz 3676 RMD160 779203276643343bb54dc5e8225cf16392959533 SHA1 2e9376865eb03d482e2aac89a0ce611a5587e084 SHA256 61aa9d6af9432d1409170305526d87f63742aca198dd299d21ce37a60a8f41e7
DIST mod_clamav_new.c 7399 RMD160 ae4de6385245a3c79d3c54bb7af9d2fe45a59feb SHA1 f037c573b6c0052f8ed5ee427504a8cd8834f15c SHA256 a5a3860c73c8bc3781516cbc912d7736517a92a15a6fd8352eeed638bcce60c1
DIST mod_clamav_new.html 4645 RMD160 bc853541e6859e7929c0ed9b01b8f220e09b8ca2 SHA1 58479f3aae082effad3636026a27c09ddb232905 SHA256 ac0ab5f44cfc6c8118664c2a7300450486f52fb3bcde332b4bb9c506dd765a1e
DIST proftpd-1.3.1.tar.bz2 2243888 RMD160 ed47f7a7c446b01c3d00d2d25d89573c787da905 SHA1 0b54286492967172c5355e2f489f9665b46591e5 SHA256 03bc023e5b7b1c04d8eb2d5dca53b931b3e02cc7aba7dd8f629b0878535dc91b
DIST proftpd-1.3.1rc2.tar.bz2 1516464 RMD160 aa928315880cf1e9d1980850ce2bb07193d2ac46 SHA1 7db6435707983fe8e865064661cedb159ebc1cf6 SHA256 7494ea061ef28efc7afa63ffe0a80d598a55909d06dede9254e955c67e6440da
DIST proftpd-mod-case-0.3.tar.gz 4781 RMD160 99f46a2cfb88ec2f3070d632dbc17d89d12ec30b SHA1 c8ea2c4604ab2ffa5853284d0696b1dfe518ae84 SHA256 a9affd47558020b2b3f369c9a945ac91d22b45368734d839404b76e0fbdaaf7c
DIST proftpd-mod-deflate-0.3.tar.gz 7704 RMD160 dd51a966942642b2a5ae1cd1c3b3b6f47721637c SHA1 9d08a32da1c1e7e8b126e1fdbc172aa6889bccbc SHA256 dd6650e1cb69ee118319c19bbaa9dbe277b92675ab26e9c70a93e1e93f724adb
DIST proftpd-mod-shaper-0.6.2.tar.gz 19002 RMD160 3d1fdb82596672c9177009ebb30459a017e74c53 SHA1 930d6dc6b8785da48dc7102db5f1eb20546ccd75 SHA256 59f39bca40462c3bba20feb7be031d7453c366adb4b7fa6d8f50974eb45ae99e
DIST proftpd-mod-shaper-0.6.3.tar.gz 19040 RMD160 9978fda37d0099c48d755e53132482506c948c05 SHA1 a5c9a1889c441b9290f2c571ad7fc06bebaf9326 SHA256 a6947836461872adca53dab2708b1e140fa6ce7a8b93ccbe2dafbc3ca63fde67
DIST proftpd-mod-vroot-0.7.2.tar.gz 6071 RMD160 b152162b3714910d5b9378611313041c3e7e17d4 SHA1 3fc4c5874deba4bbe989b0bd54a7478a47f3d876 SHA256 cab5a42390eac4e0b8bdcbe1e6d15804c8029d51da9ad3bd428b46a80cd69d5a
EBUILD proftpd-1.3.1.ebuild 6951 RMD160 f2d030f82d5c73d2312d413aa9ba2f9f8174219d SHA1 69618caa7299ec3a9b4ae935aa71b0096b937b62 SHA256 f8b1ba70aba8cbb6c5b296731e0ed748c7659eac3935ffe2758df0c3363dab1f
EBUILD proftpd-1.3.1_rc2-r3.ebuild 6338 RMD160 5af01205da38a4e4cdf4ad4ddfbb8f979b42cfdc SHA1 993a40f69700583842aa7c1d1527ee97f7292cc3 SHA256 5977e86165767799cd4123e14bd391b04cbd14f29c563ecc6081d014f9fadbb2
MISC ChangeLog 28272 RMD160 6464282e4d0f4f3da9dc12720d16560ceffa92fc SHA1 1a92d57858812a893eadbeca36b976d4fa1cf5af SHA256 c0900ef9aeca7396eb11eacddc60fd6c1ffec268cc2b7e87dd514e5b6a0ac42d
MISC metadata.xml 427 RMD160 3556b7a0e59208cd27f428249f788cd1d69b65ad SHA1 b9a09ae205d90f6bf655dbca9a559bc8743acaf7 SHA256 83315ac9ba181d9d4a7084a305824a844e32980c92dcf29025aef5689995326a

files

metadata.xml




net-ftp

chtekk@gentoo.org
Luca Longinotti

ProFTPD grew out of the desire to have a secure and
configurable FTP server, and out of a significant admiration of the Apache web
server.

proftpd-1.3.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1.ebuild,v 1.3 2008/04/24 18:04:56 chtekk Exp $

inherit eutils flag-o-matic toolchain-funcs autotools

KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"

IUSE="acl authfile ban case clamav deflate hardened ifsession ipv6 ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd"

CASE_VER="0.3"
CLAMAV_VER="0.7"
DEFLATE_VER="0.3"
SHAPER_VER="0.6.3"
VROOT_VER="0.7.2"

DESCRIPTION="An advanced and very configurable FTP server."

SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz )
clamav? ( http://www.thrallingpenguin.com/resources/mod_clamav-${CLAMAV_VER}.tar.gz )
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz )
shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz )
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )"

HOMEPAGE="http://www.proftpd.org/
http://www.castaglia.org/proftpd/
http://www.thrallingpenguin.com/resources/mod_clamav.htm"

SLOT="0"
LICENSE="GPL-2"

DEPEND="acl? ( sys-apps/acl sys-apps/attr )
clamav? ( app-antivirus/clamav )
ldap? ( >=net-nds/openldap-1.2.11 )
mysql? ( virtual/mysql )
ncurses? ( sys-libs/ncurses )
opensslcrypt? ( >=dev-libs/openssl-0.9.6f )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
ssl? ( >=dev-libs/openssl-0.9.6f )
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )
xinetd? ( virtual/inetd )"

RDEPEND="${DEPEND}
net-ftp/ftpbase
selinux? ( sec-policy/selinux-ftpd )"

S="${WORKDIR}/${P/_/}"

pkg_setup() {
# Add the proftpd user to make the default config
# work out-of-the-box
enewgroup proftpd
enewuser proftpd -1 -1 -1 proftpd
}

src_unpack() {
unpack ${P/_/}.tar.bz2

cd "${S}"

# Fix stripping of files
sed -e "s| @INSTALL_STRIP@||g" -i Make*

if use case ; then
unpack ${PN}-mod-case-${CASE_VER}.tar.gz
cp -f mod_case/mod_case.c contrib/
cp -f mod_case/mod_case.html doc/
fi

if use clamav ; then
unpack mod_clamav-${CLAMAV_VER}.tar.gz
cp -f mod_clamav-${CLAMAV_VER}/mod_clamav.* contrib/
epatch mod_clamav-${CLAMAV_VER}/${PN}.patch
fi

if use deflate ; then
unpack ${PN}-mod-deflate-${DEFLATE_VER}.tar.gz
cp -f mod_deflate/mod_deflate.c contrib/
cp -f mod_deflate/mod_deflate.html doc/
fi

if use shaper ; then
unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz
cp -f mod_shaper/mod_shaper.c contrib/
cp -f mod_shaper/mod_shaper.html doc/
fi

if use vroot ; then
unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz
cp -f mod_vroot/mod_vroot.c contrib/
cp -f mod_vroot/mod_vroot.html doc/
fi

# Fix bug #218850
epatch "${FILESDIR}/${P}-bug218850.patch"

# Fix bug #208840
epatch "${FILESDIR}/${P}-bug208840.patch"

eautoreconf
}

src_compile() {
addpredict /etc/krb5.conf
local modules myconf

modules="mod_ratio:mod_readme"
use acl && modules="${modules}:mod_facl"
use ban && modules="${modules}:mod_ban"
use case && modules="${modules}:mod_case"
use clamav && modules="${modules}:mod_clamav"
use deflate && modules="${modules}:mod_deflate"
use pam && modules="${modules}:mod_auth_pam"
use radius && modules="${modules}:mod_radius"
use rewrite && modules="${modules}:mod_rewrite"
use shaper && modules="${modules}:mod_shaper"
use sitemisc && modules="${modules}:mod_site_misc"
use ssl && modules="${modules}:mod_tls"
use tcpd && modules="${modules}:mod_wrap"
use vroot && modules="${modules}:mod_vroot"

# pam needs to be explicitely disabled
use pam || myconf="${myconf} --enable-auth-pam=no"

if use ldap ; then
modules="${modules}:mod_ldap"
append-ldflags "-lresolv"
if use ssl ; then
CFLAGS="${CFLAGS} -DUSE_LDAP_TLS"
fi
fi

if use opensslcrypt ; then
myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
append-ldflags "-lcrypto"
CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
fi

if use nls ; then
myconf="${myconf} --enable-nls"
fi

if use mysql && use postgres ; then
ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
ewarn "Presently this ebuild defaults to mysql. If you would like to"
ewarn "change the default behaviour, merge ProFTPD with:"
ewarn "USE='-mysql postgres' emerge proftpd"
epause 5
fi

if use mysql ; then
modules="${modules}:mod_sql:mod_sql_mysql"
myconf="${myconf} --with-includes=/usr/include/mysql"
elif use postgres ; then
modules="${modules}:mod_sql:mod_sql_postgres"
myconf="${myconf} --with-includes=/usr/include/postgresql"
fi

if use softquota ; then
modules="${modules}:mod_quotatab"
if use mysql || use postgres ; then
modules="${modules}:mod_quotatab_sql"
fi
if use radius ; then
modules="${modules}:mod_quotatab_radius"
fi
if use ldap ; then
modules="${modules}:mod_quotatab_file:mod_quotatab_ldap"
else
modules="${modules}:mod_quotatab_file"
fi
fi

# mod_ifsession should be the last module in the --with-modules list
# see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation
use ifsession && modules="${modules}:mod_ifsession"

# bug #30359
use hardened && echo > lib/libcap/cap_sys.c
gcc-specs-pie && echo > lib/libcap/cap_sys.c

if use noauthunix ; then
myconf="${myconf} --disable-auth-unix"
else
myconf="${myconf} --enable-auth-unix"
fi

econf \
--sbindir=/usr/sbin \
--localstatedir=/var/run \
--sysconfdir=/etc/proftpd \
--enable-shadow \
--enable-autoshadow \
--enable-ctrls \
--with-modules=${modules} \
$(use_enable acl facl) \
$(use_enable authfile auth-file) \
$(use_enable ipv6) \
$(use_enable ncurses) \
${myconf} || die "econf failed"

emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

keepdir /var/run/proftpd

dodoc "${FILESDIR}/proftpd.conf" \
COPYING CREDITS ChangeLog NEWS README* \
doc/license.txt
dohtml doc/*.html
dohtml doc/howto/*.html

docinto rfc
dodoc doc/rfc/*.txt

mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib"

insinto /etc/proftpd
newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample

if use xinetd ; then
insinto /etc/xinetd.d
newins "${FILESDIR}/proftpd.xinetd" proftpd
fi

newinitd "${FILESDIR}/proftpd.rc6" proftpd
}

pkg_postinst() {
elog
elog "You can find the config files in /etc/proftpd"
elog
ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp."
ewarn "Remember to change that in the configuration file."
ewarn
if use clamav ; then
ewarn "mod_clamav was updated to a new version, which uses Clamd"
ewarn "only for virus scanning, so you'll have to set Clamd up"
ewarn "and start it, also re-check the mod_clamav docs."
ewarn
fi
}

proftpd-1.3.1_rc2-r3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1_rc2-r3.ebuild,v 1.5 2008/07/16 16:00:28 chtekk Exp $

inherit eutils flag-o-matic toolchain-funcs

KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"

IUSE="acl authfile clamav hardened ifsession ipv6 ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd"

SHAPER_VER="0.6.2"
VROOT_VER="0.7.2"

DESCRIPTION="An advanced and very configurable FTP server."
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2
clamav? ( http://www.uglyboxindustries.com/mod_clamav_new.c http://www.uglyboxindustries.com/mod_clamav_new.html )
shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz )
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )"
HOMEPAGE="http://www.proftpd.org/
http://www.castaglia.org/proftpd/
http://www.uglyboxindustries.com/open-source.php"

SLOT="0"
LICENSE="GPL-2"

DEPEND="acl? ( sys-apps/acl sys-apps/attr )
clamav? ( app-antivirus/clamav )
ldap? ( >=net-nds/openldap-1.2.11 )
mysql? ( virtual/mysql )
ncurses? ( sys-libs/ncurses )
opensslcrypt? ( >=dev-libs/openssl-0.9.6f )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
ssl? ( >=dev-libs/openssl-0.9.6f )
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )
xinetd? ( virtual/inetd )"

RDEPEND="${DEPEND}
net-ftp/ftpbase
selinux? ( sec-policy/selinux-ftpd )"

S="${WORKDIR}/${P/_/}"

pkg_setup() {
# Add the proftpd user to make the default config
# work out-of-the-box
enewgroup proftpd
enewuser proftpd -1 -1 -1 proftpd
}

src_unpack() {
unpack ${P/_/}.tar.bz2

cd "${S}"

# Fix bugs #164612, #167003, #175082, #178866 and #181712
epatch "${FILESDIR}/${P}-bug164612.patch"
epatch "${FILESDIR}/${P}-bug167003.patch"
epatch "${FILESDIR}/${P}-bug175082.patch"
epatch "${FILESDIR}/${P}-bug178866.patch"
epatch "${FILESDIR}/${P}-bug181712.patch"

# Fix stripping of files
sed -e "s| @INSTALL_STRIP@||g" -i Make*

if use shaper ; then
unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz
cp -f mod_shaper/mod_shaper.c contrib/
fi

if use clamav ; then
cp -f "${DISTDIR}/mod_clamav_new.c" contrib/mod_clamav.c
cp -f "${DISTDIR}/mod_clamav_new.html" doc/mod_clamav.html
fi

if use vroot ; then
unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz
cp -f mod_vroot/mod_vroot.c contrib/
cp -f mod_vroot/mod_vroot.html doc/
fi
}

src_compile() {
addpredict /etc/krb5.conf
local modules myconf

modules="mod_ratio:mod_readme"
use acl && modules="${modules}:mod_facl"
use clamav && modules="${modules}:mod_clamav"
use pam && modules="${modules}:mod_auth_pam"
use radius && modules="${modules}:mod_radius"
use rewrite && modules="${modules}:mod_rewrite"
use shaper && modules="${modules}:mod_shaper"
use sitemisc && modules="${modules}:mod_site_misc"
use ssl && modules="${modules}:mod_tls"
use tcpd && modules="${modules}:mod_wrap"
use vroot && modules="${modules}:mod_vroot"

# pam needs to be explicitely disabled
use pam || myconf="${myconf} --enable-auth-pam=no"

if use ldap ; then
modules="${modules}:mod_ldap"
append-ldflags "-lresolv"
fi

if use opensslcrypt ; then
append-ldflags "-lcrypto"
myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
fi

if use nls ; then
myconf="${myconf} --enable-nls"
fi

if use mysql && use postgres ; then
ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
ewarn "Presently this ebuild defaults to mysql. If you would like to"
ewarn "change the default behaviour, merge ProFTPD with:"
ewarn "USE='-mysql postgres' emerge proftpd"
epause 5
fi

if use mysql ; then
modules="${modules}:mod_sql:mod_sql_mysql"
myconf="${myconf} --with-includes=/usr/include/mysql"
elif use postgres ; then
modules="${modules}:mod_sql:mod_sql_postgres"
myconf="${myconf} --with-includes=/usr/include/postgresql"
fi

if use softquota ; then
modules="${modules}:mod_quotatab"
if use mysql || use postgres ; then
modules="${modules}:mod_quotatab_sql"
fi
if use ldap ; then
modules="${modules}:mod_quotatab_file:mod_quotatab_ldap"
else
modules="${modules}:mod_quotatab_file"
fi
fi

# mod_ifsession should be the last module in the --with-modules list
# see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation
use ifsession && modules="${modules}:mod_ifsession"

# bug #30359
use hardened && echo > lib/libcap/cap_sys.c
gcc-specs-pie && echo > lib/libcap/cap_sys.c

if use noauthunix ; then
myconf="${myconf} --disable-auth-unix"
else
myconf="${myconf} --enable-auth-unix"
fi

econf \
--sbindir=/usr/sbin \
--localstatedir=/var/run \
--sysconfdir=/etc/proftpd \
--enable-shadow \
--enable-autoshadow \
--enable-ctrls \
--with-modules=${modules} \
$(use_enable acl facl) \
$(use_enable authfile auth-file) \
$(use_enable ipv6) \
$(use_enable ncurses) \
${myconf} || die "econf failed"

emake || die "emake failed"
}

src_install() {
# Note rundir needs to be specified to avoid sandbox violation
# on initial install. See Make.rules
emake DESTDIR="${D}" install || die "emake install failed"

keepdir /var/run/proftpd

dodoc "${FILESDIR}/proftpd.conf" \
COPYING CREDITS ChangeLog NEWS README* \
doc/license.txt
dohtml doc/*.html

use shaper && dohtml mod_shaper/mod_shaper.html

docinto rfc
dodoc doc/rfc/*.txt

mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib"

insinto /etc/proftpd
newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample

if use xinetd ; then
insinto /etc/xinetd.d
newins "${FILESDIR}/proftpd.xinetd" proftpd
fi

newinitd "${FILESDIR}/proftpd.rc6" proftpd
}

pkg_postinst() {
elog
elog "You can find the config files in /etc/proftpd"
elog
ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp."
ewarn "Remember to change that in the configuration file."
ewarn
if use clamav ; then
ewarn "mod_clamav was updated to a new version, which uses Clamd"
ewarn "only for virus scanning, so you'll have to set Clamd up"
ewarn "and start it, also re-check the mod_clamav docs."
ewarn
fi
}