wok-current view eudev/receipt @ rev 25368

libmpd: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 29 10:44:25 2022 +0000 (2022-07-29)
parents 42a93682ac45
children 5926178cd6fa
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 libxslt
17 pcre-dev pkg-config util-linux-blkid-dev util-linux-uuid-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/eudev-project/eudev/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # 3.2.9 unrecognised:
30 # --disable-keymap
31 # --enable-floppy
33 ./autogen.sh &&
34 ./configure \
35 --sysconfdir=/etc \
36 --exec-prefix="" \
37 --with-rootprefix="" \
38 --disable-manpages \
39 --disable-introspection \
40 --enable-rule-generator \
41 $CONFIGURE_ARGS &&
42 make &&
43 make install DESTDIR=$DESTDIR
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/lib/firmware
51 cp -a $install/bin $fs
52 cp -a $install/sbin $fs
53 cp -a $install/etc $fs
54 cp -a $install/lib/udev $fs/lib
56 # Copy rules files to udev configuration directory
57 mv -f $fs/lib/udev/rules.d $fs/etc/udev
58 cp $stuff/udev.conf $fs/etc/udev
59 cp $stuff/*.rules $fs/etc/udev/rules.d
61 # Create some devices and directories that Udev cannot handle
62 # due to them being required very early in the boot process
63 mkdir -p $fs/lib/udev/devices/pts
64 mkdir -p $fs/lib/udev/devices/shm
65 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
67 # Fix permissions
68 chmod +x $fs/lib/udev/*
69 chown -R root.root $fs
70 }
72 list_udev_group()
73 {
74 object=$2
75 [ -n "$object" ] || object=GROUP
76 grep $object "$1"/etc/udev/rules.d/* | \
77 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
78 }
80 post_install()
81 {
82 # Sanity check for udev+ldap boot
83 list_udev_group "$1" GROUP | \
84 while read x
85 do
86 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
87 done
89 list_udev_group "$1" OWNER | \
90 while read x
91 do
92 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
93 done
94 }