summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-10-13 23:10:01 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-10-13 23:10:01 +0000
commit2b5032cc5f7924fe5f1c6e47293624eac8bd9f74 (patch)
tree9bb7e34d05a52be729f0d2ac9f5e0a83592713a2 /sys-fs
parentInitial release (diff)
downloadgentoo-2-2b5032cc5f7924fe5f1c6e47293624eac8bd9f74.tar.gz
gentoo-2-2b5032cc5f7924fe5f1c6e47293624eac8bd9f74.tar.bz2
gentoo-2-2b5032cc5f7924fe5f1c6e47293624eac8bd9f74.zip
Initial release
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev/ChangeLog10
-rw-r--r--sys-fs/udev/Manifest7
-rw-r--r--sys-fs/udev/files/digest-udev-0.21
-rw-r--r--sys-fs/udev/files/namedev.permissions83
-rw-r--r--sys-fs/udev/files/udev-0.2-major_minor-in-decimal.patch50
-rw-r--r--sys-fs/udev/udev-0.2.ebuild58
6 files changed, 206 insertions, 3 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
new file mode 100644
index 000000000000..da61ee7b76e4
--- /dev/null
+++ b/sys-fs/udev/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-fs/udev
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.1 2003/10/13 23:09:53 azarah Exp $
+
+*udev-0.2 (14 Oct 2003)
+
+ 14 Oct 2003; Martin Schlemmer <azarah@gentoo.org> udev-0.2.ebuild,
+ files/namedev.permissions, files/udev-0.2-major_minor-in-decimal.patch:
+ Initial version submitted by myself.
+
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index fb2fc22f05af..8153783c966c 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -1,4 +1,5 @@
-MD5 4f4e2be604cfa858d025dfea1e7e133c .udev-0.2.ebuild.swp 16384
-MD5 125ee013081b112d56a1d15507d72ef2 ChangeLog 3674
-MD5 35176a5095533479e0064325cf8c8a48 udev-0.2.ebuild 476
+MD5 6c4b0513a57c828ea27a24dbd33f086d ChangeLog 412
+MD5 dfa7a99382ae707cf0081943869c109b udev-0.2.ebuild 1477
MD5 ebe0e5db30b74307da3dcbe4fa5c6709 files/digest-udev-0.2 60
+MD5 97e31caf42d33ffd640691e3aeed5a73 files/udev-0.2-major_minor-in-decimal.patch 1303
+MD5 bfcf0cdc893687e50a846b1784b3ea09 files/namedev.permissions 1585
diff --git a/sys-fs/udev/files/digest-udev-0.2 b/sys-fs/udev/files/digest-udev-0.2
new file mode 100644
index 000000000000..89d9f2756efc
--- /dev/null
+++ b/sys-fs/udev/files/digest-udev-0.2
@@ -0,0 +1 @@
+MD5 c63d4482cbaa074f937661486e9f2030 udev-0.2.tar.bz2 32643
diff --git a/sys-fs/udev/files/namedev.permissions b/sys-fs/udev/files/namedev.permissions
new file mode 100644
index 000000000000..f5740463e132
--- /dev/null
+++ b/sys-fs/udev/files/namedev.permissions
@@ -0,0 +1,83 @@
+# <serial>
+ttyS*:root:tty:0660
+# <floppy>
+fd[0-1]*:root:floppy:0660
+# <sound>
+dsp*:root:audio:0660
+audio*:root:audio:0660
+midi*:root:audio:0660
+mixer*:root:audio:0660
+sequencer*:root:audio:0660
+sound/*:root:audio:0660
+snd/*:root:audio:0660
+beep:root:audio:0660
+admm*:root:audio:0660
+adsp*:root:audio:0660
+aload*:root:audio:0660
+amidi*:root:audio:0660
+dmfm*:root:audio:0660
+dmmidi*:root:audio:0660
+sndstat:root:audio:0660
+# <cdrom>
+cdrom*:root:cdrom:0660
+rdvd:root:cdrom:0660
+# <pilot>
+pilot:root:uucp0660
+# <jaz>
+jaz*:root:disk:0660
+# <zip>
+pocketzip*:root:disk:0660
+zip*:root:disk:0660
+# <ls120>
+ls120:root:disk:0660
+ls120*:root:disk:0660
+# <scanner>
+scanner:root:root:0600
+usb/scanner*:root:root:0600
+# <camera>
+camera*:root:root:0600
+usb/dc2xx*:root:root:0600
+usb/mdc800*:root:root:0600
+# <memstick>
+memstick*:root:root:0600
+# <flash>
+flash*:root:root:0600
+# <diskonkey>
+diskonkey*:root:disk:0660
+# <rem_ide>
+microdrive*:root:disk:0660
+# <fb>
+fb:root:root:0600
+fb[0-9]*:root:root:0600
+fb/*:root:root:0600
+# <kbd>
+kbd:root:root:0600
+# <joystick>
+js[0-9]*:root:root:0600
+# <v4l>
+video*:root:video:0660
+radio*:root:video:0660
+winradio*:root:video:0660
+vtx*:root:video:0660
+vbi*:root:video:0660
+video/*:root:video:0660
+vttuner:root:video:0660
+# <gpm>
+gpmctl:root:root:0700
+# <dri>
+nvidia*:root:video:0660
+3dfx*:root:video:0660
+# <mainboard>
+apm_bios:root:root:0600
+# <burner>
+scd*:root:cdrw:0660
+sg*:root:cdrw:0660
+pcd*:root:cdrw:0660
+pg*:root:cdrw:0660
+cdwriter:root:cdrw:0660
+# <usb>
+usb/dabusb*:root:usb:0660
+usb/mdc800*:root:usb:0660
+usb/rio500:root:usb:0660
+ttyUSB*:root:usb:0660
+
diff --git a/sys-fs/udev/files/udev-0.2-major_minor-in-decimal.patch b/sys-fs/udev/files/udev-0.2-major_minor-in-decimal.patch
new file mode 100644
index 000000000000..fadabe96685f
--- /dev/null
+++ b/sys-fs/udev/files/udev-0.2-major_minor-in-decimal.patch
@@ -0,0 +1,50 @@
+--- udev-0.2/udev-add.c.orig 2003-07-24 17:54:49.000000000 +0200
++++ udev-0.2/udev-add.c 2003-10-12 07:22:56.406960904 +0200
+@@ -47,10 +47,15 @@
+ * Yes, this will probably change when we go to a bigger major/minor
+ * range, and will have to be changed at that time.
+ */
++/*
++ * NOTE: The major/minor values stored in "dev" is no longer in hex!
++ *
++ * <azarah@gentoo.org> (12 Sep 2003)
++ */
+ static int get_major_minor(struct sysfs_class_device *class_dev, int *major, int *minor)
+ {
+ char temp[3];
+- int retval = 0;
++ int retval = 0, i, j;
+
+ char *dev;
+
+@@ -60,15 +65,21 @@
+
+ dbg("dev = %s", dev);
+
+- temp[0] = dev[0];
+- temp[1] = dev[1];
+- temp[2] = 0x00;
+- *major = (int)strtol(&temp[0], NULL, 16);
+-
+- temp[0] = dev[2];
+- temp[1] = dev[3];
+- temp[2] = 0x00;
+- *minor = (int)strtol(&temp[0], NULL, 16);
++ /* Scan from the start of the string stored in "dev"
++ * until we get to a ':' ... */
++ i = 0;
++ while (dev[i] != ':')
++ temp[i] = dev[i++];
++ temp[i] = 0x00;
++ *major = (int)strtol(&temp[0], NULL, 10);
++
++ /* Now continue scanning *after* the ':' until we get
++ * to the end of the string ... */
++ j = ++i;
++ while (dev[i] != 0x00)
++ temp[i-j] = dev[i++];
++ temp[i-j] = 0x00;
++ *minor = (int)strtol(&temp[0], NULL, 10);
+
+ dbg("found major = %d, minor = %d", *major, *minor);
+
diff --git a/sys-fs/udev/udev-0.2.ebuild b/sys-fs/udev/udev-0.2.ebuild
new file mode 100644
index 000000000000..e1536b763696
--- /dev/null
+++ b/sys-fs/udev/udev-0.2.ebuild
@@ -0,0 +1,58 @@
+# 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-0.2.ebuild,v 1.1 2003/10/13 23:09:53 azarah Exp $
+
+IUSE=
+
+S="${WORKDIR}/${P}"
+DESCRIPTION="This is a sample skeleton ebuild file"
+SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2"
+HOMEPAGE="http://www.kernel.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="sys-fs/sysfsutils"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # Setup things to our liking
+ sed -ie '/^#define UDEV_ROOT/ c\#define UDEV_ROOT "/dev/"' udev.h
+ sed -ie '/^#define NAMEDEV_CONFIG_ROOT/ c\#define NAMEDEV_CONFIG_ROOT "/etc/udev/"' \
+ namedev.h
+ # 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}-major_minor-in-decimal.patch
+}
+
+src_compile() {
+ # Do not work with emake
+ make || die
+}
+
+src_install() {
+ into /
+ dosbin udev
+
+ insinto /etc/udev
+ doins namedev.config
+# doins ${FILESDIR}/namedev.permissions
+ doins namedev.permissions
+
+ dodoc COPYING ChangeLog README TODO
+ dodoc docs/overview
+}
+