wok-next rev 17143
Add eudev and devel.
author | necrophcodr <tcg.thegamer@gmail.com> |
---|---|
date | Wed Sep 10 12:01:22 2014 +0200 (2014-09-10) |
parents | b3b2e86dc2ab |
children | 526980ca17c4 |
files | eudev-dev/receipt eudev/receipt eudev/stuff/40-alsa.rules eudev/stuff/45-usb.rules eudev/stuff/90-permissions.rules eudev/stuff/92-hal.rules eudev/stuff/udev.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/eudev-dev/receipt Wed Sep 10 12:01:22 2014 +0200 1.3 @@ -0,0 +1,24 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="eudev-dev" 1.7 +VERSION="1.9" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Eudev devel file (libudev)." 1.10 +MAINTAINER="tcg.thegamer@gmail.com" 1.11 +LICENSE="GPL2" 1.12 +WANTED="eudev" 1.13 +WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" 1.14 +HOST_ARCH="i486 arm" 1.15 +PROVIDES="udev-dev" 1.16 + 1.17 +DEPENDS="eudev pkg-config" 1.18 + 1.19 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.20 +genpkg_rules() 1.21 +{ 1.22 + mkdir -p $fs/lib $fs/usr/lib/pkgconfig $fs/usr/include 1.23 + cp -a $install/lib/libudev*a $fs/lib 1.24 + cp -a $install/lib/pkgconfig/libudev.pc $fs/usr/lib/pkgconfig 1.25 + cp -a $install/usr/share/pkgconfig/* $fs/usr/lib/pkgconfig 1.26 + cp -a $install/usr/include/libudev.h $fs/usr/include 1.27 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/eudev/receipt Wed Sep 10 12:01:22 2014 +0200 2.3 @@ -0,0 +1,80 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKED_SIZE="676.0K" 2.7 +UNPACKED_SIZE="5.3M" 2.8 +PACKAGE="eudev" 2.9 +VERSION="1.9" 2.10 +CATEGORY="base-system" 2.11 +SHORT_DESC="Fork of udev to avoid depending on systemd" 2.12 +MAINTAINER="tcg.thegamer@gmail.com" 2.13 +LICENSE="GPLv2" 2.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.15 +WEB_SITE="http://dev.gentoo.org/~blueness/eudev" 2.16 +WGET_URL="${WEB_SITE}/${TARBALL}" 2.17 +PROVIDE="udev" 2.18 + 2.19 +DEPENDS="dbus util-linux-blkid pciids usbids acl kmod" 2.20 +BUILD_DEPENDS="util-linux-blkid-dev util-linux-uuid-dev pcre-dev kmod-dev dbus-dev gperf pkg-config acl-dev" 2.21 + 2.22 +# Rules to configure and make the package. 2.23 +compile_rules() 2.24 +{ 2.25 + cd $src 2.26 + ./configure \ 2.27 + --exec-prefix="" \ 2.28 + --with-rootprefix="" \ 2.29 + --disable-manpages \ 2.30 + --disable-introspection \ 2.31 + --disable-keymap \ 2.32 + --enable-floppy \ 2.33 + --enable-rule-generator \ 2.34 + $CONFIGURE_ARGS && 2.35 + make && 2.36 + make DESTDIR=$DESTDIR install 2.37 +} 2.38 + 2.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.40 +genpkg_rules() 2.41 +{ 2.42 + mkdir -p $fs/lib/firmware 2.43 + 2.44 + cp -a $install/sbin $fs 2.45 + cp -a $install/etc $fs 2.46 + cp -a $install/lib/libgudev*so* $fs/lib 2.47 + cp -a $install/lib/udev $fs/lib 2.48 + 2.49 + # Copy rules files to udev conf dir 2.50 + mv -f $fs/lib/udev/rules.d $fs/etc/udev 2.51 + cp $stuff/udev.conf $fs/etc/udev 2.52 + cp $stuff/*.rules $fs/etc/udev/rules.d 2.53 + 2.54 + # Create some devices and directories that Udev cannot handle 2.55 + # due to them being required very early in the boot process 2.56 + mkdir -p $fs/lib/udev/devices/pts 2.57 + mkdir -p $fs/lib/udev/devices/shm 2.58 + mknod -m 0666 $fs/lib/udev/devices/null c 1 3 2.59 + 2.60 + # Fix permissions 2.61 + chmod +x $fs/lib/udev/* 2.62 + chown -R root.root $fs 2.63 + 2.64 +} 2.65 + 2.66 +list_udev_group() 2.67 +{ 2.68 + object=$2 2.69 + [ -n "$object" ] || object=GROUP 2.70 + grep $object $1/etc/udev/rules.d/* | \ 2.71 + sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq 2.72 +} 2.73 + 2.74 +post_install() 2.75 +{ 2.76 + # Sanity check for udev+ldap boot 2.77 + list_udev_group "$1" GROUP | while read x ; do 2.78 + grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x 2.79 + done 2.80 + list_udev_group "$1" OWNER | while read x ; do 2.81 + grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x 2.82 + done 2.83 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/eudev/stuff/40-alsa.rules Wed Sep 10 12:01:22 2014 +0200 3.3 @@ -0,0 +1,10 @@ 3.4 +# do not edit this file, it will be overwritten on update 3.5 + 3.6 +SUBSYSTEM=="sound", GROUP="audio" 3.7 +KERNEL=="controlC[0-9]*", NAME="snd/%k" 3.8 +KERNEL=="hwC[D0-9]*", NAME="snd/%k" 3.9 +KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" 3.10 +KERNEL=="midiC[D0-9]*", NAME="snd/%k" 3.11 +KERNEL=="timer", NAME="snd/%k" 3.12 +KERNEL=="seq", NAME="snd/%k" 3.13 +KERNEL=="mixer0", SYMLINK+="mixer"
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/eudev/stuff/45-usb.rules Wed Sep 10 12:01:22 2014 +0200 4.3 @@ -0,0 +1,3 @@ 4.4 +# usb devices 4.5 +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE:="0666" 4.6 +SUBSYSTEM=="usb_device",MODE:="0666"
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/eudev/stuff/90-permissions.rules Wed Sep 10 12:01:22 2014 +0200 5.3 @@ -0,0 +1,14 @@ 5.4 + 5.5 +# sound devices 5.6 +SUBSYSTEM=="sound", GROUP="audio" 5.7 +SUBSYSTEM=="sound", MODE="0664" 5.8 + 5.9 +# storage 5.10 +SUBSYSTEM=="ide", GROUP="root" 5.11 +SUBSYSTEM=="ide", MODE="0660 5.12 +SUBSYSTEM=="ata", GROUP="root" 5.13 +SUBSYSTEM=="ata", MODE="0660 5.14 +SUBSYSTEM=="scsi", GROUP="root" 5.15 +SUBSYSTEM=="scsi", MODE="0660 5.16 + 5.17 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/eudev/stuff/92-hal.rules Wed Sep 10 12:01:22 2014 +0200 6.3 @@ -0,0 +1,2 @@ 6.4 +# pass all events to hal daemon 6.5 +#RUN+="socket:@/org/freedesktop/hal/udev_event"
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/eudev/stuff/udev.conf Wed Sep 10 12:01:22 2014 +0200 7.3 @@ -0,0 +1,29 @@ 7.4 +# /etc/udev/udev.conf - The main config file for udev 7.5 +# 7.6 +# This file can be used to override some of udev's default values 7.7 +# for where it looks for files, and where it places device nodes. 7.8 + 7.9 + 7.10 +# udev_root - where in the filesystem to place the device nodes 7.11 +udev_root="/dev/" 7.12 + 7.13 +# udev_db - The name and location of the udev database. 7.14 +#udev_db="/run/udev/tdb" 7.15 + 7.16 +# udev_rules - The name and location of the udev rules dir 7.17 +udev_rules="/etc/udev/rules.d" 7.18 + 7.19 +# default_mode - set the default mode for all nodes that have no 7.20 +# explicit match in the permissions file 7.21 +default_mode="0660" 7.22 + 7.23 +# default_owner - set the default owner for all nodes that have no 7.24 +# explicit match in the permissions file 7.25 +default_owner="root" 7.26 + 7.27 +# default_group - set the default group for all nodes that have no 7.28 +# explicit match in the permissions file 7.29 +default_group="root" 7.30 + 7.31 +# udev_log - set to "yes" if you want logging, else "no" 7.32 +udev_log="err"