Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/pure-ftpd: ChangeLog pure-ftpd-1.0.39.ebuild pure-ftpd-1.0.36-r1.ebuild pure-ftpd-1.0.37.ebuild
Date: Mon, 01 Jun 2015 10:00:24
Message-Id: 20150601100017.67D6AA13@oystercatcher.gentoo.org
1 polynomial-c 15/06/01 10:00:17
2
3 Modified: ChangeLog
4 Added: pure-ftpd-1.0.39.ebuild
5 Removed: pure-ftpd-1.0.36-r1.ebuild pure-ftpd-1.0.37.ebuild
6 Log:
7 Version bump. Removed old
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
10
11 Revision Changes Path
12 1.157 net-ftp/pure-ftpd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/ChangeLog?rev=1.157&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/ChangeLog?rev=1.157&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/ChangeLog?r1=1.156&r2=1.157
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v
21 retrieving revision 1.156
22 retrieving revision 1.157
23 diff -u -r1.156 -r1.157
24 --- ChangeLog 27 May 2015 09:23:09 -0000 1.156
25 +++ ChangeLog 1 Jun 2015 10:00:17 -0000 1.157
26 @@ -1,6 +1,13 @@
27 # ChangeLog for net-ftp/pure-ftpd
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.156 2015/05/27 09:23:09 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.157 2015/06/01 10:00:17 polynomial-c Exp $
31 +
32 +*pure-ftpd-1.0.39 (01 Jun 2015)
33 +
34 + 01 Jun 2015; Lars Wendler <polynomial-c@g.o>
35 + -pure-ftpd-1.0.36-r1.ebuild, -pure-ftpd-1.0.37.ebuild,
36 + +pure-ftpd-1.0.39.ebuild:
37 + Version bump. Removed old.
38
39 *pure-ftpd-1.0.38 (27 May 2015)
40
41
42
43
44 1.1 net-ftp/pure-ftpd/pure-ftpd-1.0.39.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.39.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.39.ebuild?rev=1.1&content-type=text/plain
48
49 Index: pure-ftpd-1.0.39.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.39.ebuild,v 1.1 2015/06/01 10:00:17 polynomial-c Exp $
54
55 EAPI=5
56 inherit eutils confutils flag-o-matic
57
58 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
59
60 DESCRIPTION="Fast, production-quality, standard-conformant FTP server"
61 HOMEPAGE="http://www.pureftpd.org/"
62 SRC_URI="ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2
63 http://download.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2"
64
65 LICENSE="BSD"
66 SLOT="0"
67
68 IUSE="anondel anonperm anonren anonres caps charconv implicittls ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd"
69
70 REQUIRED_USE="implicittls? ( ssl )"
71
72 DEPEND="caps? ( sys-libs/libcap )
73 charconv? ( virtual/libiconv )
74 ldap? ( >=net-nds/openldap-2.0.25 )
75 mysql? ( virtual/mysql )
76 pam? ( virtual/pam )
77 postgres? ( dev-db/postgresql:= )
78 ssl? ( >=dev-libs/openssl-0.9.6g:0= )
79 sysquota? ( sys-fs/quota[-rpc] )
80 xinetd? ( virtual/inetd )"
81
82 RDEPEND="${DEPEND}
83 dev-libs/libsodium
84 net-ftp/ftpbase
85 selinux? ( sec-policy/selinux-ftp )"
86
87 src_prepare() {
88 epatch "${FILESDIR}"/${PN}-1.0.28-pam.patch
89 }
90
91 src_configure() {
92 # adjust max user length to something more appropriate
93 # for virtual hosts. See bug #62472 for details.
94 sed -e "s:# define MAX_USER_LENGTH 32U:# define MAX_USER_LENGTH 127U:" \
95 -i "${S}/src/ftpd.h" || die "sed failed"
96
97 local my_conf=""
98
99 # Let's configure the USE-enabled stuff
100 enable_extension_without "capabilities" "caps"
101 enable_extension_with "rfc2640" "charconv" 0
102 enable_extension_with "ldap" "ldap" 0
103 enable_extension_with "mysql" "mysql" 0
104 enable_extension_with "pam" "pam" 0
105 enable_extension_with "paranoidmsg" "paranoidmsg" 0
106 enable_extension_with "pgsql" "postgres" 0
107 enable_extension_with "tls" "ssl" 0
108 enable_extension_with "implicittls" "implicittls" 0
109 enable_extension_with "virtualchroot" "vchroot" 0
110 enable_extension_with "sysquotas" "sysquota" 0
111 enable_extension_without "inetd" "xinetd"
112
113 # noiplog is a negative flag, we don't want that enabled by default,
114 # so we handle it manually, as confutils can't do that
115 use noiplog && my_conf="${my_conf} --without-iplogging"
116
117 # Those features are only configurable like this, see bug #179375.
118 use anondel && append-cppflags -DANON_CAN_DELETE
119 use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS
120 use anonren && append-cppflags -DANON_CAN_RENAME
121 use anonres && append-cppflags -DANON_CAN_RESUME
122 use resolveids && append-cppflags -DALWAYS_RESOLVE_IDS
123
124 # Do not auto-use SSP -- let the user select this.
125 export ax_cv_check_cflags___fstack_protector_all=no
126
127 econf \
128 --with-altlog \
129 --with-cookie \
130 --with-diraliases \
131 --with-extauth \
132 --with-ftpwho \
133 --with-language=${PUREFTPD_LANG:=english} \
134 --with-peruserlimits \
135 --with-privsep \
136 --with-puredb \
137 --with-quotas \
138 --with-ratios \
139 --with-throttling \
140 --with-uploadscript \
141 --with-virtualhosts \
142 --enable-largefile \
143 ${my_conf}
144 }
145
146 src_install() {
147 emake DESTDIR="${D}" install
148
149 dodoc AUTHORS CONTACT ChangeLog FAQ HISTORY INSTALL README* NEWS
150
151 newconfd "${FILESDIR}/pure-ftpd.conf_d-3" ${PN}
152
153 if use implicittls ; then
154 sed -i '/^SERVER/s@21@990@' "${ED}"/etc/conf.d/${PN} \
155 || die "Adjusting default server port for implicittls usage failed!"
156 fi
157
158 newinitd "${FILESDIR}/pure-ftpd.rc11" pure-ftpd
159
160 dodir /var/lib/run/${PN}
161
162 if use xinetd ; then
163 insinto /etc/xinetd.d
164 newins "${FILESDIR}/pure-ftpd.xinetd" pure-ftpd
165 fi
166
167 if use ldap ; then
168 insinto /etc/openldap/schema
169 doins pureftpd.schema
170 insinto /etc/openldap
171 insopts -m 0600
172 doins pureftpd-ldap.conf
173 fi
174 }
175
176 pkg_postinst() {
177 if [[ -z "${REPLACING_VERSIONS}" ]]; then
178 # This is a new installation
179 elog
180 elog "Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file!"
181 elog
182 ewarn "It's *really* important to read the README provided with Pure-FTPd!"
183 ewarn "Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info"
184 ewarn "and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info."
185 ewarn
186 if use charconv ; then
187 ewarn "Charset conversion is an *experimental* feature!"
188 ewarn "Remember to set a valid charset for your filesystem in the configuration!"
189 fi
190 fi
191 }