diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2013-06-12 22:19:04 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2013-06-12 22:19:04 +0000 |
commit | 04af97cd844e379b8f08e6d8d9897db95596ef85 (patch) | |
tree | 5f82c65a6bfb36c44704007e21e768e68f541680 /net-fs | |
parent | Remove older unstable. Next in line for stabilization: 2.6.32-r169, 3.2.46, ... (diff) | |
download | gentoo-2-04af97cd844e379b8f08e6d8d9897db95596ef85.tar.gz gentoo-2-04af97cd844e379b8f08e6d8d9897db95596ef85.tar.bz2 gentoo-2-04af97cd844e379b8f08e6d8d9897db95596ef85.zip |
Update, now with proxy maintenance.
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/autofs/ChangeLog | 9 | ||||
-rw-r--r-- | net-fs/autofs/autofs-5.0.7-r2.ebuild | 129 | ||||
-rw-r--r-- | net-fs/autofs/autofs-9999.ebuild | 98 | ||||
-rw-r--r-- | net-fs/autofs/files/autofs-5.0.7-sasl-def.patch | 43 | ||||
-rw-r--r-- | net-fs/autofs/metadata.xml | 13 |
5 files changed, 291 insertions, 1 deletions
diff --git a/net-fs/autofs/ChangeLog b/net-fs/autofs/ChangeLog index 31e8b6a4096b..7614ff8e6378 100644 --- a/net-fs/autofs/ChangeLog +++ b/net-fs/autofs/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-fs/autofs # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.151 2013/05/06 08:45:14 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.152 2013/06/12 22:19:03 robbat2 Exp $ + +*autofs-9999 (12 Jun 2013) +*autofs-5.0.7-r2 (12 Jun 2013) + + 12 Jun 2013; Robin H. Johnson <robbat2@gentoo.org> +autofs-5.0.7-r2.ebuild, + +autofs-9999.ebuild, +files/autofs-5.0.7-sasl-def.patch, metadata.xml: + Update, now with proxy maintenance. 06 May 2013; Justin Lecher <jlec@gentoo.org> autofs-5.0.7-r1.ebuild, +files/autofs-5.0.7-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patc diff --git a/net-fs/autofs/autofs-5.0.7-r2.ebuild b/net-fs/autofs/autofs-5.0.7-r2.ebuild new file mode 100644 index 000000000000..ff851f56708d --- /dev/null +++ b/net-fs/autofs/autofs-5.0.7-r2.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.7-r2.ebuild,v 1.1 2013/06/12 22:19:03 robbat2 Exp $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info multilib + +PATCH_VER=3 +[[ -n ${PATCH_VER} ]] && \ + PATCHSET_URI="http://dev.gentoo.org/~jlec/distfiles/${P}-patches-${PATCH_VER}.tar.lzma" + +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI=" + mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.bz2 + ${PATCHSET_URI}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="-dmalloc hesiod ldap libtirpc mount-locking sasl" + +# USE="sasl" adds SASL support to the LDAP module which will not be build. If +# SASL support should be available, please add "ldap" to the USE flags. +REQUIRED_USE="sasl? ( ldap )" + +# currently, sasl code assumes the presence of kerberosV +RDEPEND=">=sys-apps/util-linux-2.20 + dmalloc? ( dev-libs/dmalloc ) + hesiod? ( net-dns/hesiod ) + ldap? ( >=net-nds/openldap-2.0 + sasl? ( + dev-libs/cyrus-sasl + dev-libs/libxml2 + virtual/krb5 + ) + ) + libtirpc? ( net-libs/libtirpc )" + +DEPEND="${RDEPEND} + sys-devel/flex + virtual/yacc" + +CONFIG_CHECK="~AUTOFS4_FS" + +PATCHES=( + # Fix for bug #210762 + # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/4203 + "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # Accumulated fixes for bugs + # #154797: Respect CC and CFLAGS + # #253412: Respect LDFLAGS + # #247969: Link order for --as-needed + "${FILESDIR}"/${PN}-5.0.6-respect-user-flags-and-fix-asneeded-r2.patch + + # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5371 + "${FILESDIR}"/${PN}-5.0.5-fix-install-deadlink.patch + + "${FILESDIR}"/${P}-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patch #361899, #468606 + "${FILESDIR}"/${PN}-5.0.6-revert-ldap.patch #381315 + "${FILESDIR}"/${PN}-5.0.7-sasl-def.patch #469324 + ) + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +src_prepare() { + # Upstream's patchset + if [[ -n ${PATCH_VER} ]]; then + EPATCH_SUFFIX="patch" \ + epatch "${WORKDIR}"/patches + fi + epatch_user + autotools-utils_src_prepare +} + +src_configure() { + # --with-confdir is for bug #361481 + # --with-mapdir is for bug #385113 + # for systemd support (not enabled yet): + # --with-systemd + # --disable-move-mount: requires kernel >=2.6.39 + local myeconfargs=( + --with-confdir=/etc/conf.d + --with-mapdir=/etc/autofs + $(use_with dmalloc) + $(use_with ldap openldap) + $(use_with libtirpc) + $(use_with sasl) + $(use_with hesiod) + $(use_enable mount-locking) + --disable-ext-env + --enable-sloppy-mount # bug #453778 + --enable-forced-shutdown + --enable-ignore-busy + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if kernel_is -lt 2 6 30; then + # kernel patches + docinto patches + dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch + fi + newinitd "${FILESDIR}"/autofs5.initd autofs + insinto etc/autofs + newins "${FILESDIR}"/autofs5-auto.master auto.master +} + +pkg_postinst() { + if kernel_is -lt 2 6 30; then + elog "This version of ${PN} requires a kernel with autofs4 supporting" + elog "protocol version 5.00. Patches for kernels older than 2.6.30 have" + elog "been installed into" + elog "${EROOT}usr/share/doc/${P}/patches." + elog "For further instructions how to patch the kernel, please refer to" + elog "${EROOT}usr/share/doc/${P}/INSTALL." + elog + fi + 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." +} diff --git a/net-fs/autofs/autofs-9999.ebuild b/net-fs/autofs/autofs-9999.ebuild new file mode 100644 index 000000000000..ba12e40fa450 --- /dev/null +++ b/net-fs/autofs/autofs-9999.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-9999.ebuild,v 1.1 2013/06/12 22:19:03 robbat2 Exp $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true +AUTOTOOLS_IN_SOURCE_BUILD=1 + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git" +inherit autotools-utils linux-info multilib git-2 + +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="-dmalloc hesiod ldap libtirpc mount-locking sasl" + +# USE="sasl" adds SASL support to the LDAP module which will not be build. If +# SASL support should be available, please add "ldap" to the USE flags. +REQUIRED_USE="sasl? ( ldap )" + +# currently, sasl code assumes the presence of kerberosV +RDEPEND=">=sys-apps/util-linux-2.20 + hesiod? ( net-dns/hesiod ) + ldap? ( >=net-nds/openldap-2.0 + sasl? ( + dev-libs/cyrus-sasl + dev-libs/libxml2 + virtual/krb5 + ) + ) + libtirpc? ( net-libs/libtirpc )" + +DEPEND="${RDEPEND} + sys-devel/flex + virtual/yacc" + +CONFIG_CHECK="~AUTOFS4_FS" + +src_prepare() { + epatch_user + autotools-utils_src_prepare +} + +src_configure() { + # --with-confdir is for bug #361481 + # --with-mapdir is for bug #385113 + # for systemd support (not enabled yet): + # --with-systemd + # --disable-move-mount: requires kernel >=2.6.39 + local myeconfargs=( + --with-confdir=/etc/conf.d + --with-mapdir=/etc/autofs + $(use_with dmalloc) + $(use_with ldap openldap) + $(use_with libtirpc) + $(use_with sasl) + $(use_with hesiod) + $(use_enable mount-locking) + --disable-ext-env + --disable-mount-locking + --enable-sloppy-mount + --enable-forced-shutdown + --enable-ignore-busy + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if kernel_is -lt 2 6 30; then + # kernel patches + docinto patches + dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch + fi + newinitd "${FILESDIR}"/autofs5.initd autofs + insinto etc/autofs + newins "${FILESDIR}"/autofs5-auto.master auto.master +} + +pkg_postinst() { + if kernel_is -lt 2 6 30; then + elog "This version of ${PN} requires a kernel with autofs4 supporting" + elog "protocol version 5.00. Patches for kernels older than 2.6.30 have" + elog "been installed into" + elog "${EROOT}usr/share/doc/${P}/patches." + elog "For further instructions how to patch the kernel, please refer to" + elog "${EROOT}usr/share/doc/${P}/INSTALL." + elog + fi + 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." +} diff --git a/net-fs/autofs/files/autofs-5.0.7-sasl-def.patch b/net-fs/autofs/files/autofs-5.0.7-sasl-def.patch new file mode 100644 index 000000000000..a12d3798bdf0 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-sasl-def.patch @@ -0,0 +1,43 @@ +diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c +index ce1e2e5..35a2106 100644 +--- a/modules/lookup_ldap.c ++++ b/modules/lookup_ldap.c +@@ -28,9 +28,6 @@ + #include <arpa/nameser.h> + #include <resolv.h> + #include <lber.h> +-#ifdef HAVE_SASL +-#include <libxml/tree.h> +-#endif + + #define MODULE_LOOKUP + #include "automount.h" +@@ -38,6 +35,10 @@ + #include "lookup_ldap.h" + #include "base64.h" + ++#ifdef WITH_SASL ++#include <libxml/tree.h> ++#endif ++ + #define MAPFMT_DEFAULT "sun" + + #define MODPREFIX "lookup(ldap): " +@@ -587,7 +588,7 @@ static LDAP *do_connect(unsigned logopt, const char *uri, struct lookup_context + { + LDAP *ldap; + +-#ifdef HAVE_SASL ++#ifdef WITH_SASL + if (ctxt->extern_cert && ctxt->extern_key) { + set_env(logopt, ENV_LDAPTLS_CERT, ctxt->extern_cert); + set_env(logopt, ENV_LDAPTLS_KEY, ctxt->extern_key); +@@ -1389,7 +1390,7 @@ static void free_context(struct lookup_context *ctxt) + defaults_free_searchdns(ctxt->sdns); + if (ctxt->dclist) + free_dclist(ctxt->dclist); +-#ifdef HAVE_SASL ++#ifdef WITH_SASL + if (ctxt->extern_cert) + free(ctxt->extern_cert); + if (ctxt->extern_key) diff --git a/net-fs/autofs/metadata.xml b/net-fs/autofs/metadata.xml index 2ab5d1660cdf..04898f1ed475 100644 --- a/net-fs/autofs/metadata.xml +++ b/net-fs/autofs/metadata.xml @@ -6,10 +6,23 @@ <maintainer> <email>DuPol@gmx.de</email> <name>Dustin Polke</name> + <description>maintainer, assign bugs</description> + </maintainer> + <maintainer> + <email>dennis.yxun@gmail.com</email> + <name>Dennis (dlan) Lan</name> + <description>maintainer, assign bugs</description> + </maintainer> + <maintainer> + <email>robbat2@gentoo.org</email> + <name>Robin Johnson</name> + <description>proxy maintainer, CC on bugs</description> </maintainer> <use> + <flag name="dmalloc">Enable debugging with the dmalloc library</flag> <flag name="hesiod">Install hesiod module</flag> <flag name="ldap">Install LDAP module</flag> + <flag name="libtirpc">Use libtirpc lib support</flag> <flag name="mount-locking"> Enable locking to prevent corruption of /etc/mtab in the presence of concurrent auto-mounting. If enabled, recursive auto-mounting (eg. using |