Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/autofs/
Date: Wed, 24 Nov 2021 10:20:51
Message-Id: 1637748394.f4732d539d40ef12abd6fd4b2d5e0c1a3776f9f4.dlan@gentoo
1 commit: f4732d539d40ef12abd6fd4b2d5e0c1a3776f9f4
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 24 10:06:34 2021 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 24 10:06:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4732d53
7
8 net-fs/autofs: version bump, 5.1.8
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
12
13 net-fs/autofs/Manifest | 1 +
14 net-fs/autofs/autofs-5.1.8.ebuild | 129 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 130 insertions(+)
16
17 diff --git a/net-fs/autofs/Manifest b/net-fs/autofs/Manifest
18 index 2dd24948a6bf..9c7a467de824 100644
19 --- a/net-fs/autofs/Manifest
20 +++ b/net-fs/autofs/Manifest
21 @@ -1,2 +1,3 @@
22 DIST autofs-5.1.6.tar.xz 315316 BLAKE2B 0c5e2351462505c6de0b12e510f0c08a625a0235e1ff8eeaff825946c4530c258449d26aaf6a3794aa82a97e8860711226168f434dd31bfb8a4e70287beb3ca4 SHA512 dc8b2bd86c140905dd1bc461bfc469f92363d9c2687fe422e1e751cc7ad64c0733b011c80bf4840e510e5909176cd1a066968b9a5ba835b62c4cf27537863cf2
23 DIST autofs-5.1.7.tar.xz 327752 BLAKE2B bff290048fb2849dd4c7099718f6824eac7e4f700909342f82b79a3baa752c4efe7f45be3492578fa15df6d959751be5d7fae5aafe129b52425c0d9ab19eaccc SHA512 cf994d0e68d5f6a5647235000743811a791150ece0a90ed9e1cb9bb131259f52769371c6a06d968b7191b10e709c9c90de611cc3ee310fbbea87f60034b3d4e1
24 +DIST autofs-5.1.8.tar.xz 327396 BLAKE2B 22ef626cc867c1ed4f1f859aebe2547c497c35dea712967de70158e85db590f5ffc26165e1479cfc64eb8070a9c43fd06b1570a82bd8bbbac70f2930e1841718 SHA512 6ee6283c0977c82848a654dc24745ee687f6916de441c3688fa91f67ca7295e632ee3808cc2358984a4b9f19841e6e1a91ab48aad6341ac8e63827fe8c32d223
25
26 diff --git a/net-fs/autofs/autofs-5.1.8.ebuild b/net-fs/autofs/autofs-5.1.8.ebuild
27 new file mode 100644
28 index 000000000000..ede180337421
29 --- /dev/null
30 +++ b/net-fs/autofs/autofs-5.1.8.ebuild
31 @@ -0,0 +1,129 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit linux-info systemd toolchain-funcs
38 +
39 +DESCRIPTION="Kernel based automounter"
40 +HOMEPAGE="https://web.archive.org/web/*/http://www.linux-consulting.com/Amd_AutoFS/autofs.html"
41 +SRC_URI="https://www.kernel.org/pub/linux/daemons/${PN}/v5/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
46 +IUSE="dmalloc ldap +libtirpc mount-locking sasl systemd"
47 +
48 +# currently, sasl code assumes the presence of kerberosV
49 +RDEPEND="
50 + net-libs/libnsl:=
51 + >=sys-apps/util-linux-2.20
52 + dmalloc? ( dev-libs/dmalloc[threads] )
53 + ldap? ( >=net-nds/openldap-2.0
54 + sasl? (
55 + dev-libs/cyrus-sasl
56 + dev-libs/libxml2
57 + virtual/krb5
58 + )
59 + )
60 + systemd? ( sys-apps/systemd )
61 + libtirpc? ( net-libs/libtirpc )
62 + !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) )
63 +"
64 +DEPEND="${RDEPEND}
65 + libtirpc? ( net-libs/rpcsvc-proto )
66 +"
67 +BDEPEND="
68 + sys-devel/flex
69 + virtual/pkgconfig
70 + virtual/yacc
71 +"
72 +
73 +PATCHES=(
74 + "${FILESDIR}/${PN}-5.1.7-glibc.patch"
75 + "${FILESDIR}/${PN}-5.1.6-musl.patch"
76 + "${FILESDIR}/${PN}-5.1.6-pid.patch"
77 +)
78 +
79 +pkg_setup() {
80 + linux-info_pkg_setup
81 +
82 + local CONFIG_CHECK
83 +
84 + if kernel_is -ge 4 18; then
85 + CONFIG_CHECK="~AUTOFS_FS"
86 + else
87 + CONFIG_CHECK="~AUTOFS4_FS"
88 + fi
89 +
90 + check_extra_config
91 +}
92 +
93 +src_prepare() {
94 + sed -i -e "s:/usr/bin/kill:/bin/kill:" samples/autofs.service.in || die # bug #479492
95 + sed -i -e "/^EnvironmentFile/d" samples/autofs.service.in || die # bug #592334
96 +
97 + # Install samples including autofs.service
98 + sed -i -e "/^SUBDIRS/s/$/ samples/g" Makefile.rules || die
99 +
100 + default
101 +}
102 +
103 +src_configure() {
104 + # bug #483716
105 + tc-export AR
106 + # --with-confdir is for bug #361481
107 + # --with-mapdir is for bug #385113
108 + local myeconfargs=(
109 + --with-confdir=/etc/conf.d
110 + --with-mapdir=/etc/autofs
111 + $(use_with dmalloc)
112 + $(use_with ldap openldap)
113 + $(use_with libtirpc)
114 + $(use_with sasl)
115 + $(use_enable mount-locking)
116 + $(use_with systemd systemd $(systemd_get_systemunitdir)) # bug #479492
117 + --without-hesiod
118 + --disable-ext-env
119 + --enable-sloppy-mount # bug #453778
120 + --enable-force-shutdown
121 + --enable-ignore-busy
122 + RANLIB="$(type -P $(tc-getRANLIB))" # bug #483716
123 + )
124 +
125 + CONFIG_SHELL="${BROOT}/bin/bash" econf "${myeconfargs[@]}"
126 +}
127 +
128 +src_compile() {
129 + export DONTSTRIP=1
130 + default
131 +}
132 +
133 +src_install() {
134 + default
135 + rmdir "${D}"/run
136 +
137 + if kernel_is -lt 2 6 30; then
138 + # kernel patches
139 + docinto patches
140 + dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch
141 + fi
142 + newinitd "${FILESDIR}"/autofs5.initd autofs
143 + insinto etc/autofs
144 + newins "${FILESDIR}"/autofs5-auto.master auto.master
145 +}
146 +
147 +pkg_postinst() {
148 + if kernel_is -lt 2 6 30; then
149 + elog "This version of ${PN} requires a kernel with autofs4 supporting"
150 + elog "protocol version 5.00. Patches for kernels older than 2.6.30 have"
151 + elog "been installed into"
152 + elog "${EROOT}/usr/share/doc/${P}/patches."
153 + elog "For further instructions how to patch the kernel, please refer to"
154 + elog "${EROOT}/usr/share/doc/${P}/INSTALL."
155 + elog
156 + fi
157 + elog "If you plan on using autofs for automounting remote NFS mounts,"
158 + elog "please check that both portmap (or rpcbind) and rpc.statd/lockd"
159 + elog "are running."
160 +}