From bab0b175abf9ac8251a9fd1aab3fc9aa1a9629af Mon Sep 17 00:00:00 2001 From: Peter Volkov Date: Sun, 15 May 2011 10:58:21 +0000 Subject: Revert QA removal, bug #324961, thank Dustin Polke for report. (Portage version: 2.1.9.49/cvs/Linux x86_64) --- net-fs/autofs/ChangeLog | 5 +-- net-fs/autofs/autofs-4.1.4.ebuild | 90 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 net-fs/autofs/autofs-4.1.4.ebuild (limited to 'net-fs/autofs') diff --git a/net-fs/autofs/ChangeLog b/net-fs/autofs/ChangeLog index d4c81cc6cb54..a37dd35ab911 100644 --- a/net-fs/autofs/ChangeLog +++ b/net-fs/autofs/ChangeLog @@ -1,9 +1,6 @@ # ChangeLog for net-fs/autofs # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.105 2011/05/12 15:38:22 darkside Exp $ - - 12 May 2011; Jeremy Olexa -autofs-4.1.4.ebuild: - QA: remove version with non-fetchable patchball +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.106 2011/05/15 10:58:21 pva Exp $ *autofs-5.0.5-r3 (30 Apr 2011) diff --git a/net-fs/autofs/autofs-4.1.4.ebuild b/net-fs/autofs/autofs-4.1.4.ebuild new file mode 100644 index 000000000000..4a8e8ab3fcd9 --- /dev/null +++ b/net-fs/autofs/autofs-4.1.4.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-4.1.4.ebuild,v 1.4 2011/05/15 10:58:21 pva Exp $ + +EAPI="4" + +inherit eutils multilib autotools + +PATCH_VER="1" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI="mirror://kernel/linux/daemons/${PN}/v4/${P}.tar.bz2 + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="hesiod ldap" + +DEPEND="hesiod? ( net-dns/hesiod ) + ldap? ( >=net-nds/openldap-2.0 )" +RDEPEND="${DEPEND}" + +UPSTREAM_FILESDIR="gentoo/${CATEGORY}/${PN}/files" + +src_prepare() { + EPATCH_SUFFIX="patch" \ + epatch "${WORKDIR}"/patches + + # Accumulated fixes for bugs + # #154797: Respect CC and CFLAGS + # #253412: Respect LDFLAGS + # #247969: Link order for --as-needed + epatch "${FILESDIR}"/${P}-respect-user-flags-and-fix-asneeded.patch + + # Reflect init script implementation + epatch "${FILESDIR}"/${P}-fix-man-pages.patch + + # Use Gentoo specific maps, init script and config file + for i in home master misc; do + if [ -e samples/auto.${i} ]; then + mv samples/auto.${i}{,.bak} || die "Failed to backup auto.${i}" + fi + ln -s "${S}/${UPSTREAM_FILESDIR}"/auto.${i} samples/auto.${i} || \ + die "Failed to symlink auto.${i}" + done + + # Clean-up maps and disable everything. + epatch "${FILESDIR}"/${P}-clean-up-maps.patch + + # Fix installation path of ldap samples and maps + epatch "${FILESDIR}"/${P}-fix-install-ldap-samples-and-maps.patch + + epatch "${FILESDIR}"/${P}-init.patch #Fix init script deps + + # Do not include , rather , + # as the former is a lame header for the latter (bug #157968) + sed 's@nfs/nfs.h@linux/nfs.h@' -i lib/rpc_subs.c || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_with ldap openldap) \ + $(use_with hesiod) +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc README* CHANGELOG CREDITS COPYRIGHT + + newinitd ${UPSTREAM_FILESDIR}/${PN}.init ${PN} + newconfd ${UPSTREAM_FILESDIR}/${PN}.conf ${PN} +} + +pkg_postinst() { + elog "If you plan on using autofs for automounting remote NFS mounts," + elog "please check that both portmap (or rpcbind) and rpc.statd/lockd" + elog "are running." + elog + elog "Also the normal autofs status has been renamed stats" + elog "as there is already a predefined Gentoo status" + if use ldap; then + elog + elog "Sample files for ldap have been installed into" + elog "${PREFIX}/usr/share/share/doc/${P}/samples." + fi +} -- cgit v1.2.3-65-gdbad