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-r1.ebuild
Date: Fri, 01 Jul 2011 11:24:19
Message-Id: 20110701112407.280DB2004B@flycatcher.gentoo.org
1 pva 11/07/01 11:24:07
2
3 Modified: ChangeLog
4 Added: autofs-5.0.6-r1.ebuild
5 Log:
6 Fix regression in the ipv6 lookup, bug #373577 thank Juergen Rose for report and Dustin Polke for the fix.
7
8 (Portage version: 2.1.10.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.112 net-fs/autofs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 28 Jun 2011 14:06:07 -0000 1.111
24 +++ ChangeLog 1 Jul 2011 11:24:07 -0000 1.112
25 @@ -1,6 +1,13 @@
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.111 2011/06/28 14:06:07 pva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.112 2011/07/01 11:24:07 pva Exp $
30 +
31 +*autofs-5.0.6-r1 (01 Jul 2011)
32 +
33 + 01 Jul 2011; Peter Volkov <pva@g.o> +autofs-5.0.6-r1.ebuild,
34 + +files/autofs-5.0.6-ipv6_name_lookup_regression.patch:
35 + Fix regression in the ipv6 lookup, bug #373577 thank Juergen Rose for report
36 + and Dustin Polke for the fix.
37
38 *autofs-5.0.6 (28 Jun 2011)
39
40
41
42
43 1.1 net-fs/autofs/autofs-5.0.6-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.6-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/autofs-5.0.6-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: autofs-5.0.6-r1.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.6-r1.ebuild,v 1.1 2011/07/01 11:24:07 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=""
60 [[ -n ${PATCH_VER} ]] && \
61 PATCHSET_URI="mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma"
62 SRC_URI="mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.bz2
63 ${PATCHSET_URI}"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
68 IUSE="hesiod ldap sasl"
69
70 # USE="sasl" adds SASL support to the LDAP module which will not be build. If
71 # SASL support should be available, please add "ldap" to the USE flags.
72 REQUIRED_USE="sasl? ( ldap )"
73
74 # currently, sasl code assumes the presence of kerberosV
75 RDEPEND="hesiod? ( net-dns/hesiod )
76 ldap? ( >=net-nds/openldap-2.0
77 sasl? ( dev-libs/cyrus-sasl
78 dev-libs/libxml2
79 virtual/krb5 ) )"
80 DEPEND="${RDEPEND}"
81
82 src_prepare() {
83 # Upstream's patchset
84 if [[ -n ${PATCH_VER} ]]; then
85 EPATCH_SUFFIX="patch" \
86 epatch "${WORKDIR}"/patches
87 fi
88
89 # Fix for bug #210762
90 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/4203
91 epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch
92
93 # Accumulated fixes for bugs
94 # #154797: Respect CC and CFLAGS
95 # #253412: Respect LDFLAGS
96 # #247969: Link order for --as-needed
97 epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded.patch
98
99 # do not include <nfs/nfs.h>, rather <linux/nfs.h>,
100 # as the former is a lame header for the latter (bug #157968)
101 sed 's@nfs/nfs.h@linux/nfs.h@' -i include/rpc_subs.h || die
102
103 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5371
104 epatch "${FILESDIR}"/${PN}-5.0.5-fix-install-deadlink.patch
105
106 # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/6039
107 # Disable LDAP specific code if USE="-ldap", let's see what upstream says...
108 epatch "${FILESDIR}"/${PN}-5.0.5-fix-building-without-ldap.patch
109
110 # https://bugs.gentoo.org/show_bug.cgi?id=361899
111 epatch "${FILESDIR}"/${PN}-5.0.5-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patch
112
113 # Fix for bug #373577
114 # Upstream reference: http://article.gmane.org/gmane.linux.kernel.autofs/6187
115 # Fix regression in IPv6 name lookup regression
116 epatch "${FILESDIR}"/${P}-ipv6_name_lookup_regression.patch
117
118 eautoreconf
119 }
120
121 src_configure() {
122 # work around bug #355975 (mount modifies timestamp of /etc/mtab)
123 # with >=sys-apps/util-linux-2.19,
124 addpredict "/etc/mtab"
125
126 # --with-confdir is for bug #361481
127 econf \
128 --with-confdir=/etc/conf.d \
129 $(use_with ldap openldap) \
130 $(use_with sasl) \
131 $(use_with hesiod) \
132 --enable-ignore-busy
133 }
134
135 src_install() {
136 emake DESTDIR="${D}" install
137
138 dodoc README* CHANGELOG CREDITS COPYRIGHT INSTALL
139
140 # kernel patches
141 docinto patches
142 dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch
143
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 }