From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 65096158094 for ; Fri, 23 Sep 2022 02:54:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DDD5E0BEC; Fri, 23 Sep 2022 02:54:26 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 406EFE0BEC for ; Fri, 23 Sep 2022 02:54:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 338D6341036 for ; Fri, 23 Sep 2022 02:54:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CC735CD for ; Fri, 23 Sep 2022 02:54:23 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1663900942.113ecc58b17cf02f9d1ef1b9b0ccc0978fd86f92.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/quota/files/, sys-fs/quota/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/quota/Manifest sys-fs/quota/files/quota-4.09-configure-bashism.patch sys-fs/quota/files/quota-4.09-gettext-version.patch sys-fs/quota/quota-4.09.ebuild X-VCS-Directories: sys-fs/quota/files/ sys-fs/quota/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 113ecc58b17cf02f9d1ef1b9b0ccc0978fd86f92 X-VCS-Branch: master Date: Fri, 23 Sep 2022 02:54:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7e873704-18e7-44e8-8023-fb9634da4a3c X-Archives-Hash: bac222d1317670c2ab6ef9b40fb12fbd commit: 113ecc58b17cf02f9d1ef1b9b0ccc0978fd86f92 Author: Sam James gentoo org> AuthorDate: Fri Sep 23 02:42:22 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Sep 23 02:42:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=113ecc58 sys-fs/quota: add 4.09 Signed-off-by: Sam James gentoo.org> sys-fs/quota/Manifest | 1 + .../quota/files/quota-4.09-configure-bashism.patch | 16 +++++ .../quota/files/quota-4.09-gettext-version.patch | 14 ++++ sys-fs/quota/quota-4.09.ebuild | 84 ++++++++++++++++++++++ 4 files changed, 115 insertions(+) diff --git a/sys-fs/quota/Manifest b/sys-fs/quota/Manifest index ebd4c38e4346..c18c1f799be4 100644 --- a/sys-fs/quota/Manifest +++ b/sys-fs/quota/Manifest @@ -1 +1,2 @@ DIST quota-4.06.tar.gz 520448 BLAKE2B 2cbadeade228d0154f3a8d455cc1aa6e85c9ad7854007e3188c9035abe4d5fdbdf97985fd2fa6308f486ffbe60461e0fe1139f1ec0ca415ce08292d74e0ddde1 SHA512 cece46b8e3a82e8afcf8bfc9f6b310ec91afe034102cebc031bc7d7e04287fdbffb21ab1d3e6e1825175cffa4bad0a4ecbefec0efee028d961b14ac626d5c871 +DIST quota-4.09.tar.gz 523191 BLAKE2B 30b3828a45dcd7d99ff053f362917c138b1f0bcbde5f6fd3dfc1b48cb12615e5673d852f9276f2b370f9c799a2103e220d91ddf6a770aaaf8944cfb5c1131a74 SHA512 003d45f33543d4c87446e6547079cdae293b8dade01c58cf3626623721a1400ee07681395ad656c23a9ea2a62ab27c6ad24ad55600890e6e25334aba27ab1ad5 diff --git a/sys-fs/quota/files/quota-4.09-configure-bashism.patch b/sys-fs/quota/files/quota-4.09-configure-bashism.patch new file mode 100644 index 000000000000..5866d3873dde --- /dev/null +++ b/sys-fs/quota/files/quota-4.09-configure-bashism.patch @@ -0,0 +1,16 @@ +https://sourceforge.net/p/linuxquota/patches/56/ + +configure: WARNING: tcpd.h not found +./configure: 8453: test: X: unexpected operator +checking that generated files are newer than configure... done +--- a/configure.ac ++++ b/configure.ac +@@ -283,7 +283,7 @@ AC_ARG_WITH([pid-dir], + [AS_HELP_STRING([--with-pid-dir=DIRECTORY], [Create PID files in this directory instead of /var/run])], + [with_pid_dir="$withval"] + ) +-AS_IF([test "X$with_pid_dir" == "X" -o "$with_pid_dir" == "yes" -o "$with_pid_dir" == "no"],[ ++AS_IF([test "X$with_pid_dir" = "X" -o "$with_pid_dir" = "yes" -o "$with_pid_dir" = "no"],[ + with_pid_dir="/var/run" + ]) + AC_DEFINE_UNQUOTED([PID_DIR], ["$with_pid_dir"], [Directory for PID files]) diff --git a/sys-fs/quota/files/quota-4.09-gettext-version.patch b/sys-fs/quota/files/quota-4.09-gettext-version.patch new file mode 100644 index 000000000000..1dc194f8b473 --- /dev/null +++ b/sys-fs/quota/files/quota-4.09-gettext-version.patch @@ -0,0 +1,14 @@ +https://sourceforge.net/p/linuxquota/bugs/142/ + +Avoids e.g. egrep warnings. +--- a/configure.ac ++++ b/configure.ac +@@ -43,7 +43,7 @@ AC_CHECK_FUNC([nl_langinfo], [ + # Gettext support + # =============== + AM_GNU_GETTEXT([external]) +-AM_GNU_GETTEXT_VERSION([0.12.1]) ++AM_GNU_GETTEXT_VERSION([0.21]) + + AS_IF([test "$enable_nls" != "no"], [ + enable_nls="yes" diff --git a/sys-fs/quota/quota-4.09.ebuild b/sys-fs/quota/quota-4.09.ebuild new file mode 100644 index 000000000000..2c2297f50915 --- /dev/null +++ b/sys-fs/quota/quota-4.09.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Linux quota tools" +HOMEPAGE="https://sourceforge.net/projects/linuxquota/" +SRC_URI="mirror://sourceforge/linuxquota/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="ldap netlink nls rpc tcpd" + +RDEPEND=" + sys-fs/e2fsprogs + ldap? ( >=net-nds/openldap-2.3.35:= ) + netlink? ( + sys-apps/dbus + dev-libs/libnl:3 + ) + rpc? ( + elibc_glibc? ( sys-libs/glibc[-rpc(-)] ) + net-libs/libtirpc:= + net-libs/rpcsvc-proto + ) + tcpd? ( sys-apps/tcp-wrappers ) +" +DEPEND="${RDEPEND}" +BDEPEND="nls? ( sys-devel/gettext )" +PDEPEND="rpc? ( net-nds/rpcbind )" + +PATCHES=( + "${FILESDIR}"/${PN}-4.09-configure-bashism.patch + "${FILESDIR}"/${PN}-4.09-gettext-version.patch +) + +src_prepare() { + default + + # Only needed for bashism patch and stale macros patch + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-ext2direct + $(use_enable nls) + $(use_enable ldap ldapmail) + $(use_enable netlink) + $(use_enable rpc) + $(use_enable rpc rpcsetquota) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + dodoc doc/* README.* Changelog + + insinto /etc + insopts -m0644 + doins warnquota.conf quotatab + + newinitd "${FILESDIR}"/quota.rc7 quota + newconfd "${FILESDIR}"/quota.confd quota + + if use rpc ; then + newinitd "${FILESDIR}"/rpc.rquotad.initd rpc.rquotad + fi + + if use ldap ; then + insinto /etc/openldap/schema + insopts -m0644 + doins "${FILESDIR}"/ldap-scripts/quota.schema + + exeinto /usr/share/quota/ldap-scripts + doexe "${FILESDIR}"/ldap-scripts/*.pl + doexe "${FILESDIR}"/ldap-scripts/edquota_editor + fi +}