Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/autofs: ChangeLog autofs-5.0.9.ebuild
Date: Fri, 28 Mar 2014 22:03:56
Message-Id: 20140328220348.A13B520051@flycatcher.gentoo.org
1 dlan 14/03/28 22:03:48
2
3 Modified: ChangeLog
4 Added: autofs-5.0.9.ebuild
5 Log:
6 bump to 5.0.9
7
8 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
9
10 Revision Changes Path
11 1.174 net-fs/autofs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.174&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.174&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?r1=1.173&r2=1.174
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v
20 retrieving revision 1.173
21 retrieving revision 1.174
22 diff -u -r1.173 -r1.174
23 --- ChangeLog 17 Jan 2014 07:17:41 -0000 1.173
24 +++ ChangeLog 28 Mar 2014 22:03:48 -0000 1.174
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-fs/autofs
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.173 2014/01/17 07:17:41 dlan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.174 2014/03/28 22:03:48 dlan Exp $
30 +
31 +*autofs-5.0.9 (28 Mar 2014)
32 +
33 + 28 Mar 2014; Yixun Lan <dlan@g.o> +autofs-5.0.9.ebuild:
34 + bump to 5.0.9
35
36 17 Jan 2014; Yixun Lan <dlan@g.o> metadata.xml:
37 update maintainer email
38
39
40
41 1.1 net-fs/autofs/autofs-5.0.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: autofs-5.0.9.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.9.ebuild,v 1.1 2014/03/28 22:03:48 dlan Exp $
51
52 EAPI=5
53
54 AUTOTOOLS_AUTORECONF=true
55 AUTOTOOLS_IN_SOURCE_BUILD=true
56
57 inherit autotools-utils linux-info multilib systemd toolchain-funcs
58
59 PATCH_VER=
60 [[ -n ${PATCH_VER} ]] && \
61 PATCHSET_URI="http://dev.gentoo.org/~jlec/distfiles/${P}-patches-${PATCH_VER}.tar.lzma"
62
63 DESCRIPTION="Kernel based automounter"
64 HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html"
65 SRC_URI="
66 mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.xz
67 ${PATCHSET_URI}"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
72 IUSE="-dmalloc hesiod ldap libtirpc mount-locking sasl"
73
74 # USE="sasl" adds SASL support to the LDAP module which will not be build. If
75 # SASL support should be available, please add "ldap" to the USE flags.
76 REQUIRED_USE="sasl? ( ldap )"
77
78 # currently, sasl code assumes the presence of kerberosV
79 RDEPEND=">=sys-apps/util-linux-2.20
80 dmalloc? ( dev-libs/dmalloc[threads] )
81 hesiod? ( net-dns/hesiod )
82 ldap? ( >=net-nds/openldap-2.0
83 sasl? (
84 dev-libs/cyrus-sasl
85 dev-libs/libxml2
86 virtual/krb5
87 )
88 )
89 libtirpc? ( net-libs/libtirpc )"
90
91 DEPEND="${RDEPEND}
92 sys-devel/flex
93 virtual/yacc"
94
95 CONFIG_CHECK="~AUTOFS4_FS"
96
97 src_prepare() {
98 # Upstream's patchset
99 if [[ -n ${PATCH_VER} ]]; then
100 EPATCH_SUFFIX="patch" \
101 epatch "${WORKDIR}"/patches
102 fi
103
104 sed -i -e "s:/usr/bin/kill:/bin/kill:" samples/autofs.service.in || die #bug #479492
105 autotools-utils_src_prepare
106 }
107
108 src_configure() {
109 # bug #483716
110 tc-export AR
111 # --with-confdir is for bug #361481
112 # --with-mapdir is for bug #385113
113 local myeconfargs=(
114 --with-confdir=/etc/conf.d
115 --with-mapdir=/etc/autofs
116 $(use_with dmalloc)
117 $(use_with ldap openldap)
118 $(use_with libtirpc)
119 $(use_with sasl)
120 $(use_with hesiod)
121 $(use_enable mount-locking)
122 --disable-ext-env
123 --enable-sloppy-mount # bug #453778
124 --enable-force-shutdown
125 --enable-ignore-busy
126 --with-systemd="$(systemd_get_unitdir)" #bug #479492
127 RANLIB="$(type -P $(tc-getRANLIB))" # bug #483716
128 )
129 autotools-utils_src_configure
130 }
131
132 src_compile() {
133 autotools-utils_src_compile DONTSTRIP=1
134 }
135
136 src_install() {
137 autotools-utils_src_install
138
139 if kernel_is -lt 2 6 30; then
140 # kernel patches
141 docinto patches
142 dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch
143 fi
144 newinitd "${FILESDIR}"/autofs5.initd autofs
145 insinto etc/autofs
146 newins "${FILESDIR}"/autofs5-auto.master auto.master
147 }
148
149 pkg_postinst() {
150 if kernel_is -lt 2 6 30; then
151 elog "This version of ${PN} requires a kernel with autofs4 supporting"
152 elog "protocol version 5.00. Patches for kernels older than 2.6.30 have"
153 elog "been installed into"
154 elog "${EROOT}usr/share/doc/${P}/patches."
155 elog "For further instructions how to patch the kernel, please refer to"
156 elog "${EROOT}usr/share/doc/${P}/INSTALL."
157 elog
158 fi
159 elog "If you plan on using autofs for automounting remote NFS mounts,"
160 elog "please check that both portmap (or rpcbind) and rpc.statd/lockd"
161 elog "are running."
162 }