wok-current view eudev/receipt @ rev 17173

~/.xinitrc: undo (permission fix)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Sep 25 19:56:05 2014 +0200 (2014-09-25)
parents 8f0d02db4d84
children 124c3a7da04f
line source
1 # SliTaz package receipt.
3 PACKAGE="eudev"
4 VERSION="1.9"
5 CATEGORY="base-system"
6 SHORT_DESC="Fork of udev to avoid depending on systemd"
7 MAINTAINER="tcg.thegamer@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://dev.gentoo.org/~blueness/eudev"
11 WGET_URL="${WEB_SITE}/${TARBALL}"
12 PROVIDE="udev"
14 DEPENDS="dbus util-linux-blkid pciids usbids acl kmod"
15 BUILD_DEPENDS="util-linux-blkid-dev util-linux-uuid-dev pcre-dev kmod-dev dbus-dev gperf pkg-config acl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --sysconfdir=/etc \
23 --exec-prefix="" \
24 --with-rootprefix="" \
25 --disable-manpages \
26 --disable-introspection \
27 --disable-keymap \
28 --enable-floppy \
29 --enable-rule-generator \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/lib/firmware
40 cp -a $install/sbin $fs
41 cp -a $install/etc $fs
42 cp -a $install/lib/libgudev*so* $fs/lib
43 cp -a $install/lib/udev $fs/lib
45 # Copy rules files to udev conf dir
46 mv -f $fs/lib/udev/rules.d $fs/etc/udev
47 cp $stuff/udev.conf $fs/etc/udev
48 cp $stuff/*.rules $fs/etc/udev/rules.d
50 # Create some devices and directories that Udev cannot handle
51 # due to them being required very early in the boot process
52 mkdir -p $fs/lib/udev/devices/pts
53 mkdir -p $fs/lib/udev/devices/shm
54 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
56 # Fix permissions
57 chmod +x $fs/lib/udev/*
58 chown -R root.root $fs
60 }
62 list_udev_group()
63 {
64 object=$2
65 [ -n "$object" ] || object=GROUP
66 grep $object $1/etc/udev/rules.d/* | \
67 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
68 }
70 post_install()
71 {
72 # Sanity check for udev+ldap boot
73 list_udev_group "$1" GROUP | while read x ; do
74 grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x
75 done
76 list_udev_group "$1" OWNER | while read x ; do
77 grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x
78 done
79 }