Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/quota/files/, sys-fs/quota/
Date: Fri, 23 Sep 2022 02:54:27
Message-Id: 1663900942.113ecc58b17cf02f9d1ef1b9b0ccc0978fd86f92.sam@gentoo
1 commit: 113ecc58b17cf02f9d1ef1b9b0ccc0978fd86f92
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 02:42:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 02:42:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=113ecc58
7
8 sys-fs/quota: add 4.09
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-fs/quota/Manifest | 1 +
13 .../quota/files/quota-4.09-configure-bashism.patch | 16 +++++
14 .../quota/files/quota-4.09-gettext-version.patch | 14 ++++
15 sys-fs/quota/quota-4.09.ebuild | 84 ++++++++++++++++++++++
16 4 files changed, 115 insertions(+)
17
18 diff --git a/sys-fs/quota/Manifest b/sys-fs/quota/Manifest
19 index ebd4c38e4346..c18c1f799be4 100644
20 --- a/sys-fs/quota/Manifest
21 +++ b/sys-fs/quota/Manifest
22 @@ -1 +1,2 @@
23 DIST quota-4.06.tar.gz 520448 BLAKE2B 2cbadeade228d0154f3a8d455cc1aa6e85c9ad7854007e3188c9035abe4d5fdbdf97985fd2fa6308f486ffbe60461e0fe1139f1ec0ca415ce08292d74e0ddde1 SHA512 cece46b8e3a82e8afcf8bfc9f6b310ec91afe034102cebc031bc7d7e04287fdbffb21ab1d3e6e1825175cffa4bad0a4ecbefec0efee028d961b14ac626d5c871
24 +DIST quota-4.09.tar.gz 523191 BLAKE2B 30b3828a45dcd7d99ff053f362917c138b1f0bcbde5f6fd3dfc1b48cb12615e5673d852f9276f2b370f9c799a2103e220d91ddf6a770aaaf8944cfb5c1131a74 SHA512 003d45f33543d4c87446e6547079cdae293b8dade01c58cf3626623721a1400ee07681395ad656c23a9ea2a62ab27c6ad24ad55600890e6e25334aba27ab1ad5
25
26 diff --git a/sys-fs/quota/files/quota-4.09-configure-bashism.patch b/sys-fs/quota/files/quota-4.09-configure-bashism.patch
27 new file mode 100644
28 index 000000000000..5866d3873dde
29 --- /dev/null
30 +++ b/sys-fs/quota/files/quota-4.09-configure-bashism.patch
31 @@ -0,0 +1,16 @@
32 +https://sourceforge.net/p/linuxquota/patches/56/
33 +
34 +configure: WARNING: tcpd.h not found
35 +./configure: 8453: test: X: unexpected operator
36 +checking that generated files are newer than configure... done
37 +--- a/configure.ac
38 ++++ b/configure.ac
39 +@@ -283,7 +283,7 @@ AC_ARG_WITH([pid-dir],
40 + [AS_HELP_STRING([--with-pid-dir=DIRECTORY], [Create PID files in this directory instead of /var/run])],
41 + [with_pid_dir="$withval"]
42 + )
43 +-AS_IF([test "X$with_pid_dir" == "X" -o "$with_pid_dir" == "yes" -o "$with_pid_dir" == "no"],[
44 ++AS_IF([test "X$with_pid_dir" = "X" -o "$with_pid_dir" = "yes" -o "$with_pid_dir" = "no"],[
45 + with_pid_dir="/var/run"
46 + ])
47 + AC_DEFINE_UNQUOTED([PID_DIR], ["$with_pid_dir"], [Directory for PID files])
48
49 diff --git a/sys-fs/quota/files/quota-4.09-gettext-version.patch b/sys-fs/quota/files/quota-4.09-gettext-version.patch
50 new file mode 100644
51 index 000000000000..1dc194f8b473
52 --- /dev/null
53 +++ b/sys-fs/quota/files/quota-4.09-gettext-version.patch
54 @@ -0,0 +1,14 @@
55 +https://sourceforge.net/p/linuxquota/bugs/142/
56 +
57 +Avoids e.g. egrep warnings.
58 +--- a/configure.ac
59 ++++ b/configure.ac
60 +@@ -43,7 +43,7 @@ AC_CHECK_FUNC([nl_langinfo], [
61 + # Gettext support
62 + # ===============
63 + AM_GNU_GETTEXT([external])
64 +-AM_GNU_GETTEXT_VERSION([0.12.1])
65 ++AM_GNU_GETTEXT_VERSION([0.21])
66 +
67 + AS_IF([test "$enable_nls" != "no"], [
68 + enable_nls="yes"
69
70 diff --git a/sys-fs/quota/quota-4.09.ebuild b/sys-fs/quota/quota-4.09.ebuild
71 new file mode 100644
72 index 000000000000..2c2297f50915
73 --- /dev/null
74 +++ b/sys-fs/quota/quota-4.09.ebuild
75 @@ -0,0 +1,84 @@
76 +# Copyright 1999-2022 Gentoo Authors
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI=8
80 +
81 +inherit autotools
82 +
83 +DESCRIPTION="Linux quota tools"
84 +HOMEPAGE="https://sourceforge.net/projects/linuxquota/"
85 +SRC_URI="mirror://sourceforge/linuxquota/${P}.tar.gz"
86 +
87 +LICENSE="GPL-2"
88 +SLOT="0"
89 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
90 +IUSE="ldap netlink nls rpc tcpd"
91 +
92 +RDEPEND="
93 + sys-fs/e2fsprogs
94 + ldap? ( >=net-nds/openldap-2.3.35:= )
95 + netlink? (
96 + sys-apps/dbus
97 + dev-libs/libnl:3
98 + )
99 + rpc? (
100 + elibc_glibc? ( sys-libs/glibc[-rpc(-)] )
101 + net-libs/libtirpc:=
102 + net-libs/rpcsvc-proto
103 + )
104 + tcpd? ( sys-apps/tcp-wrappers )
105 +"
106 +DEPEND="${RDEPEND}"
107 +BDEPEND="nls? ( sys-devel/gettext )"
108 +PDEPEND="rpc? ( net-nds/rpcbind )"
109 +
110 +PATCHES=(
111 + "${FILESDIR}"/${PN}-4.09-configure-bashism.patch
112 + "${FILESDIR}"/${PN}-4.09-gettext-version.patch
113 +)
114 +
115 +src_prepare() {
116 + default
117 +
118 + # Only needed for bashism patch and stale macros patch
119 + eautoreconf
120 +}
121 +
122 +src_configure() {
123 + local myeconfargs=(
124 + --enable-ext2direct
125 + $(use_enable nls)
126 + $(use_enable ldap ldapmail)
127 + $(use_enable netlink)
128 + $(use_enable rpc)
129 + $(use_enable rpc rpcsetquota)
130 + )
131 +
132 + econf "${myeconfargs[@]}"
133 +}
134 +
135 +src_install() {
136 + emake DESTDIR="${D}" install
137 + dodoc doc/* README.* Changelog
138 +
139 + insinto /etc
140 + insopts -m0644
141 + doins warnquota.conf quotatab
142 +
143 + newinitd "${FILESDIR}"/quota.rc7 quota
144 + newconfd "${FILESDIR}"/quota.confd quota
145 +
146 + if use rpc ; then
147 + newinitd "${FILESDIR}"/rpc.rquotad.initd rpc.rquotad
148 + fi
149 +
150 + if use ldap ; then
151 + insinto /etc/openldap/schema
152 + insopts -m0644
153 + doins "${FILESDIR}"/ldap-scripts/quota.schema
154 +
155 + exeinto /usr/share/quota/ldap-scripts
156 + doexe "${FILESDIR}"/ldap-scripts/*.pl
157 + doexe "${FILESDIR}"/ldap-scripts/edquota_editor
158 + fi
159 +}