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.5-r3.ebuild autofs-5.0.5-r2.ebuild
Date: Sat, 30 Apr 2011 18:21:01
Message-Id: 20110430182050.F1DA620054@flycatcher.gentoo.org
1 pva 11/04/30 18:20:50
2
3 Modified: ChangeLog
4 Added: autofs-5.0.5-r3.ebuild
5 Removed: autofs-5.0.5-r2.ebuild
6 Log:
7 Fix ldap linkage yet again, bug #362551, thank Joshua Rich for report.
8
9 (Portage version: 2.1.9.46/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.104 net-fs/autofs/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.104&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.104&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?r1=1.103&r2=1.104
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v
21 retrieving revision 1.103
22 retrieving revision 1.104
23 diff -u -r1.103 -r1.104
24 --- ChangeLog 6 Apr 2011 15:03:01 -0000 1.103
25 +++ ChangeLog 30 Apr 2011 18:20:50 -0000 1.104
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-fs/autofs
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.103 2011/04/06 15:03:01 pva Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.104 2011/04/30 18:20:50 pva Exp $
31 +
32 +*autofs-5.0.5-r3 (30 Apr 2011)
33 +
34 + 30 Apr 2011; Peter Volkov <pva@g.o> -autofs-5.0.5-r2.ebuild,
35 + +autofs-5.0.5-r3.ebuild, files/autofs-5.0.5-fix-building-without-ldap.patch:
36 + Fix ldap linkage yet again, bug #362551, thank Joshua Rich for report.
37
38 06 Apr 2011; Peter Volkov <pva@g.o> autofs-5.0.5-r2.ebuild,
39 +files/autofs-5.0.5-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patc
40
41
42
43 1.1 net-fs/autofs/autofs-5.0.5-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.5-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.5-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: autofs-5.0.5-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.5-r3.ebuild,v 1.1 2011/04/30 18:20:50 pva Exp $
53
54 EAPI="4"
55 inherit eutils multilib autotools linux-info
56
57 DESCRIPTION="Kernel based automounter"
58 HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html"
59 PATCH_VER="3"
60 SRC_URI="mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.bz2
61 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="hesiod ldap sasl"
67
68 # USE="sasl" adds SASL support to the LDAP module which will not be build. If
69 # SASL support should be available, please add "ldap" to the USE flags.
70 REQUIRED_USE="sasl? ( ldap )"
71
72 # currently, sasl code assumes the presence of kerberosV
73 RDEPEND="hesiod? ( net-dns/hesiod )
74 ldap? ( >=net-nds/openldap-2.0
75 sasl? ( dev-libs/cyrus-sasl
76 dev-libs/libxml2
77 virtual/krb5 ) )"
78 DEPEND="${RDEPEND}"
79
80 src_prepare() {
81 # Upstream's patchset
82 EPATCH_SUFFIX="patch" \
83 epatch "${WORKDIR}"/patches
84
85 # Fix for bug #210762
86 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/4203
87 epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch
88
89 # Accumulated fixes for bugs
90 # #154797: Respect CC and CFLAGS
91 # #253412: Respect LDFLAGS
92 # #247969: Link order for --as-needed
93 epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded-v1.patch
94
95 # do not include <nfs/nfs.h>, rather <linux/nfs.h>,
96 # as the former is a lame header for the latter (bug #157968)
97 sed 's@nfs/nfs.h@linux/nfs.h@' -i include/rpc_subs.h || die
98
99 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5591
100 epatch "${FILESDIR}"/${P}-fix-building-without-sasl.patch
101
102 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5371
103 epatch "${FILESDIR}"/${P}-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}"/${P}-fix-building-without-ldap.patch
108
109 # https://bugs.gentoo.org/show_bug.cgi?id=361899
110 epatch "${FILESDIR}"/${P}-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 }
140
141 pkg_postinst() {
142 if kernel_is -lt 2 6 30; then
143 elog "This version of ${PN} requires a kernel with autofs4 supporting"
144 elog "protocol version 5.00. Patches for kernels older than 2.6.30 have"
145 elog "been installed into"
146 elog "${EROOT}usr/share/doc/${P}/patches."
147 elog "For further instructions how to patch the kernel, please refer to"
148 elog "${EROOT}usr/share/doc/${P}/INSTALL."
149 elog
150 fi
151 elog "If you plan on using autofs for automounting remote NFS mounts,"
152 elog "please check that both portmap (or rpcbind) and rpc.statd/lockd"
153 elog "are running."
154 }