wok-next diff eudev/receipt @ 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 | |
children | 8f0d02db4d84 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/eudev/receipt Wed Sep 10 12:01:22 2014 +0200 1.3 @@ -0,0 +1,80 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKED_SIZE="676.0K" 1.7 +UNPACKED_SIZE="5.3M" 1.8 +PACKAGE="eudev" 1.9 +VERSION="1.9" 1.10 +CATEGORY="base-system" 1.11 +SHORT_DESC="Fork of udev to avoid depending on systemd" 1.12 +MAINTAINER="tcg.thegamer@gmail.com" 1.13 +LICENSE="GPLv2" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WEB_SITE="http://dev.gentoo.org/~blueness/eudev" 1.16 +WGET_URL="${WEB_SITE}/${TARBALL}" 1.17 +PROVIDE="udev" 1.18 + 1.19 +DEPENDS="dbus util-linux-blkid pciids usbids acl kmod" 1.20 +BUILD_DEPENDS="util-linux-blkid-dev util-linux-uuid-dev pcre-dev kmod-dev dbus-dev gperf pkg-config acl-dev" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + cd $src 1.26 + ./configure \ 1.27 + --exec-prefix="" \ 1.28 + --with-rootprefix="" \ 1.29 + --disable-manpages \ 1.30 + --disable-introspection \ 1.31 + --disable-keymap \ 1.32 + --enable-floppy \ 1.33 + --enable-rule-generator \ 1.34 + $CONFIGURE_ARGS && 1.35 + make && 1.36 + make DESTDIR=$DESTDIR install 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs/lib/firmware 1.43 + 1.44 + cp -a $install/sbin $fs 1.45 + cp -a $install/etc $fs 1.46 + cp -a $install/lib/libgudev*so* $fs/lib 1.47 + cp -a $install/lib/udev $fs/lib 1.48 + 1.49 + # Copy rules files to udev conf dir 1.50 + mv -f $fs/lib/udev/rules.d $fs/etc/udev 1.51 + cp $stuff/udev.conf $fs/etc/udev 1.52 + cp $stuff/*.rules $fs/etc/udev/rules.d 1.53 + 1.54 + # Create some devices and directories that Udev cannot handle 1.55 + # due to them being required very early in the boot process 1.56 + mkdir -p $fs/lib/udev/devices/pts 1.57 + mkdir -p $fs/lib/udev/devices/shm 1.58 + mknod -m 0666 $fs/lib/udev/devices/null c 1 3 1.59 + 1.60 + # Fix permissions 1.61 + chmod +x $fs/lib/udev/* 1.62 + chown -R root.root $fs 1.63 + 1.64 +} 1.65 + 1.66 +list_udev_group() 1.67 +{ 1.68 + object=$2 1.69 + [ -n "$object" ] || object=GROUP 1.70 + grep $object $1/etc/udev/rules.d/* | \ 1.71 + sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq 1.72 +} 1.73 + 1.74 +post_install() 1.75 +{ 1.76 + # Sanity check for udev+ldap boot 1.77 + list_udev_group "$1" GROUP | while read x ; do 1.78 + grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x 1.79 + done 1.80 + list_udev_group "$1" OWNER | while read x ; do 1.81 + grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x 1.82 + done 1.83 +}