summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/udev/udev-004.ebuild')
-rw-r--r--sys-fs/udev/udev-004.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/sys-fs/udev/udev-004.ebuild b/sys-fs/udev/udev-004.ebuild
new file mode 100644
index 000000000000..ffd520c2095f
--- /dev/null
+++ b/sys-fs/udev/udev-004.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-004.ebuild,v 1.1 2003/10/22 04:27:34 azarah Exp $
+
+DESCRIPTION="udev - Linux dynamic device naming support (aka userspace devfs)"
+HOMEPAGE="http://www.kernel.org/"
+SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="virtual/glibc
+ >=sys-apps/hotplug-20030805-r1
+ sys-fs/sysfsutils"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # No need to clutter the logs ...
+ sed -ie '/^DEBUG/ c\DEBUG = false' Makefile
+ # Do not use optimization flags from the package
+ sed -ie 's|$(OPTIMIZATION)||g' Makefile
+ # Also use our own CFLAGS for libsysfs
+ sed -ie "/^CFLAGS/ c\CFLAGS = ${CFLAGS}" libsysfs/Makefile
+
+ # Make sure we do not build libsysfs
+ # For now we use included libsysfs, as udev do not work with
+ # latest libsysfs from sysfsutils yet ...
+# echo 'all:' > libsysfs/Makefile
+
+ epatch ${FILESDIR}/${P}-disk-loop-fix.patch
+ epatch ${FILESDIR}/${P}-label-fixes.patch
+ epatch ${FILESDIR}/${P}-manpage-update.patch
+}
+
+src_compile() {
+ # Do not work with emake
+ make udevdir="/dev/" || die
+}
+
+src_install() {
+ into /
+ dosbin udev
+
+ insinto /etc/udev
+ doins namedev.config
+# doins ${FILESDIR}/namedev.permissions
+ doins namedev.permissions
+
+ dodir /etc/hotplug.d/default
+ dosym ../../../sbin/udev /etc/hotplug.d/default/udev.hotplug
+
+ doman udev.8
+
+ dodoc COPYING ChangeLog FAQ README TODO
+ dodoc docs/{overview,udev-OLS2003.pdf}
+}
+