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