Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stable automount 4.0.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Zoltan
Guru
Guru


Joined: 27 Aug 2003
Posts: 394
Location: Moscow, Russia

PostPosted: Thu Oct 23, 2003 1:22 pm    Post subject: Stable automount 4.0.0 Reply with quote

I have no idea why autofs in gentoo is still of version 3.1.7. When I did my current gentoo installation I checked autofs v4 files location and found that 4.0.0 is no longer considered unstable. It seems that 4.0.0 final version is out. So I created this ebuild in my overlay portage (I need version 4.x because version 3.x doesn't support nested mounts and I really need them for mounting NFS dirs in /net directory):

Code:

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-fs/autofs/autofs-3.1.7-r6.ebuild,v 1.1 2003/09/24 17:16:28 mholzer Exp $

IUSE="ldap"

S=${WORKDIR}/${P}
DESCRIPTION="Kernel based automounter"
HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html"
SRC_URI="mirror://kernel/linux/daemons/${PN}/v4/${P}-1.tar.bz2"

DEPEND="ldap? ( >=net-nds/openldap-1.2 )"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~alpha ~ppc ~sparc"

src_unpack() {
        unpack ${A}
#       cd ${S}
#       epatch ${FILESDIR}/ldap_config.patch || die "ldap patch died"

#       cd ${S}/include
#       epatch ${FILESDIR}/automount.diff || die "automount patch died"

        cd ${S}
        autoconf

        cd ${S}/daemon
        sed -i 's/LIBS \= \-ldl/LIBS \= \-ldl \-lnsl \$\{LIBLDAP\}/' Makefile
}

src_compile() {
        local myconf
        use ldap || myconf="--without-openldap"

        ./configure \
            --host=${HOST} \
            --prefix=/usr \
            ${myconf} || die
        make || die "make failed"
}

src_install() {
        into /usr
        dosbin daemon/automount
        insinto /usr/lib/autofs
        insopts -m 755
        doins modules/*.so

        dodoc COPYING COPYRIGHT NEWS README* TODO
        cd man
        doman auto.master.5 autofs.5 autofs.8 automount.8

        cd ../samples
        dodir /etc/autofs
        cp ${FILESDIR}/auto.master ${D}/etc/autofs
        cp ${FILESDIR}/auto.misc ${D}/etc/autofs

        exeinto /etc/init.d ; newexe ${FILESDIR}/autofs.rc8 autofs
        insinto /etc/conf.d ; newins ${FILESDIR}/autofs.confd autofs
}

pkg_postinst() {
        einfo "Note: If you plan on using autofs for automounting"
        einfo "remote NFS mounts without having the NFS daemon running"
        einfo "please add portmap to your default run-level."
        echo ""
        einfo "Also the normal autofs status has been renamed stats"
        einfo "as there is already a predefined Gentoo status"
}


This version seems to correctly expire paths even under nested mounts... or so I have an impression. Anyway, could the maintaners of autofs package kick up the version perhaps? At least for unstable branch. There's also 4.1.0-beta that seems to be in active development. I didn't try it yet but probably will.
_________________
Light travels faster than sound. That's why some people appear bright before you hear them speak.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Oct 24, 2003 7:34 pm    Post subject: Reply with quote

Hey thanks, that helped me. You may want to create a bug at bugs.gentoo.org and attatch this ebuild.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Zoltan
Guru
Guru


Joined: 27 Aug 2003
Posts: 394
Location: Moscow, Russia

PostPosted: Sun Oct 26, 2003 12:11 pm    Post subject: Reply with quote

Ok. I have submitted this bug: https://bugs.gentoo.org/show_bug.cgi?id=32026.
_________________
Light travels faster than sound. That's why some people appear bright before you hear them speak.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum