wok-next view eudev/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents f1752c8b2a2a
children 9278a60d6895
line source
1 # SliTaz package receipt.
3 PACKAGE="eudev"
4 VERSION="3.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 PROVIDE="udev"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}$TARBALL"
15 DEPENDS="dbus util-linux-blkid pciids usbids acl kmod"
16 BUILD_DEPENDS="gobject-introspection-dev util-linux-blkid-dev gperf"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
22 cat > config.cache <<"EOF"
23 HAVE_BLKID=1
24 BLKID_LIBS="-lblkid"
25 BLKID_CFLAGS="-I/tools/include"
26 EOF
28 ./configure \
29 --bindir=/sbin \
30 --sbindir=/sbin \
31 --libdir=/usr/lib \
32 --sysconfdir=/etc \
33 --libexecdir=/lib \
34 --with-rootprefix= \
35 --with-rootlibdir=/lib \
36 --enable-manpages \
37 --disable-static \
38 --config-cache \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/lib/firmware $fs/usr/lib
49 cp -a $install/sbin $fs
50 cp -a $install/etc $fs
51 cp -a $install/lib/libudev.so* $fs/lib
52 cp -a $install/lib/udev $fs/lib
53 cp -a $install/usr/lib/libudev.so $fs/usr/lib
55 # Copy rules files to udev conf dir
56 mv -f $fs/lib/udev/rules.d $fs/etc/udev
57 cp $stuff/udev.conf $fs/etc/udev
58 cp $stuff/*.rules $fs/etc/udev/rules.d
60 # Create some devices and directories that Udev cannot handle
61 # due to them being required very early in the boot process
62 mkdir -p $fs/lib/udev/devices/pts
63 mkdir -p $fs/lib/udev/devices/shm
64 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
66 # Fix permissions
67 chmod +x $fs/lib/udev/*
68 chown -R root.root $fs
70 }
72 list_udev_group()
73 {
74 object=$2
75 [ -n "$object" ] || object=GROUP
76 grep $object "$1"/etc/udev/rules.d/* | \
77 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
78 }
80 post_install()
81 {
82 # Sanity check for udev+ldap boot
83 list_udev_group "$1" GROUP | \
84 while read x ; do
85 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
86 done
88 list_udev_group "$1" OWNER | \
89 while read x ; do
90 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
91 done
92 }