From 98c7fa9070b6b423d52dfb59567ec7ef0d5f234d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 23 Apr 2023 06:06:50 +0100 Subject: gentoo auto-resync : 23:04:2023 - 06:06:49 --- net-ftp/pure-ftpd/Manifest | 4 +- net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild | 164 +++++++++++++++++++++++++++ net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild | 161 -------------------------- net-ftp/pure-ftpd/pure-ftpd-9999.ebuild | 5 +- 4 files changed, 170 insertions(+), 164 deletions(-) create mode 100644 net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild delete mode 100644 net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild (limited to 'net-ftp/pure-ftpd') diff --git a/net-ftp/pure-ftpd/Manifest b/net-ftp/pure-ftpd/Manifest index fb78aad739af..711c4a9464cb 100644 --- a/net-ftp/pure-ftpd/Manifest +++ b/net-ftp/pure-ftpd/Manifest @@ -7,6 +7,6 @@ AUX pure-ftpd.xinetd 247 BLAKE2B aa2b0f8b4b6ff45e9b8dd632af5ff680ddd5abe51647dda AUX pure-uploadscript.confd 368 BLAKE2B 675e5349b2f808dd2a3cbaf2536a0541f40d42d300b7411163bc8232470c6f63a1d92cef393271693a02bcb5129624d38de77a99ca030a77bab00cc1fbe797c4 SHA512 2632be874a5afb25b8c8c1acbdfef929542d80dc9a8f280b4a9b0b6878be63f901ccd2c29c2ae0f9f74f45e41df1b7e69d1cef6f77e93c9b235709a7094480af AUX pure-uploadscript.initd-r1 776 BLAKE2B 1e382300a92fabb5308aa2636de2f427418d8595859fa2d7e6ee0a62297a0a17386f2f4c55de03ad282ed0545cc97ea6c0df67fe5fe6af736789d01e18c69f97 SHA512 3bb735bf0dc12434bc283ea9948c5b7feeaf72a26382a65a3c8eaec87a13f82239699e4687e5b36be5478bcab801974633b17771d9a583b6be508503118899e4 DIST pure-ftpd-1.0.51.tar.bz2 520648 BLAKE2B 0b82fee114986140eb74d2669b7d91582a48f1b366936895acda913afb7d3bca1578295a930f7857f8674e593bd1bf8094c36f2ae8db6cf1a62cacfd4234cf13 SHA512 3615ac1ec42813855f3328dde200f60025e1f2ca7d1e17ea042967fd4164079260d058f3e2586acd778334660f387a280b35850a9e2091dd913fb84ef929bdca -EBUILD pure-ftpd-1.0.51.ebuild 4363 BLAKE2B 48e2aa70ff578e49bd35d21e4ff002a63399b9c18e1466946b171a1e5fce5f226ba1bdd42df6164ab04005ca685d9c90c902a59a00c7b356ee6a7aad292d5212 SHA512 f29ce9b3262c80f75b8ea722763def4e52441fb735d0ebc1a564b43f018b05e1203de04ec2b344cd7a7aff9ca34cceca2377ac3736c1ee127bd67962baf676b2 -EBUILD pure-ftpd-9999.ebuild 4369 BLAKE2B b44d87e95f8a73dfec5819b89fc69666809158a61fc4a3e5b31bec0abc299ab788735d3fa414a20f7835c15c610370eabebbd53cd2a56aed11089e8e4bb4b145 SHA512 f4ec59f90bce535f39d135cb07f3ecaa40c16c17d9bfb5b5bfbf25f244ce70445621e5b0a937363970875ba64ed5317242400e949b383476d48f72891f3569f7 +EBUILD pure-ftpd-1.0.51-r1.ebuild 4450 BLAKE2B a74926b5714227b97d6e7732985b5302e9f8d95f2ee5d722ad6c9b5aedd1a9d89b28405c9bd35e5dd460d328725cfd0f9187c09782fe77ad9314081dcf9429e9 SHA512 4130b154979dc8954da66d053bbd295e661684eac51b42aff1a5a36ab9c540e896f3a126eff63f95c8b3a595aa056edfbe893eb71f50caf2da9e3e5127e391da +EBUILD pure-ftpd-9999.ebuild 4459 BLAKE2B c9b9a0eb103ba66c0c31e71ca61377829d40dfaef4f81528936b395b2a04d7ca39d4689e5d78dfe0432c376bb63269169cc8f9ddb1a9bdbaf07a1b1f6d222f8b SHA512 acb68506a8a4df2c33b75830fe0ff965892bbaf7b63dc0dc6f51ac0e10ec8f4a2865dd1c671e084de3ad7c06e6fced96b93036cc18c8ff4bb1ce03cff8e70bf0 MISC metadata.xml 1206 BLAKE2B d63b00ba878cf0c264df68458ad167e3d2fff42220b1fb2a620da61bfeec258f19d7a516541bc745c74b1bc86951b974c9d4e65e9ee35aff1aed5942291e71a8 SHA512 34eea80ef0ff27b2bfefcec60275846fe49f0ef0bc6395d74e42ce66db8ae2592f5db79ab4563293d65ec3ab6907a6a671758ebf24868f198ed6610a583cbd9c diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild new file mode 100644 index 000000000000..223cdb2a5ea7 --- /dev/null +++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.51-r1.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="Fast, production-quality, standard-conformant FTP server" +HOMEPAGE="https://www.pureftpd.org/project/pure-ftpd/" +if [[ "${PV}" == 9999 ]] ; then + inherit autotools git-r3 + EGIT_REPO_URI="https://github.com/jedisct1/pure-ftpd.git" +else + SRC_URI=" + ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2 + http://download.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2 + " + KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" +fi + +LICENSE="BSD GPL-2" +SLOT="0" +IUSE="anondel anonperm anonren anonres caps implicittls ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd" +REQUIRED_USE="implicittls? ( ssl )" + +DEPEND=" + dev-libs/libsodium:= + virtual/libcrypt:= + caps? ( sys-libs/libcap ) + ldap? ( >=net-nds/openldap-2.0.25:= ) + mysql? ( || ( + dev-db/mariadb-connector-c + dev-db/mysql-connector-c + ) + ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + ssl? ( dev-libs/openssl:0=[-bindist(-)] ) + sysquota? ( sys-fs/quota[-rpc] ) + xinetd? ( virtual/inetd ) +" + +RDEPEND=" + ${DEPEND} + net-ftp/ftpbase + selinux? ( sec-policy/selinux-ftp ) +" + +BDEPEND="sys-devel/autoconf-archive" + +PATCHES=( "${FILESDIR}/${PN}-1.0.28-pam.patch" ) + +src_prepare() { + default + + # Don't hardcode FORTIFY_SOURCE + sed -e '/-D_FORTIFY_SOURCE=2/d' -i configure || die + + [[ "${PV}" == 9999 ]] && eautoreconf +} + +src_configure() { + # Those features are only configurable like this, see bug #179375. + use anondel && append-cppflags -DANON_CAN_DELETE + use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS + use anonren && append-cppflags -DANON_CAN_RENAME + use anonres && append-cppflags -DANON_CAN_RESUME + use resolveids && append-cppflags -DALWAYS_RESOLVE_IDS + + # Do not auto-use SSP -- let the user select this. + export ax_cv_check_cflags___fstack_protector_all=no + + local myeconfargs=( + --enable-largefile + # Required for correct pid file location. + # Pure-FTPd appends "/run/pure-ftpd.pid" to the localstatedir + # path, and tries to write to that file even when being + # started in foreground. So we need to pin this to / + --localstatedir="${EPREFIX}"/ + --with-altlog + --with-cookie + --with-diraliases + --with-extauth + --with-ftpwho + --with-language=${PUREFTPD_LANG:=english} + --with-peruserlimits + --with-privsep + --with-puredb + --with-quotas + --with-ratios + --with-throttling + --with-uploadscript + --with-virtualhosts + $(use_with implicittls) + $(use_with ldap) + $(use_with mysql) + $(use_with pam) + $(use_with paranoidmsg) + $(use_with postgres pgsql) + $(use_with ssl tls) + $(use_with sysquota sysquotas) + $(use_with vchroot virtualchroot) + $(usex caps '' '--without-capabilities') + $(usex noiplog '--without-iplogging' '') + $(usex xinetd '' '--without-inetd') + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + newinitd "${FILESDIR}/pure-ftpd.initd-r12" pure-ftpd + newconfd "${FILESDIR}/pure-ftpd.confd-r4" pure-ftpd + + newinitd "${FILESDIR}/pure-uploadscript.initd-r1" pure-uploadscript + newconfd "${FILESDIR}/pure-uploadscript.confd" pure-uploadscript + + if use implicittls ; then + sed -e '/^# Bind/s@21@990@' -i "${ED}"/etc/pure-ftpd.conf || die + fi + + if use ssl ; then + newinitd "${FILESDIR}/pure-certd.initd" pure-certd + + exeinto /etc + newexe "${FILESDIR}/pure-certd.script" pure-certd.sh + fi + + if use ldap ; then + insinto /etc/openldap/schema + doins pureftpd.schema + insinto /etc/openldap + insopts -m 0600 + doins pureftpd-ldap.conf + fi + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/pure-ftpd.xinetd" pure-ftpd + fi +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # This is a new installation + elog + elog "Before starting Pure-FTPd, you have to edit the /etc/pure-ftpd.conf file!" + elog + ewarn "It's *really* important to read the README provided with Pure-FTPd!" + ewarn "Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info" + ewarn "and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info." + ewarn + else + for v in ${REPLACING_VERSIONS} ; do + if ver_test "${v}" -le "1.0.50" ; then + einfo "Configuration through /etc/conf.d/pure-ftpd is now deprecated!" + einfo "Please migrate your settings to the new configuration file." + einfo "Use /etc/pure-ftpd.conf to adjust your settings." + fi + done + fi +} diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild deleted file mode 100644 index a01e48fe71f1..000000000000 --- a/net-ftp/pure-ftpd/pure-ftpd-1.0.51.ebuild +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic - -DESCRIPTION="Fast, production-quality, standard-conformant FTP server" -HOMEPAGE="https://www.pureftpd.org/project/pure-ftpd/" -if [[ "${PV}" == 9999 ]] ; then - inherit autotools git-r3 - EGIT_REPO_URI="https://github.com/jedisct1/pure-ftpd.git" -else - SRC_URI=" - ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2 - http://download.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2 - " - KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" -fi - -LICENSE="BSD GPL-2" -SLOT="0" -IUSE="anondel anonperm anonren anonres caps implicittls ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd" -REQUIRED_USE="implicittls? ( ssl )" - -DEPEND=" - dev-libs/libsodium:= - virtual/libcrypt:= - caps? ( sys-libs/libcap ) - ldap? ( >=net-nds/openldap-2.0.25:= ) - mysql? ( || ( - dev-db/mariadb-connector-c - dev-db/mysql-connector-c - ) - ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - ssl? ( dev-libs/openssl:0=[-bindist(-)] ) - sysquota? ( sys-fs/quota[-rpc] ) - xinetd? ( virtual/inetd ) -" - -RDEPEND=" - ${DEPEND} - net-ftp/ftpbase - selinux? ( sec-policy/selinux-ftp ) -" - -BDEPEND="sys-devel/autoconf-archive" - -PATCHES=( "${FILESDIR}/${PN}-1.0.28-pam.patch" ) - -src_prepare() { - default - - [[ "${PV}" == 9999 ]] && eautoreconf -} - -src_configure() { - # Those features are only configurable like this, see bug #179375. - use anondel && append-cppflags -DANON_CAN_DELETE - use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS - use anonren && append-cppflags -DANON_CAN_RENAME - use anonres && append-cppflags -DANON_CAN_RESUME - use resolveids && append-cppflags -DALWAYS_RESOLVE_IDS - - # Do not auto-use SSP -- let the user select this. - export ax_cv_check_cflags___fstack_protector_all=no - - local myeconfargs=( - --enable-largefile - # Required for correct pid file location. - # Pure-FTPd appends "/run/pure-ftpd.pid" to the localstatedir - # path, and tries to write to that file even when being - # started in foreground. So we need to pin this to / - --localstatedir="${EPREFIX}"/ - --with-altlog - --with-cookie - --with-diraliases - --with-extauth - --with-ftpwho - --with-language=${PUREFTPD_LANG:=english} - --with-peruserlimits - --with-privsep - --with-puredb - --with-quotas - --with-ratios - --with-throttling - --with-uploadscript - --with-virtualhosts - $(use_with implicittls) - $(use_with ldap) - $(use_with mysql) - $(use_with pam) - $(use_with paranoidmsg) - $(use_with postgres pgsql) - $(use_with ssl tls) - $(use_with sysquota sysquotas) - $(use_with vchroot virtualchroot) - $(usex caps '' '--without-capabilities') - $(usex noiplog '--without-iplogging' '') - $(usex xinetd '' '--without-inetd') - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - default - - newinitd "${FILESDIR}/pure-ftpd.initd-r12" pure-ftpd - newconfd "${FILESDIR}/pure-ftpd.confd-r4" pure-ftpd - - newinitd "${FILESDIR}/pure-uploadscript.initd-r1" pure-uploadscript - newconfd "${FILESDIR}/pure-uploadscript.confd" pure-uploadscript - - if use implicittls ; then - sed -e '/^# Bind/s@21@990@' -i "${ED}"/etc/pure-ftpd.conf || die - fi - - if use ssl ; then - newinitd "${FILESDIR}/pure-certd.initd" pure-certd - - exeinto /etc - newexe "${FILESDIR}/pure-certd.script" pure-certd.sh - fi - - if use ldap ; then - insinto /etc/openldap/schema - doins pureftpd.schema - insinto /etc/openldap - insopts -m 0600 - doins pureftpd-ldap.conf - fi - - if use xinetd ; then - insinto /etc/xinetd.d - newins "${FILESDIR}/pure-ftpd.xinetd" pure-ftpd - fi -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]] ; then - # This is a new installation - elog - elog "Before starting Pure-FTPd, you have to edit the /etc/pure-ftpd.conf file!" - elog - ewarn "It's *really* important to read the README provided with Pure-FTPd!" - ewarn "Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info" - ewarn "and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info." - ewarn - else - for v in ${REPLACING_VERSIONS} ; do - if ver_test "${v}" -le "1.0.50" ; then - einfo "Configuration through /etc/conf.d/pure-ftpd is now deprecated!" - einfo "Please migrate your settings to the new configuration file." - einfo "Use /etc/pure-ftpd.conf to adjust your settings." - fi - done - fi -} diff --git a/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild b/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild index 712fefda22b2..2c5c51cfabc5 100644 --- a/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild +++ b/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -53,6 +53,9 @@ PATCHES=( "${FILESDIR}/${PN}-1.0.28-pam.patch" ) src_prepare() { default + # Don't hardcode FORTIFY_SOURCE + sed -e '/-D_FORTIFY_SOURCE=2/d' -i configure.ac || die + [[ "${PV}" == 9999 ]] && eautoreconf } -- cgit v1.2.3