wok-next view eudev/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents 5e01e6d2531a
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="eudev"
4 VERSION="3.2.9"
5 CATEGORY="base-system"
6 TAGS="LFS"
7 SHORT_DESC="Programs for dynamic creation of device nodes"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://dev.gentoo.org/~blueness/eudev/"
11 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/eudev.html"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}$TARBALL"
15 # https://dev.gentoo.org/~blueness/eudev/
16 TARBALL_MD5="dedfb1964f6098fe9320de827957331f"
18 BUILD_DEPENDS="gobject-introspection-dev gperf kmod-dev util-linux-blkid-dev"
19 SPLIT="$PACKAGE-dev"
21 compile_rules()
22 {
23 sed -r -i 's|/usr(/bin/test)|\1|' \
24 test/udev-test.pl
25 sed -i '/keyboard_lookup_key/d' \
26 src/udev/udev-builtin-keyboard.c
27 cat > config.cache <<"EOF"
28 HAVE_BLKID=1
29 BLKID_LIBS="-lblkid"
30 BLKID_CFLAGS="-I/include"
31 EOF
33 ./configure \
34 --bindir=/sbin \
35 --sbindir=/sbin \
36 --libdir=/usr/lib \
37 --libexecdir=/lib \
38 --with-rootprefix= \
39 --with-rootlibdir=/lib \
40 --enable-manpages \
41 --disable-static \
42 --config-cache \
43 --enable-kmod \
44 $CONFIGURE_ARGS &&
45 fix libtool &&
46 make &&
47 make install || return 1
49 cp $stuff/*.rules $install/etc/udev/rules.d
50 cp -a $stuff/udev/* $install/lib/udev
52 mkdir -p "$install/lib/firmware"
53 mkdir -p "$install/lib/udev/keymaps/force-release"
55 chown -R root:root $install
57 # https://docs.oracle.com/cd/E37670_01/E41138/html/ch07s03.html
58 # /lib/udev/rules.d : default rules files. Do not edit these files.
59 # /etc/udev/rules.d : customized rules files. You can modify these files
60 # Rules files in /etc/udev/rules.d override files of the same name
61 # in /lib/udev/rules.d.
62 }
64 genpkg_rules()
65 {
66 case $PACKAGE in
67 eudev)
68 copy @std
69 DEPENDS="dbus kmod liblzma util-linux-blkid util-linux-uuid zlib"
70 PROVIDE="udev"
71 ;;
72 eudev-dev)
73 copy @dev
74 PROVIDE="udev-dev"
75 ;;
76 esac
77 }
79 post_install_eudev()
80 {
81 # Create some devices and directories that Udev cannot handle
82 # due to them being required very early in the boot process
83 mkdir -p "$1/lib/udev/devices/pts"
84 mkdir -p "$1/lib/udev/devices/shm"
85 [ -e "$1/lib/udev/devices/null" ] || mknod -m 0666 "$1/lib/udev/devices/null" c 1 3
87 # Sanity check for udev+ldap boot
88 grep GROUP= "$1"/etc/udev/rules.d/* "$1"/lib/udev/rules.d/* 2>/dev/null | \
89 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \
90 while read x
91 do
92 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
93 done
95 grep OWNER= "$1"/etc/udev/rules.d/* "$1"/lib/udev/rules.d/* 2>/dev/null | \
96 sed 's/.*OWNER="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \
97 while read x
98 do
99 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
100 done
101 }