Lines 1-22
Link Here
|
1 |
# Copyright 1999-2011 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.6-r5.ebuild,v 1.1 2011/12/17 03:45:15 pva Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.6-r5.ebuild,v 1.1 2011/12/17 03:45:15 pva Exp $ |
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI="4" |
6 |
inherit eutils multilib autotools linux-info |
6 |
inherit eutils multilib autotools linux-info versionator |
7 |
|
7 |
|
8 |
DESCRIPTION="Kernel based automounter" |
8 |
DESCRIPTION="Kernel based automounter" |
9 |
HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" |
9 |
HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" |
10 |
PATCH_VER="1" |
10 |
|
11 |
[[ -n ${PATCH_VER} ]] && \ |
11 |
if [[ $(get_version_component_count) == 3 ]]; then |
12 |
PATCHSET_URI="mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma" |
12 |
MY_P="${P}" |
13 |
SRC_URI="mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.bz2 |
13 |
else |
|
|
14 |
MY_P="${PN}-$(get_version_component_range 1-3)" |
15 |
PATCH_VER="$(get_version_component_range 4)" |
16 |
PATCH_VER="${PATCH_VER//p}" |
17 |
PATCHSET_URI="mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.lzma" |
18 |
S="${WORKDIR}/${MY_P}" |
19 |
fi |
20 |
SRC_URI="mirror://kernel/linux/daemons/${PN}/v5/${MY_P}.tar.bz2 |
14 |
${PATCHSET_URI}" |
21 |
${PATCHSET_URI}" |
15 |
|
22 |
|
16 |
LICENSE="GPL-2" |
23 |
LICENSE="GPL-2" |
17 |
SLOT="0" |
24 |
SLOT="0" |
18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
25 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
19 |
IUSE="hesiod ldap sasl" |
26 |
IUSE="hesiod ldap mount-locking sasl" |
20 |
|
27 |
|
21 |
# USE="sasl" adds SASL support to the LDAP module which will not be build. If |
28 |
# USE="sasl" adds SASL support to the LDAP module which will not be build. If |
22 |
# SASL support should be available, please add "ldap" to the USE flags. |
29 |
# SASL support should be available, please add "ldap" to the USE flags. |
Lines 48-56
src_prepare() {
Link Here
|
48 |
# #154797: Respect CC and CFLAGS |
55 |
# #154797: Respect CC and CFLAGS |
49 |
# #253412: Respect LDFLAGS |
56 |
# #253412: Respect LDFLAGS |
50 |
# #247969: Link order for --as-needed |
57 |
# #247969: Link order for --as-needed |
51 |
epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded-r2.patch |
58 |
epatch "${FILESDIR}"/${MY_P}-respect-user-flags-and-fix-asneeded-r2.patch |
52 |
|
59 |
|
53 |
# Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5371 |
60 |
# Upstream reference: htpp://thread.gmane.org/gmane.linux.kernel.autofs/5371 |
54 |
epatch "${FILESDIR}"/${PN}-5.0.5-fix-install-deadlink.patch |
61 |
epatch "${FILESDIR}"/${PN}-5.0.5-fix-install-deadlink.patch |
55 |
|
62 |
|
56 |
# Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/6039 |
63 |
# Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/6039 |
Lines 61-67
src_prepare() {
Link Here
|
61 |
epatch "${FILESDIR}"/${PN}-5.0.5-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patch |
68 |
epatch "${FILESDIR}"/${PN}-5.0.5-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patch |
62 |
|
69 |
|
63 |
# https://bugs.gentoo.org/show_bug.cgi?id=381315 |
70 |
# https://bugs.gentoo.org/show_bug.cgi?id=381315 |
64 |
epatch "${FILESDIR}"/${P}-revert-ldap.patch |
71 |
epatch "${FILESDIR}"/${MY_P}-revert-ldap.patch |
65 |
eautoreconf |
72 |
eautoreconf |
66 |
} |
73 |
} |
67 |
|
74 |
|
Lines 81-86
src_configure() {
Link Here
|
81 |
$(use_with ldap openldap) \ |
88 |
$(use_with ldap openldap) \ |
82 |
$(use_with sasl) \ |
89 |
$(use_with sasl) \ |
83 |
$(use_with hesiod) \ |
90 |
$(use_with hesiod) \ |
|
|
91 |
$(use_enable mount-locking) \ |
84 |
--enable-ignore-busy |
92 |
--enable-ignore-busy |
85 |
} |
93 |
} |
86 |
|
94 |
|
Lines 111-114
pkg_postinst() {
Link Here
|
111 |
elog "If you plan on using autofs for automounting remote NFS mounts," |
119 |
elog "If you plan on using autofs for automounting remote NFS mounts," |
112 |
elog "please check that both portmap (or rpcbind) and rpc.statd/lockd" |
120 |
elog "please check that both portmap (or rpcbind) and rpc.statd/lockd" |
113 |
elog "are running." |
121 |
elog "are running." |
|
|
122 |
elog "Since autofs-5.0.6_p2, the behavior of autofs has changed to" |
123 |
elog "follow upstream's suggestion to allow concurrent automounting." |
124 |
elog "This might cause a corrupted /etc/mtab in rare cases." |
125 |
elog "Please report any problems arising from this. To restore the old" |
126 |
elog "behavior, enable the 'mount-locking' USE flag." |
114 |
} |
127 |
} |