# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/sys-fs/lufs/captive-lufs-0.9.7-r7.ebuild,v 1.0 2003/11/26 01:25:42 wmertens Exp $ S="${WORKDIR}/lufs-${PV}captive7" DESCRIPTION="User-mode filesystem implementation with Captive patches." SRC_URI="http://www.jankratochvil.net/project/captive/dist/lufs-${PV}captive7.tar.gz" HOMEPAGE="http://www.jankratochvil.net/project/captive/CVS.html.pl#source" LICENSE="GPL-2" DEPEND="virtual/linux-sources" RDEPEND="" KEYWORDS="~x86 ~amd64" SLOT="0" IUSE="lufsusermount" src_unpack() { unpack ${A} # Fix some sandbox failures cd ${S}/lufsd mv Makefile.in Makefile.in.orig sed -e 's/install-exec-hook//' Makefile.in.orig > Makefile.in || die cd ${S}/util mv Makefile.in Makefile.in.orig sed -e 's/install-exec-hook//' Makefile.in.orig > Makefile.in || die cd ${S}/kernel/Linux/2.4 mv Makefile.in Makefile.in.orig sed -e 's/install-data-hook//' Makefile.in.orig > Makefile.in || die # not needed for captive-lufs # Fix GCC 3.3.2 build failure (see also # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13192) #cd ${S} #epatch ${FILESDIR}/gentoo-gcc332fix-${PV}.patch } src_install () { dodoc AUTHORS COPYING ChangeLog Contributors INSTALL \ NEWS README THANKS TODO dohtml docs/lufs.html make DESTDIR=${D} install dosym /usr/bin/auto.sshfs /etc/auto.sshfs dosym /usr/bin/auto.ftpfs /etc/auto.ftpfs dodir /sbin dosym /usr/bin/lufsd /sbin/mount.lufs use lufsusermount && chmod +s ${D}/usr/bin/lufs{mnt,umount} } pkg_postinst() { /usr/sbin/update-modules if ! use lufsusermount then einfo If you want regular users to be able to mount lufs filesystems, einfo you need to run the following command as root: einfo \# chmod +s /usr/bin/lufsmnt /usr/bin/lufsumount einfo You can also set the lufsusermount USE flag to do this einfo automatically. fi } pkg_postrm() { /sbin/modprobe -r lufs }