summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Cox <steel300@gentoo.org>2004-04-17 04:38:05 +0000
committerJason Cox <steel300@gentoo.org>2004-04-17 04:38:05 +0000
commit61189b18724ede286356ca9c5668c422df23c4e1 (patch)
tree27f0e8dd32dfdb45faf9396f8bb95e3d2317989b /sys-fs/lufs
parentFix lufs build issue. (Manifest recommit) (diff)
downloadgentoo-2-61189b18724ede286356ca9c5668c422df23c4e1.tar.gz
gentoo-2-61189b18724ede286356ca9c5668c422df23c4e1.tar.bz2
gentoo-2-61189b18724ede286356ca9c5668c422df23c4e1.zip
Enable more goodies
Diffstat (limited to 'sys-fs/lufs')
-rw-r--r--sys-fs/lufs/ChangeLog5
-rw-r--r--sys-fs/lufs/lufs-0.9.7-r1.ebuild59
2 files changed, 29 insertions, 35 deletions
diff --git a/sys-fs/lufs/ChangeLog b/sys-fs/lufs/ChangeLog
index dbaf2eddb40e..64439d7acccd 100644
--- a/sys-fs/lufs/ChangeLog
+++ b/sys-fs/lufs/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-fs/lufs
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/ChangeLog,v 1.6 2004/04/17 04:29:21 steel300 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/ChangeLog,v 1.7 2004/04/17 04:38:05 steel300 Exp $
+
+ 16 Apr 2004; <coxj@gentoo.org> lufs-0.9.7-r1.ebuild:
+ Enable some more goodies.
16 Apr 2004; <coxj@gentoo.org> lufs-0.9.7-r1.ebuild:
Fix lufs once and for all.
diff --git a/sys-fs/lufs/lufs-0.9.7-r1.ebuild b/sys-fs/lufs/lufs-0.9.7-r1.ebuild
index f5a831e2dfce..0a65675a7796 100644
--- a/sys-fs/lufs/lufs-0.9.7-r1.ebuild
+++ b/sys-fs/lufs/lufs-0.9.7-r1.ebuild
@@ -1,48 +1,42 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/lufs-0.9.7-r1.ebuild,v 1.3 2004/04/17 04:29:21 steel300 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/lufs-0.9.7-r1.ebuild,v 1.4 2004/04/17 04:38:05 steel300 Exp $
+
+inherit kmod
S="${WORKDIR}/${P}"
DESCRIPTION="User-mode filesystem implementation"
SRC_URI="mirror://sourceforge/lufs/${P}.tar.gz"
+KMOD_SOURCES="${P}.tar.gz"
HOMEPAGE="http://lufs.sourceforge.net/lufs/"
LICENSE="GPL-2"
-DEPEND="virtual/linux-sources"
+DEPEND="virtual/linux-sources
+ sys-kernel/config-kernel"
RDEPEND=""
KEYWORDS="~x86 ~amd64"
SLOT="0"
IUSE="lufsusermount"
-RESTRICT="nouserpriv"
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
+ kmod_src_unpack
+ cd ${S}
- cd ${S}/util
- mv Makefile.in Makefile.in.orig
- sed -e 's/install-exec-hook//' Makefile.in.orig > Makefile.in || die
+ epatch ${FILESDIR}/${P}-fPIC.patch
- cd ${S}/kernel/Linux/2.4
- mv Makefile.in Makefile.in.orig
- sed -e 's/install-data-hook//' Makefile.in.orig > Makefile.in || die
+ # Fix some sandbox failures
+ sed -i -e's/install-data-hook//' \
+ lufsd/Makefile.in util/Makefile.in kernel/Linux/2.4/Makefile.in
# 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_compile () {
- econf || die
- [ -d /lib/modules/$(uname -r)/build ] || die "Cannot find kernel sources at /lib/modules/$(uname -r)/build.
-This ebuild will only compile against the running kernel."
- # In case package dereferences.
- addwrite $(readlink -f /lib/modules/$(uname -r)/build) || die "Could not enable write access to kernel sources. Check your sandbox settings."
- addwrite /lib/modules/$(uname -r)/build || die "Could not enable write access to kernel sources. Check your sandbox settings."
+src_compile() {
+ kmod_make_linux_writable
+ local myconf
+ myconf="--enable-wavfs --enable-cefs --enable-cardfs"
+ econf ${myconf} || die
env -u ARCH emake || die
}
@@ -50,25 +44,20 @@ src_install () {
dodoc AUTHORS COPYING ChangeLog Contributors INSTALL \
NEWS README THANKS TODO
dohtml docs/lufs.html
- # In case package dereferences.
- addwrite $(readlink -f /lib/modules/$(uname -r)/build)
- addwrite /lib/modules/$(uname -r)/build
- env -u ARCH make DESTDIR=${D} install
+ 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}
- if expr match $(uname -r) 2.6; then
- insinto /lib/modules/$(uname -r)/kernel/fs/lufs
- doins kernel/Linux/2.6/lufs.ko
- fi
}
pkg_postinst() {
- depmod
- /usr/sbin/update-modules
+ if [ ! "$( egrep "^CONFIG_LUFS_FS=[ym]" /usr/src/linux-${KV}/.config )" ]; then
+ /usr/sbin/update-modules
+ fi
+
if ! use lufsusermount
then
einfo If you want regular users to be able to mount lufs filesystems,
@@ -80,5 +69,7 @@ pkg_postinst() {
}
pkg_postrm() {
- /sbin/modprobe -r lufs
+ if [ ! "$( egrep "^CONFIG_LUFS_FS=[ym]" /usr/src/linux-${KV}/.config )" ]; then
+ /sbin/modprobe -r lufs
+ fi
}