1 |
commit: 3b95ba6b5b5af8e65b4cbf7850e377c302461578 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 23 22:42:47 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 23 22:44:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b95ba6b |
7 |
|
8 |
net-ftp/pure-ftpd: Bump to version 1.0.50 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
net-ftp/pure-ftpd/Manifest | 1 + |
13 |
net-ftp/pure-ftpd/pure-ftpd-1.0.50.ebuild | 150 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 151 insertions(+) |
15 |
|
16 |
diff --git a/net-ftp/pure-ftpd/Manifest b/net-ftp/pure-ftpd/Manifest |
17 |
index 2892703c30e0..9399be6f1d46 100644 |
18 |
--- a/net-ftp/pure-ftpd/Manifest |
19 |
+++ b/net-ftp/pure-ftpd/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pure-ftpd-1.0.49.tar.bz2 487958 BLAKE2B bd5f10a49b533eb6c257032659e97aa7ae16ec9402704d8ee06c92938e217b748b390ccf0e31b3640f41cb7a93f85b29c8ddcdc296f214391b1d92da9d701a7c SHA512 b44896d6fe2cda9169b1db93c5260bb892af14a173f2d25e60dd6530afe85d8e9156985609e35da7e5550dc123afb42bc5012beb9fca9011054cf0ed8b2eddef |
22 |
+DIST pure-ftpd-1.0.50.tar.bz2 520167 BLAKE2B 0c694ed48e896be13d907a71a24357f8676daf2c66bdaac41d31b162741164fe5ab1560499acc08b11e4fdb2a678c81c81c03e65a8181fcfd960ffbfe4b731d4 SHA512 8fbd24fb0450b9ed8e47335c97c3bc1cbcd0ee2ac7ebea95721b9dbddb7f61d8bedaa1710ba94213d96c79e12ec9b2b555ddb5f494c8961ca2339b176a52fe12 |
23 |
|
24 |
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.50.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.50.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..1127842978af |
27 |
--- /dev/null |
28 |
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.50.ebuild |
29 |
@@ -0,0 +1,150 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit flag-o-matic |
36 |
+ |
37 |
+DESCRIPTION="Fast, production-quality, standard-conformant FTP server" |
38 |
+HOMEPAGE="http://www.pureftpd.org/" |
39 |
+if [[ "${PV}" == 9999 ]] ; then |
40 |
+ inherit autotools git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/jedisct1/pure-ftpd.git" |
42 |
+else |
43 |
+ SRC_URI="ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2 |
44 |
+ http://download.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2" |
45 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
46 |
+fi |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+ |
51 |
+IUSE="anondel anonperm anonren anonres caps implicittls ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd" |
52 |
+ |
53 |
+REQUIRED_USE="implicittls? ( ssl )" |
54 |
+ |
55 |
+BDEPEND="sys-devel/autoconf-archive" |
56 |
+ |
57 |
+DEPEND="dev-libs/libsodium:= |
58 |
+ virtual/libcrypt:= |
59 |
+ caps? ( sys-libs/libcap ) |
60 |
+ ldap? ( >=net-nds/openldap-2.0.25 ) |
61 |
+ mysql? ( || ( |
62 |
+ dev-db/mariadb-connector-c |
63 |
+ dev-db/mysql-connector-c |
64 |
+ ) ) |
65 |
+ pam? ( sys-libs/pam ) |
66 |
+ postgres? ( dev-db/postgresql:= ) |
67 |
+ ssl? ( |
68 |
+ >=dev-libs/openssl-0.9.6g:0=[-bindist(-)] |
69 |
+ ) |
70 |
+ sysquota? ( sys-fs/quota[-rpc] ) |
71 |
+ xinetd? ( virtual/inetd )" |
72 |
+ |
73 |
+RDEPEND="${DEPEND} |
74 |
+ net-ftp/ftpbase |
75 |
+ selinux? ( sec-policy/selinux-ftp )" |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}/${PN}-1.0.28-pam.patch" |
79 |
+) |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ [[ "${PV}" == 9999 ]] && eautoreconf |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ # adjust max user length to something more appropriate |
88 |
+ # for virtual hosts. See bug #62472 for details. |
89 |
+ sed -e "s:# define MAX_USER_LENGTH 32U:# define MAX_USER_LENGTH 127U:" \ |
90 |
+ -i "${S}/src/ftpd.h" || die "sed failed" |
91 |
+ |
92 |
+ # Those features are only configurable like this, see bug #179375. |
93 |
+ use anondel && append-cppflags -DANON_CAN_DELETE |
94 |
+ use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS |
95 |
+ use anonren && append-cppflags -DANON_CAN_RENAME |
96 |
+ use anonres && append-cppflags -DANON_CAN_RESUME |
97 |
+ use resolveids && append-cppflags -DALWAYS_RESOLVE_IDS |
98 |
+ |
99 |
+ # Do not auto-use SSP -- let the user select this. |
100 |
+ export ax_cv_check_cflags___fstack_protector_all=no |
101 |
+ |
102 |
+ local myeconfargs=( |
103 |
+ --enable-largefile |
104 |
+ # Required for correct pid file location. |
105 |
+ # pure-ftpd appends "/run/pure-ftpd.pid" to the localstatedir |
106 |
+ # path, and tries to write to that file even when being |
107 |
+ # started in foreground. So we need to pin this to / |
108 |
+ --localstatedir="${EPREFIX}"/ |
109 |
+ --with-altlog |
110 |
+ --with-cookie |
111 |
+ --with-diraliases |
112 |
+ --with-extauth |
113 |
+ --with-ftpwho |
114 |
+ --with-language=${PUREFTPD_LANG:=english} |
115 |
+ --with-peruserlimits |
116 |
+ --with-privsep |
117 |
+ --with-puredb |
118 |
+ --with-quotas |
119 |
+ --with-ratios |
120 |
+ --with-throttling |
121 |
+ --with-uploadscript |
122 |
+ --with-virtualhosts |
123 |
+ $(use_with ldap) |
124 |
+ $(use_with mysql) |
125 |
+ $(use_with pam) |
126 |
+ $(use_with paranoidmsg) |
127 |
+ $(use_with postgres pgsql) |
128 |
+ $(use_with ssl tls) |
129 |
+ $(use_with implicittls) |
130 |
+ $(use_with vchroot virtualchroot) |
131 |
+ $(use_with sysquota sysquotas) |
132 |
+ $(usex caps '' '--without-capabilities') |
133 |
+ $(usex noiplog '--without-iplogging' '') |
134 |
+ $(usex xinetd '' '--without-inetd') |
135 |
+ ) |
136 |
+ econf "${myeconfargs[@]}" |
137 |
+} |
138 |
+ |
139 |
+src_install() { |
140 |
+ local DOCS=( AUTHORS ChangeLog FAQ HISTORY README* NEWS ) |
141 |
+ |
142 |
+ default |
143 |
+ |
144 |
+ newinitd "${FILESDIR}/pure-ftpd.rc11" ${PN} |
145 |
+ newconfd "${FILESDIR}/pure-ftpd.conf_d-3" ${PN} |
146 |
+ |
147 |
+ if use implicittls ; then |
148 |
+ sed -i '/^SERVER/s@21@990@' "${ED}"/etc/conf.d/${PN} \ |
149 |
+ || die "Adjusting default server port for implicittls usage failed!" |
150 |
+ fi |
151 |
+ |
152 |
+ keepdir /var/lib/run/${PN} |
153 |
+ |
154 |
+ if use xinetd ; then |
155 |
+ insinto /etc/xinetd.d |
156 |
+ newins "${FILESDIR}/pure-ftpd.xinetd" ${PN} |
157 |
+ fi |
158 |
+ |
159 |
+ if use ldap ; then |
160 |
+ insinto /etc/openldap/schema |
161 |
+ doins pureftpd.schema |
162 |
+ insinto /etc/openldap |
163 |
+ insopts -m 0600 |
164 |
+ doins pureftpd-ldap.conf |
165 |
+ fi |
166 |
+} |
167 |
+ |
168 |
+pkg_postinst() { |
169 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
170 |
+ # This is a new installation |
171 |
+ elog |
172 |
+ elog "Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file!" |
173 |
+ elog |
174 |
+ ewarn "It's *really* important to read the README provided with Pure-FTPd!" |
175 |
+ ewarn "Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info" |
176 |
+ ewarn "and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info." |
177 |
+ ewarn |
178 |
+ fi |
179 |
+} |