Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/autofs: ChangeLog autofs-5.0.6.ebuild
Date: Tue, 28 Jun 2011 14:07:54
Message-Id: 20110628140607.5802A20054@flycatcher.gentoo.org
1 pva 11/06/28 14:06:07
2
3 Modified: ChangeLog
4 Added: autofs-5.0.6.ebuild
5 Log:
6 Version bump, bug #373339 thank Dustin Polke for this job.
7
8 (Portage version: 2.1.10.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.111 net-fs/autofs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.111&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.111&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?r1=1.110&r2=1.111
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v
20 retrieving revision 1.110
21 retrieving revision 1.111
22 diff -u -r1.110 -r1.111
23 --- ChangeLog 25 Jun 2011 20:01:06 -0000 1.110
24 +++ ChangeLog 28 Jun 2011 14:06:07 -0000 1.111
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-fs/autofs
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.110 2011/06/25 20:01:06 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.111 2011/06/28 14:06:07 pva Exp $
30 +
31 +*autofs-5.0.6 (28 Jun 2011)
32 +
33 + 28 Jun 2011; Peter Volkov <pva@g.o> +autofs-5.0.6.ebuild,
34 + +files/autofs-5.0.6-respect-user-flags-and-fix-asneeded.patch:
35 + Version bump, bug #373339 thank Dustin Polke for this job.
36
37 25 Jun 2011; Markos Chandras <hwoarang@g.o> autofs-5.0.5-r4.ebuild:
38 Stable on amd64 wrt bug #372835
39
40
41
42 1.1 net-fs/autofs/autofs-5.0.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: autofs-5.0.6.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.6.ebuild,v 1.1 2011/06/28 14:06:07 pva Exp $
52
53 EAPI="4"
54 inherit eutils multilib autotools linux-info
55
56 DESCRIPTION="Kernel based automounter"
57 HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html"
58 PATCH_VER=""
59 [[ -n ${PATCH_VER} ]] && \
60 PATCHSET_URI="mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma"
61 SRC_URI="mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.bz2
62 ${PATCHSET_URI}"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
67 IUSE="hesiod ldap sasl"
68
69 # USE="sasl" adds SASL support to the LDAP module which will not be build. If
70 # SASL support should be available, please add "ldap" to the USE flags.
71 REQUIRED_USE="sasl? ( ldap )"
72
73 # currently, sasl code assumes the presence of kerberosV
74 RDEPEND="hesiod? ( net-dns/hesiod )
75 ldap? ( >=net-nds/openldap-2.0
76 sasl? ( dev-libs/cyrus-sasl
77 dev-libs/libxml2
78 virtual/krb5 ) )"
79 DEPEND="${RDEPEND}"
80
81 src_prepare() {
82 # Upstream's patchset
83 if [[ -n ${PATCH_VER} ]]; then
84 EPATCH_SUFFIX="patch" \
85 epatch "${WORKDIR}"/patches
86 fi
87
88 # Fix for bug #210762
89 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/4203
90 epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch
91
92 # Accumulated fixes for bugs
93 # #154797: Respect CC and CFLAGS
94 # #253412: Respect LDFLAGS
95 # #247969: Link order for --as-needed
96 epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded.patch
97
98 # do not include <nfs/nfs.h>, rather <linux/nfs.h>,
99 # as the former is a lame header for the latter (bug #157968)
100 sed 's@nfs/nfs.h@linux/nfs.h@' -i include/rpc_subs.h || die
101
102 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5371
103 epatch "${FILESDIR}"/${PN}-5.0.5-fix-install-deadlink.patch
104
105 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/6039
106 # Disable LDAP specific code if USE="-ldap", let's see what upstream says...
107 epatch "${FILESDIR}"/${PN}-5.0.5-fix-building-without-ldap.patch
108
109 # https://bugs.gentoo.org/show_bug.cgi?id=361899
110 epatch "${FILESDIR}"/${PN}-5.0.5-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patch
111
112 eautoreconf
113 }
114
115 src_configure() {
116 # work around bug #355975 (mount modifies timestamp of /etc/mtab)
117 # with >=sys-apps/util-linux-2.19,
118 addpredict "/etc/mtab"
119
120 # --with-confdir is for bug #361481
121 econf \
122 --with-confdir=/etc/conf.d \
123 $(use_with ldap openldap) \
124 $(use_with sasl) \
125 $(use_with hesiod) \
126 --enable-ignore-busy
127 }
128
129 src_install() {
130 emake DESTDIR="${D}" install
131
132 dodoc README* CHANGELOG CREDITS COPYRIGHT INSTALL
133
134 # kernel patches
135 docinto patches
136 dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch
137
138 newinitd "${FILESDIR}"/autofs5.initd autofs
139 insinto etc/autofs
140 newins "${FILESDIR}"/autofs5-auto.master auto.master
141 }
142
143 pkg_postinst() {
144 if kernel_is -lt 2 6 30; then
145 elog "This version of ${PN} requires a kernel with autofs4 supporting"
146 elog "protocol version 5.00. Patches for kernels older than 2.6.30 have"
147 elog "been installed into"
148 elog "${EROOT}usr/share/doc/${P}/patches."
149 elog "For further instructions how to patch the kernel, please refer to"
150 elog "${EROOT}usr/share/doc/${P}/INSTALL."
151 elog
152 fi
153 elog "If you plan on using autofs for automounting remote NFS mounts,"
154 elog "please check that both portmap (or rpcbind) and rpc.statd/lockd"
155 elog "are running."
156 }