diff options
Diffstat (limited to 'sys-fs/lufs/lufs-0.8.0.ebuild')
-rw-r--r-- | sys-fs/lufs/lufs-0.8.0.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-fs/lufs/lufs-0.8.0.ebuild b/sys-fs/lufs/lufs-0.8.0.ebuild new file mode 100644 index 000000000000..c074f5e3fc4f --- /dev/null +++ b/sys-fs/lufs/lufs-0.8.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/lufs-0.8.0.ebuild,v 1.1 2003/09/15 17:46:25 seemant Exp $ + +S="${WORKDIR}/${P}" +DESCRIPTION="User-mode filesystem implementation" +SRC_URI="mirror://sourceforge/lufs/${P}.tar.gz" +HOMEPAGE="http://lufs.sourceforge.net/lufs/" +LICENSE="GPL-2" +DEPEND="virtual/linux-sources" +#RDEPEND +KEYWORDS="x86 amd64" +SLOT="0" +IUSE="" + +src_unpack() { + unpack ${A} + + cd ${S}/lufsd + mv Makefile.in Makefile.in.orig + sed -e '497s/install-exec-hook//' Makefile.in.orig > Makefile.in || die + + cd ${S}/util + mv Makefile.in Makefile.in.orig + sed -e '429s/install-exec-hook//' Makefile.in.orig > Makefile.in || die + + cd ${S}/kernel2.4 + mv Makefile.in Makefile.in.orig + sed -e '366s/install-data-hook//' Makefile.in.orig > Makefile.in || die +} + +src_install () { + exeinto /etc/init.d + newexe ${FILESDIR}/${P}-init lufs + + 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 + dosym /sbin/mount.lufs /usr/bin/lufsd + +} + +pkg_postinst() { + id lufs 2>/dev/null || useradd -g nobody -d /home/lufs -m -s /bin/sh -c "LUFS user" lufs +} + +pkg_postrm() { + userdel lufs +} |