# HG changeset patch # User necrophcodr # Date 1410343282 -7200 # Node ID 38e2f5dca901b8dcc46d7b4e4ad3e798d4b11c97 # Parent b3b2e86dc2abefd639811ded108fded661c68487 Add eudev and devel. diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev-dev/receipt Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,24 @@ +# SliTaz package receipt. + +PACKAGE="eudev-dev" +VERSION="1.9" +CATEGORY="development" +SHORT_DESC="Eudev devel file (libudev)." +MAINTAINER="tcg.thegamer@gmail.com" +LICENSE="GPL2" +WANTED="eudev" +WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" +HOST_ARCH="i486 arm" +PROVIDES="udev-dev" + +DEPENDS="eudev pkg-config" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/lib $fs/usr/lib/pkgconfig $fs/usr/include + cp -a $install/lib/libudev*a $fs/lib + cp -a $install/lib/pkgconfig/libudev.pc $fs/usr/lib/pkgconfig + cp -a $install/usr/share/pkgconfig/* $fs/usr/lib/pkgconfig + cp -a $install/usr/include/libudev.h $fs/usr/include +} diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev/receipt Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,80 @@ +# SliTaz package receipt. + +PACKED_SIZE="676.0K" +UNPACKED_SIZE="5.3M" +PACKAGE="eudev" +VERSION="1.9" +CATEGORY="base-system" +SHORT_DESC="Fork of udev to avoid depending on systemd" +MAINTAINER="tcg.thegamer@gmail.com" +LICENSE="GPLv2" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://dev.gentoo.org/~blueness/eudev" +WGET_URL="${WEB_SITE}/${TARBALL}" +PROVIDE="udev" + +DEPENDS="dbus util-linux-blkid pciids usbids acl kmod" +BUILD_DEPENDS="util-linux-blkid-dev util-linux-uuid-dev pcre-dev kmod-dev dbus-dev gperf pkg-config acl-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --exec-prefix="" \ + --with-rootprefix="" \ + --disable-manpages \ + --disable-introspection \ + --disable-keymap \ + --enable-floppy \ + --enable-rule-generator \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/lib/firmware + + cp -a $install/sbin $fs + cp -a $install/etc $fs + cp -a $install/lib/libgudev*so* $fs/lib + cp -a $install/lib/udev $fs/lib + + # Copy rules files to udev conf dir + mv -f $fs/lib/udev/rules.d $fs/etc/udev + cp $stuff/udev.conf $fs/etc/udev + cp $stuff/*.rules $fs/etc/udev/rules.d + + # Create some devices and directories that Udev cannot handle + # due to them being required very early in the boot process + mkdir -p $fs/lib/udev/devices/pts + mkdir -p $fs/lib/udev/devices/shm + mknod -m 0666 $fs/lib/udev/devices/null c 1 3 + + # Fix permissions + chmod +x $fs/lib/udev/* + chown -R root.root $fs + +} + +list_udev_group() +{ + object=$2 + [ -n "$object" ] || object=GROUP + grep $object $1/etc/udev/rules.d/* | \ + sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq +} + +post_install() +{ + # Sanity check for udev+ldap boot + list_udev_group "$1" GROUP | while read x ; do + grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x + done + list_udev_group "$1" OWNER | while read x ; do + grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x + done +} diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev/stuff/40-alsa.rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev/stuff/40-alsa.rules Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,10 @@ +# do not edit this file, it will be overwritten on update + +SUBSYSTEM=="sound", GROUP="audio" +KERNEL=="controlC[0-9]*", NAME="snd/%k" +KERNEL=="hwC[D0-9]*", NAME="snd/%k" +KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" +KERNEL=="midiC[D0-9]*", NAME="snd/%k" +KERNEL=="timer", NAME="snd/%k" +KERNEL=="seq", NAME="snd/%k" +KERNEL=="mixer0", SYMLINK+="mixer" diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev/stuff/45-usb.rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev/stuff/45-usb.rules Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,3 @@ +# usb devices +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE:="0666" +SUBSYSTEM=="usb_device",MODE:="0666" diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev/stuff/90-permissions.rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev/stuff/90-permissions.rules Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,14 @@ + +# sound devices +SUBSYSTEM=="sound", GROUP="audio" +SUBSYSTEM=="sound", MODE="0664" + +# storage +SUBSYSTEM=="ide", GROUP="root" +SUBSYSTEM=="ide", MODE="0660 +SUBSYSTEM=="ata", GROUP="root" +SUBSYSTEM=="ata", MODE="0660 +SUBSYSTEM=="scsi", GROUP="root" +SUBSYSTEM=="scsi", MODE="0660 + + diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev/stuff/92-hal.rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev/stuff/92-hal.rules Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,2 @@ +# pass all events to hal daemon +#RUN+="socket:@/org/freedesktop/hal/udev_event" diff -r b3b2e86dc2ab -r 38e2f5dca901 eudev/stuff/udev.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eudev/stuff/udev.conf Wed Sep 10 12:01:22 2014 +0200 @@ -0,0 +1,29 @@ +# /etc/udev/udev.conf - The main config file for udev +# +# This file can be used to override some of udev's default values +# for where it looks for files, and where it places device nodes. + + +# udev_root - where in the filesystem to place the device nodes +udev_root="/dev/" + +# udev_db - The name and location of the udev database. +#udev_db="/run/udev/tdb" + +# udev_rules - The name and location of the udev rules dir +udev_rules="/etc/udev/rules.d" + +# default_mode - set the default mode for all nodes that have no +# explicit match in the permissions file +default_mode="0660" + +# default_owner - set the default owner for all nodes that have no +# explicit match in the permissions file +default_owner="root" + +# default_group - set the default group for all nodes that have no +# explicit match in the permissions file +default_group="root" + +# udev_log - set to "yes" if you want logging, else "no" +udev_log="err"