wok-current view eudev/receipt @ rev 24053
Up slitaz-boot-script (471)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 27 13:42:59 2021 +0000 (2021-05-27) |
parents | 281ca267525d |
children | 83927a09d38d |
line source
1 # SliTaz package receipt.
3 PACKAGE="eudev"
4 VERSION="3.2.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 WEB_SITE="https://wiki.gentoo.org/wiki/Project:Eudev"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://dev.gentoo.org/~blueness/$PACKAGE/$TARBALL"
14 PROVIDE="udev"
15 DEPENDS="acl dbus kmod pciids usbids util-linux-blkid"
16 BUILD_DEPENDS="acl-dev dbus-dev gperf kmod-dev pcre-dev pkg-config
17 util-linux-blkid-dev util-linux-uuid-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # 3.2.9 unrecognised:
23 # --disable-keymap
24 # --enable-floppy
26 ./configure \
27 --sysconfdir=/etc \
28 --exec-prefix="" \
29 --with-rootprefix="" \
30 --disable-manpages \
31 --disable-introspection \
32 --enable-rule-generator \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/lib/firmware
43 cp -a $install/bin $fs
44 cp -a $install/sbin $fs
45 cp -a $install/etc $fs
46 cp -a $install/lib/libudev*so* $fs/lib
47 cp -a $install/lib/udev $fs/lib
49 # Copy rules files to udev configuration directory
50 mv -f $fs/lib/udev/rules.d $fs/etc/udev
51 cp $stuff/udev.conf $fs/etc/udev
52 cp $stuff/*.rules $fs/etc/udev/rules.d
54 # Create some devices and directories that Udev cannot handle
55 # due to them being required very early in the boot process
56 mkdir -p $fs/lib/udev/devices/pts
57 mkdir -p $fs/lib/udev/devices/shm
58 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
60 # Fix permissions
61 chmod +x $fs/lib/udev/*
62 chown -R root.root $fs
63 }
65 list_udev_group()
66 {
67 object=$2
68 [ -n "$object" ] || object=GROUP
69 grep $object "$1"/etc/udev/rules.d/* | \
70 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
71 }
73 post_install()
74 {
75 # Sanity check for udev+ldap boot
76 list_udev_group "$1" GROUP | \
77 while read x
78 do
79 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
80 done
82 list_udev_group "$1" OWNER | \
83 while read x
84 do
85 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
86 done
87 }