1 |
commit: 89e9362a848c2b996ff202eb12cdb35dc7258f53 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 17 13:50:53 2017 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 17 13:54:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89e9362a |
7 |
|
8 |
net-fs/autofs: version bump, 5.1.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
net-fs/autofs/Manifest | 1 + |
13 |
net-fs/autofs/autofs-5.1.3.ebuild | 114 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 115 insertions(+) |
15 |
|
16 |
diff --git a/net-fs/autofs/Manifest b/net-fs/autofs/Manifest |
17 |
index 60371f076a0..b43caed5294 100644 |
18 |
--- a/net-fs/autofs/Manifest |
19 |
+++ b/net-fs/autofs/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST autofs-5.0.7.tar.bz2 319117 SHA256 08c4304d8076dc80c14df559bc5fd821b67ef345 |
21 |
DIST autofs-5.1.1-patches-0.tar.lzma 41178 SHA256 ef9f94aacff845d29d3118c73ca7d08199d40a7de5edae1025d341530e7dc2b4 SHA512 5c3ba26711401b3f9dc8cd36d3a85b1a8efce409621efedfc4f1caf2a15536646f6f89a79b8e12c703d3b3a4627ecda8c800386ebff34e20fdfad39041d91aa4 WHIRLPOOL d3d91c432e643911a4d8b5463e056aa50c717c08287e6ccf75bf1d6ca071460cc709aa32387f53cbe763de27b86eef1e26ab75a2fd334c783fd024b9f1d47ba3 |
22 |
DIST autofs-5.1.1.tar.xz 290300 SHA256 e08ff0ef9ff365d87b6c33dca136d20e4e07675197a324f2816894cb437021c3 SHA512 37c0f10ee06bbfc76059ff9ae54d9b462f1c2bc39e8779e96dd5bfc2b07055606c0710f1c3de95e6f099edd2c5bb5a6f8a341be989d7554bf80011bfbe90c905 WHIRLPOOL 063e7bcabb3e93a17e8e7da75e6b42af59769e794e3b31240762a4617cc2ac626b4b4985a38455bdca56753fb897fed1a3173c633f1f9a594e79f891dc41f523 |
23 |
DIST autofs-5.1.2.tar.xz 294792 SHA256 88b7de39088aead983e02072a7b753d5ee52ce419c8913f7a3d4ff5521313f0c SHA512 435bcb41c9d467947c194d879e46692b5976131b8e923793bdeac34f70420ede740c4d70ec393413fff0b1010495ac7fe5fa8b45a59d15a2430ecae9ec3fe7e1 WHIRLPOOL d0e53d1d41bf31c8bf6358053b1a0668dcc0a84ee92ff69ade86a6731bfb0945f41cab5b2dd62d7c086219095c20db43c91a074ce321fd5db870a5f16af7bce0 |
24 |
+DIST autofs-5.1.3.tar.xz 300632 SHA256 e96eebfe3ed5fb1a30f4510f538198affde223e370c6dc2bed9780309272b1bf SHA512 d5363f4442be5258465140920a32cb63340c5da060ef2e66678f003d6a0c00579880837f0a04f59c7bce57d1cbc0f42bdd26546a2195f87e7bd46334c9e32e35 WHIRLPOOL f3fd7ae400a858ddc888970d1435d0b408b8d11534e22db765782cede3a31604456beed27024066fa9afc1d124602ce07589bd4fd3d8fa89c9becbc676d26fa9 |
25 |
|
26 |
diff --git a/net-fs/autofs/autofs-5.1.3.ebuild b/net-fs/autofs/autofs-5.1.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..808d017442b |
29 |
--- /dev/null |
30 |
+++ b/net-fs/autofs/autofs-5.1.3.ebuild |
31 |
@@ -0,0 +1,114 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+AUTOTOOLS_AUTORECONF=true |
38 |
+AUTOTOOLS_IN_SOURCE_BUILD=true |
39 |
+ |
40 |
+inherit autotools-utils linux-info multilib systemd toolchain-funcs |
41 |
+ |
42 |
+PATCH_VER= |
43 |
+[[ -n ${PATCH_VER} ]] && \ |
44 |
+ PATCHSET_URI="https://dev.gentoo.org/~jlec/distfiles/${P}-patches-${PATCH_VER}.tar.lzma" |
45 |
+ |
46 |
+DESCRIPTION="Kernel based automounter" |
47 |
+HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" |
48 |
+SRC_URI=" |
49 |
+ mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.xz |
50 |
+ ${PATCHSET_URI}" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
55 |
+IUSE="-dmalloc hesiod ldap libtirpc mount-locking sasl" |
56 |
+ |
57 |
+# USE="sasl" adds SASL support to the LDAP module which will not be build. If |
58 |
+# SASL support should be available, please add "ldap" to the USE flags. |
59 |
+REQUIRED_USE="sasl? ( ldap )" |
60 |
+ |
61 |
+# currently, sasl code assumes the presence of kerberosV |
62 |
+RDEPEND=">=sys-apps/util-linux-2.20 |
63 |
+ dmalloc? ( dev-libs/dmalloc[threads] ) |
64 |
+ hesiod? ( net-dns/hesiod ) |
65 |
+ ldap? ( >=net-nds/openldap-2.0 |
66 |
+ sasl? ( |
67 |
+ dev-libs/cyrus-sasl |
68 |
+ dev-libs/libxml2 |
69 |
+ virtual/krb5 |
70 |
+ ) |
71 |
+ ) |
72 |
+ libtirpc? ( net-libs/libtirpc )" |
73 |
+ |
74 |
+DEPEND="${RDEPEND} |
75 |
+ sys-devel/flex |
76 |
+ virtual/yacc" |
77 |
+ |
78 |
+CONFIG_CHECK="~AUTOFS4_FS" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ # Upstream's patchset |
82 |
+ if [[ -n ${PATCH_VER} ]]; then |
83 |
+ EPATCH_SUFFIX="patch" \ |
84 |
+ epatch "${WORKDIR}"/patches |
85 |
+ fi |
86 |
+ |
87 |
+ sed -i -e "s:/usr/bin/kill:/bin/kill:" samples/autofs.service.in || die #bug #479492 |
88 |
+ autotools-utils_src_prepare |
89 |
+} |
90 |
+ |
91 |
+src_configure() { |
92 |
+ # bug #483716 |
93 |
+ tc-export AR |
94 |
+ # --with-confdir is for bug #361481 |
95 |
+ # --with-mapdir is for bug #385113 |
96 |
+ local myeconfargs=( |
97 |
+ --with-confdir=/etc/conf.d |
98 |
+ --with-mapdir=/etc/autofs |
99 |
+ $(use_with dmalloc) |
100 |
+ $(use_with ldap openldap) |
101 |
+ $(use_with libtirpc) |
102 |
+ $(use_with sasl) |
103 |
+ $(use_with hesiod) |
104 |
+ $(use_enable mount-locking) |
105 |
+ --disable-ext-env |
106 |
+ --enable-sloppy-mount # bug #453778 |
107 |
+ --enable-force-shutdown |
108 |
+ --enable-ignore-busy |
109 |
+ --with-systemd="$(systemd_get_unitdir)" #bug #479492 |
110 |
+ RANLIB="$(type -P $(tc-getRANLIB))" # bug #483716 |
111 |
+ ) |
112 |
+ autotools-utils_src_configure |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ autotools-utils_src_compile DONTSTRIP=1 |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ autotools-utils_src_install |
121 |
+ |
122 |
+ if kernel_is -lt 2 6 30; then |
123 |
+ # kernel patches |
124 |
+ docinto patches |
125 |
+ dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch |
126 |
+ fi |
127 |
+ newinitd "${FILESDIR}"/autofs5.initd autofs |
128 |
+ insinto etc/autofs |
129 |
+ newins "${FILESDIR}"/autofs5-auto.master auto.master |
130 |
+} |
131 |
+ |
132 |
+pkg_postinst() { |
133 |
+ if kernel_is -lt 2 6 30; then |
134 |
+ elog "This version of ${PN} requires a kernel with autofs4 supporting" |
135 |
+ elog "protocol version 5.00. Patches for kernels older than 2.6.30 have" |
136 |
+ elog "been installed into" |
137 |
+ elog "${EROOT}usr/share/doc/${P}/patches." |
138 |
+ elog "For further instructions how to patch the kernel, please refer to" |
139 |
+ elog "${EROOT}usr/share/doc/${P}/INSTALL." |
140 |
+ elog |
141 |
+ fi |
142 |
+ elog "If you plan on using autofs for automounting remote NFS mounts," |
143 |
+ elog "please check that both portmap (or rpcbind) and rpc.statd/lockd" |
144 |
+ elog "are running." |
145 |
+} |