wok-current view eudev/receipt @ rev 24374

avrdude: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 17:11:25 2022 +0000 (2022-02-05)
parents b6e9ec8873bb
children d9c1c1316111
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 eudev-lib"
16 BUILD_DEPENDS="acl-dev dbus-dev gperf kmod-dev pcre-dev pkg-config
17 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 ./configure \
33 --sysconfdir=/etc \
34 --exec-prefix="" \
35 --with-rootprefix="" \
36 --disable-manpages \
37 --disable-introspection \
38 --enable-rule-generator \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/lib/firmware
49 cp -a $install/bin $fs
50 cp -a $install/sbin $fs
51 cp -a $install/etc $fs
52 cp -a $install/lib/udev $fs/lib
54 # Copy rules files to udev configuration directory
55 mv -f $fs/lib/udev/rules.d $fs/etc/udev
56 cp $stuff/udev.conf $fs/etc/udev
57 cp $stuff/*.rules $fs/etc/udev/rules.d
59 # Create some devices and directories that Udev cannot handle
60 # due to them being required very early in the boot process
61 mkdir -p $fs/lib/udev/devices/pts
62 mkdir -p $fs/lib/udev/devices/shm
63 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
65 # Fix permissions
66 chmod +x $fs/lib/udev/*
67 chown -R root.root $fs
68 }
70 list_udev_group()
71 {
72 object=$2
73 [ -n "$object" ] || object=GROUP
74 grep $object "$1"/etc/udev/rules.d/* | \
75 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
76 }
78 post_install()
79 {
80 # Sanity check for udev+ldap boot
81 list_udev_group "$1" GROUP | \
82 while read x
83 do
84 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
85 done
87 list_udev_group "$1" OWNER | \
88 while read x
89 do
90 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
91 done
92 }