wok-current view eudev/receipt @ rev 24523

updated eudev, eudev-dev and eudev-lib (3.2.9 -> 3.2.11)
author Hans-G?nter Theisgen
date Tue Feb 22 17:00:18 2022 +0100 (2022-02-22)
parents 83927a09d38d
children 42a93682ac45
line source
1 # SliTaz package receipt.
3 PACKAGE="eudev"
4 VERSION="3.2.11"
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://github.com/eudev-project/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
14 PROVIDE="udev"
15 DEPENDS="acl dbus kmod pciids usbids util-linux-blkid eudev-lib"
16 BUILD_DEPENDS="acl-dev automake dbus-dev gperf kmod-dev libtool
17 pcre-dev pkg-config util-linux-blkid-dev util-linux-uuid-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed '/tar.gz</!d;s|.*HREF=eudev-||;s|.tar.gz.*||' | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # 3.2.9 unrecognised:
29 # --disable-keymap
30 # --enable-floppy
32 ./autogen.sh &&
33 ./configure \
34 --sysconfdir=/etc \
35 --exec-prefix="" \
36 --with-rootprefix="" \
37 --disable-manpages \
38 --disable-introspection \
39 --enable-rule-generator \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install DESTDIR=$DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/lib/firmware
50 cp -a $install/bin $fs
51 cp -a $install/sbin $fs
52 cp -a $install/etc $fs
53 cp -a $install/lib/udev $fs/lib
55 # Copy rules files to udev configuration directory
56 mv -f $fs/lib/udev/rules.d $fs/etc/udev
57 cp $stuff/udev.conf $fs/etc/udev
58 cp $stuff/*.rules $fs/etc/udev/rules.d
60 # Create some devices and directories that Udev cannot handle
61 # due to them being required very early in the boot process
62 mkdir -p $fs/lib/udev/devices/pts
63 mkdir -p $fs/lib/udev/devices/shm
64 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
66 # Fix permissions
67 chmod +x $fs/lib/udev/*
68 chown -R root.root $fs
69 }
71 list_udev_group()
72 {
73 object=$2
74 [ -n "$object" ] || object=GROUP
75 grep $object "$1"/etc/udev/rules.d/* | \
76 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
77 }
79 post_install()
80 {
81 # Sanity check for udev+ldap boot
82 list_udev_group "$1" GROUP | \
83 while read x
84 do
85 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
86 done
88 list_udev_group "$1" OWNER | \
89 while read x
90 do
91 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
92 done
93 }