wok-next view eudev/receipt @ rev 19863

Up eudev, make-slitaz-icons, ntfs-3g, pcmanfm, polkit, slitaz-base-files, slitaz-boot-scripts, slitaz-icons-paper.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 12 01:34:11 2017 +0300 (2017-09-12)
parents 77529bc3b589
children 6d2b71cbba60
line source
1 # SliTaz package receipt v2.
3 PACKAGE="eudev"
4 VERSION="3.2.2"
5 CATEGORY="base-system"
6 SHORT_DESC="Programs for dynamic creation of device nodes"
7 MAINTAINER="tcg.thegamer@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://dev.gentoo.org/~blueness/eudev/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/eudev.html"
11 PROVIDE="udev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}$TARBALL"
15 TARBALL_MD5="41e19b70462692fefd072a3f38818b6e"
17 BUILD_DEPENDS="gobject-introspection-dev util-linux-blkid-dev gperf"
18 SPLIT="eudev-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
24 sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c
25 cat > config.cache <<"EOF"
26 HAVE_BLKID=1
27 BLKID_LIBS="-lblkid"
28 BLKID_CFLAGS="-I/include"
29 EOF
31 ./configure \
32 --bindir=/sbin \
33 --sbindir=/sbin \
34 --libdir=/usr/lib \
35 --sysconfdir=/etc \
36 --libexecdir=/lib \
37 --with-rootprefix= \
38 --with-rootlibdir=/lib \
39 --enable-manpages \
40 --disable-static \
41 --config-cache \
42 $CONFIGURE_ARGS &&
43 make &&
44 make install
46 cp $stuff/*.rules $install/etc/udev/rules.d
47 cp $stuff/udev/* $install/lib/udev
49 mkdir -p "$install/lib/firmware"
51 # https://docs.oracle.com/cd/E37670_01/E41138/html/ch07s03.html
52 # /lib/udev/rules.d : default rules files. Do not edit these files.
53 # /etc/udev/rules.d : customized rules files. You can modify these files
54 # Rules files in /etc/udev/rules.d override files of the same name
55 # in /lib/udev/rules.d.
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 case $PACKAGE in
62 eudev)
63 copy @std
64 DEPENDS="dbus util-linux-blkid util-linux-uuid pciids usbids acl kmod"
65 ;;
66 eudev-dev)
67 copy @dev
68 ;;
69 esac
70 }
72 post_install_eudev() {
73 # Create some devices and directories that Udev cannot handle
74 # due to them being required very early in the boot process
75 mkdir -p "$1/lib/udev/devices/pts"
76 mkdir -p "$1/lib/udev/devices/shm"
77 [ -e "$1/lib/udev/devices/null" ] || mknod -m 0666 "$1/lib/udev/devices/null" c 1 3
79 # Sanity check for udev+ldap boot
80 grep GROUP "$1"/etc/udev/rules.d/* "$1"/lib/udev/rules.d/* 2>/dev/null | \
81 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \
82 while read x; do
83 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
84 done
86 grep OWNER "$1"/etc/udev/rules.d/* "$1"/lib/udev/rules.d/* 2>/dev/null | \
87 sed 's/.*OWNER="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \
88 while read x; do
89 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
90 done
91 }