wok view eudev/receipt @ rev 22734

updated discount and discount-dev (2.2.5 -> 2.2.6)
author Hans-G?nter Theisgen
date Thu Jan 23 17:26:34 2020 +0100 (2020-01-23)
parents 9e01bc6321ea
children b6e9ec8873bb
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/sbin $fs
44 cp -a $install/etc $fs
45 cp -a $install/lib/libudev*so* $fs/lib
46 cp -a $install/lib/udev $fs/lib
48 # Copy rules files to udev configuration directory
49 mv -f $fs/lib/udev/rules.d $fs/etc/udev
50 cp $stuff/udev.conf $fs/etc/udev
51 cp $stuff/*.rules $fs/etc/udev/rules.d
53 # Create some devices and directories that Udev cannot handle
54 # due to them being required very early in the boot process
55 mkdir -p $fs/lib/udev/devices/pts
56 mkdir -p $fs/lib/udev/devices/shm
57 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
59 # Fix permissions
60 chmod +x $fs/lib/udev/*
61 chown -R root.root $fs
62 }
64 list_udev_group()
65 {
66 object=$2
67 [ -n "$object" ] || object=GROUP
68 grep $object "$1"/etc/udev/rules.d/* | \
69 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
70 }
72 post_install()
73 {
74 # Sanity check for udev+ldap boot
75 list_udev_group "$1" GROUP | \
76 while read x
77 do
78 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
79 done
81 list_udev_group "$1" OWNER | \
82 while read x
83 do
84 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
85 done
86 }