wok-current view udev/receipt @ rev 22586

updated ccid (1.4.30 -> 1.4.31)
author Hans-G?nter Theisgen
date Tue Jan 07 14:37:06 2020 +0100 (2020-01-07)
parents 72f4278c6091
children 5d79829fa876
line source
1 # SliTaz package receipt.
3 PACKAGE="udev"
4 VERSION="182"
5 BUILD_WARNING="Install new udev package and rebuild hal"
6 CATEGORY="base-system"
7 SHORT_DESC="Udev creat automaticly right devices in /dev."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://www.freedesktop.org/software/systemd/man/udev.html"
12 WGET_URL="https://www.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="util-linux-blkid pciids usbids acl kmod"
16 BUILD_DEPENDS="util-linux-blkid-dev gperf pkg-config pciids acl-dev \
17 libgio-dev usbutils-dev libusb-dev glib-dev pciids usbids kmod-dev \
18 libgudev-dev pcre-dev liblzma-dev util-linux-uuid-dev"
20 # Use build host: gperf
21 case "$ARCH" in
22 arm*) BUILD_DEPENDS="util-linux-blkid-dev kmod-dev acl-dev glib-dev"
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 case "$ARCH" in
29 arm*)
30 # ARM Hack
31 for la in libgthread-2.0.la libglib-2.0.la
32 do
33 if grep -q "^libdir='/usr/lib'" /usr/lib/${la}; then
34 sed -i s"#/usr/lib#/cross/$ARCH/sysroot/usr/lib#" \
35 /usr/lib/${la}
36 fi
37 done ;;
38 esac
39 ./configure \
40 --exec-prefix="" \
41 --with-rootprefix="" \
42 --bindir=/sbin \
43 --sysconfdir=/etc \
44 --libexecdir=/lib \
45 --disable-manpages \
46 --disable-introspection \
47 --disable-keymap \
48 --enable-floppy \
49 --enable-rule_generator \
50 --with-pci-ids-path=/usr/share/misc/pci.ids.gz \
51 --with-usb-ids-path=/usr/share/misc/usb.ids.gz \
52 --with-systemdsystemunitdir=no \
53 $CONFIGURE_ARGS &&
54 make && make install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/lib/firmware
62 cp -a $install/sbin $fs
63 cp -a $install/etc $fs
64 cp -a $install/lib/libudev*so* $fs/lib
65 cp -a $install/lib/udev $fs/lib
67 # Have udevd in PATH
68 mv $fs/lib/udev/udevd $fs/sbin
70 # Copy rules files to udev conf dir
71 mv -f $fs/lib/udev/rules.d $fs/etc/udev
72 cp $stuff/udev.conf $fs/etc/udev
73 cp $stuff/*.rules $fs/etc/udev/rules.d
75 # Create some devices and directories that Udev cannot handle
76 # due to them being required very early in the boot process
77 mkdir -p $fs/lib/udev/devices/pts
78 mkdir -p $fs/lib/udev/devices/shm
79 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
81 # Fix permissions
82 chmod +x $fs/lib/udev/*
83 chown -R root.root $fs
84 }
86 list_udev_group()
87 {
88 object=${2:-GROUP}
89 grep $object "$1/etc/udev/rules.d/"* | \
90 sed "s|.*$object=\"\([a-zA-Z0-9]*\)\".*|\1|" | sort | uniq
91 }
93 post_install()
94 {
95 # Sanity check for udev+ldap boot
96 list_udev_group "$1" GROUP | \
97 while read x; do
98 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
99 done
100 list_udev_group "$1" OWNER | \
101 while read x; do
102 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
103 done
104 }