wok-next view eudev/receipt @ rev 19763

Up libffi, python, some python-* packages.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 10 21:12:27 2017 +0300 (2017-06-10)
parents c5336999f370
children 77529bc3b589
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 PROVIDE="udev"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}$TARBALL"
14 TARBALL_MD5="41e19b70462692fefd072a3f38818b6e"
16 BUILD_DEPENDS="gobject-introspection-dev util-linux-blkid-dev gperf"
17 SPLIT="eudev-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
23 sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c
24 cat > config.cache <<"EOF"
25 HAVE_BLKID=1
26 BLKID_LIBS="-lblkid"
27 BLKID_CFLAGS="-I/include"
28 EOF
30 ./configure \
31 --bindir=/sbin \
32 --sbindir=/sbin \
33 --libdir=/usr/lib \
34 --sysconfdir=/etc \
35 --libexecdir=/lib \
36 --with-rootprefix= \
37 --with-rootlibdir=/lib \
38 --enable-manpages \
39 --disable-static \
40 --config-cache \
41 $CONFIGURE_ARGS &&
42 make &&
43 make install
45 mkdir -p $install/etc/udev
46 cp $stuff/udev.conf $install/etc/udev
47 cp $stuff/*.rules $install/etc/udev/rules.d
49 # https://docs.oracle.com/cd/E37670_01/E41138/html/ch07s03.html
50 # /lib/udev/rules.d : default rules files. Do not edit these files.
51 # /etc/udev/rules.d : customized rules files. You can modify these files
52 # Rules files in /etc/udev/rules.d override files of the same name
53 # in /lib/udev/rules.d.
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 case $PACKAGE in
60 eudev)
61 copy @std
62 DEPENDS="dbus util-linux-blkid util-linux-uuid pciids usbids acl kmod"
63 ;;
64 eudev-dev)
65 copy @dev
66 ;;
67 esac
68 }
70 post_install_eudev()
71 {
72 mkdir -p "$1/lib/firmware"
74 # Create some devices and directories that Udev cannot handle
75 # due to them being required very early in the boot process
76 mkdir -p "$1/lib/udev/devices/pts"
77 mkdir -p "$1/lib/udev/devices/shm"
78 [ -e "$1/lib/udev/devices/null" ] || mknod -m 0666 "$1/lib/udev/devices/null" c 1 3
80 # Sanity check for udev+ldap boot
81 grep GROUP "$1"/etc/udev/rules.d/* | \
82 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \
83 while read x ; do
84 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
85 done
87 grep OWNER "$1"/etc/udev/rules.d/* | \
88 sed 's/.*OWNER="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq | \
89 while read x ; do
90 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
91 done
92 }