wok-next rev 21632
updated eudev (3.2.7 -> 3.2.9)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 09:58:03 2020 +0100 (2020-06-26) |
parents | 4f9aa059e6fb |
children | be8f87a154b2 |
files | eudev/receipt |
line diff
1.1 --- a/eudev/receipt Fri Jun 26 09:47:36 2020 +0100 1.2 +++ b/eudev/receipt Fri Jun 26 09:58:03 2020 +0100 1.3 @@ -1,8 +1,9 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="eudev" 1.7 -VERSION="3.2.7" 1.8 +VERSION="3.2.9" 1.9 CATEGORY="base-system" 1.10 +TAGS="LFS" 1.11 SHORT_DESC="Programs for dynamic creation of device nodes" 1.12 MAINTAINER="al.bobylev@gmail.com" 1.13 LICENSE="GPL2" 1.14 @@ -11,42 +12,47 @@ 1.15 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 WGET_URL="${WEB_SITE}$TARBALL" 1.18 -TARBALL_MD5="c75d99910c1791dd9430d26ab76059c0" 1.19 +# https://dev.gentoo.org/~blueness/eudev/ 1.20 +TARBALL_MD5="dedfb1964f6098fe9320de827957331f" 1.21 1.22 -BUILD_DEPENDS="gobject-introspection-dev util-linux-blkid-dev gperf kmod-dev" 1.23 +BUILD_DEPENDS="gobject-introspection-dev gperf kmod-dev util-linux-blkid-dev" 1.24 SPLIT="$PACKAGE-dev" 1.25 1.26 -compile_rules() { 1.27 - sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl 1.28 - sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c 1.29 +compile_rules() 1.30 +{ 1.31 + sed -r -i 's|/usr(/bin/test)|\1|' \ 1.32 + test/udev-test.pl 1.33 + sed -i '/keyboard_lookup_key/d' \ 1.34 + src/udev/udev-builtin-keyboard.c 1.35 cat > config.cache <<"EOF" 1.36 HAVE_BLKID=1 1.37 BLKID_LIBS="-lblkid" 1.38 BLKID_CFLAGS="-I/include" 1.39 EOF 1.40 1.41 - ./configure \ 1.42 - --bindir=/sbin \ 1.43 - --sbindir=/sbin \ 1.44 - --libdir=/usr/lib \ 1.45 - --libexecdir=/lib \ 1.46 - --with-rootprefix= \ 1.47 - --with-rootlibdir=/lib \ 1.48 - --enable-manpages \ 1.49 - --disable-static \ 1.50 - --config-cache \ 1.51 - --enable-kmod \ 1.52 + ./configure \ 1.53 + --bindir=/sbin \ 1.54 + --sbindir=/sbin \ 1.55 + --libdir=/usr/lib \ 1.56 + --libexecdir=/lib \ 1.57 + --with-rootprefix= \ 1.58 + --with-rootlibdir=/lib \ 1.59 + --enable-manpages \ 1.60 + --disable-static \ 1.61 + --config-cache \ 1.62 + --enable-kmod \ 1.63 $CONFIGURE_ARGS && 1.64 fix libtool && 1.65 make && 1.66 make install || return 1 1.67 1.68 - cp $stuff/*.rules $install/etc/udev/rules.d 1.69 - cp -a $stuff/udev/* $install/lib/udev 1.70 + cp $stuff/*.rules $install/etc/udev/rules.d 1.71 + cp -a $stuff/udev/* $install/lib/udev 1.72 1.73 - mkdir -p "$install/lib/firmware" "$install/lib/udev/keymaps/force-release" 1.74 + mkdir -p "$install/lib/firmware" 1.75 + mkdir -p "$install/lib/udev/keymaps/force-release" 1.76 1.77 - chown -R root:root $install 1.78 + chown -R root:root $install 1.79 1.80 # https://docs.oracle.com/cd/E37670_01/E41138/html/ch07s03.html 1.81 # /lib/udev/rules.d : default rules files. Do not edit these files. 1.82 @@ -55,13 +61,13 @@ 1.83 # in /lib/udev/rules.d. 1.84 } 1.85 1.86 -genpkg_rules() { 1.87 +genpkg_rules() 1.88 +{ 1.89 case $PACKAGE in 1.90 eudev) 1.91 copy @std 1.92 - DEPENDS="kmod liblzma util-linux-blkid util-linux-uuid zlib dbus" 1.93 + DEPENDS="dbus kmod liblzma util-linux-blkid util-linux-uuid zlib" 1.94 PROVIDE="udev" 1.95 - TAGS="LFS" 1.96 ;; 1.97 eudev-dev) 1.98 copy @dev 1.99 @@ -70,7 +76,8 @@ 1.100 esac 1.101 } 1.102 1.103 -post_install_eudev() { 1.104 +post_install_eudev() 1.105 +{ 1.106 # Create some devices and directories that Udev cannot handle 1.107 # due to them being required very early in the boot process 1.108 mkdir -p "$1/lib/udev/devices/pts" 1.109 @@ -80,13 +87,15 @@ 1.110 # Sanity check for udev+ldap boot 1.111 grep GROUP= "$1"/etc/udev/rules.d/* "$1"/lib/udev/rules.d/* 2>/dev/null | \ 1.112 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \ 1.113 - while read x; do 1.114 + while read x 1.115 + do 1.116 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x 1.117 - done 1.118 + done 1.119 1.120 grep OWNER= "$1"/etc/udev/rules.d/* "$1"/lib/udev/rules.d/* 2>/dev/null | \ 1.121 sed 's/.*OWNER="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \ 1.122 - while read x; do 1.123 + while read x 1.124 + do 1.125 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x 1.126 - done 1.127 + done 1.128 }