wok-next view udev/receipt @ rev 21694
updated goaccess (0.6.1 -> 1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 30 15:33:04 2020 +0100 (2020-06-30) |
parents | 342b30daff76 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="udev"
4 VERSION="182"
5 CATEGORY="base-system"
6 SHORT_DESC="Udev creat automaticly right devices in /dev"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/software/systemd/man/udev.html"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL"
14 BUILD_DEPENDS="util-linux-blkid-dev gperf pciids acl-dev \
15 usbutils-dev libusb-dev glib-dev pciids usbids kmod-dev \
16 libgudev-dev pcre-dev xz-dev util-linux-uuid-dev"
17 SPLIT="$PACKAGE-dev"
19 BUILD_WARNING="Install new udev package and rebuild hal"
21 compile_rules() {
22 sed -i 's/.*mtd-user.*/&\n#include <stdint.h>/' src/mtd_probe/mtd_probe.h
23 export LDFLAGS="$LDFLAGS -lrt"
24 ./configure \
25 --exec-prefix="" \
26 --with-rootprefix="" \
27 --bindir=/sbin \
28 --libexecdir=/lib \
29 --disable-manpages \
30 --disable-introspection \
31 --disable-keymap \
32 --enable-floppy \
33 --enable-rule_generator \
34 --with-pci-ids-path=/usr/share/misc/pci.ids.gz \
35 --with-usb-ids-path=/usr/share/misc/usb.ids.gz \
36 --with-systemdsystemunitdir=no \
37 $CONFIGURE_ARGS &&
38 fix libtool &&
39 make &&
40 make install
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 udev)
46 mkdir -p $fs/lib/firmware
48 cp -a $install/sbin $fs
49 cp -a $install/etc $fs
50 cp -a $install/lib/libudev*so* $fs/lib
51 cp -a $install/lib/udev $fs/lib
53 # Have udevd in PATH
54 mv $fs/lib/udev/udevd $fs/sbin
56 # Copy rules files to udev conf dir
57 mv -f $fs/lib/udev/rules.d $fs/etc/udev
58 cp $stuff/udev.conf $fs/etc/udev
59 cp $stuff/*.rules $fs/etc/udev/rules.d
61 # Create some devices and directories that Udev cannot handle
62 # due to them being required very early in the boot process
63 mkdir -p $fs/lib/udev/devices/pts
64 mkdir -p $fs/lib/udev/devices/shm
65 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
67 # Fix permissions
68 chmod +x $fs/lib/udev/*
69 chown -R root.root $fs
70 DEPENDS="kmod util-linux-blkid pciids usbids acl"
71 ;;
72 *-dev)
73 copy @dev
74 ;;
75 esac
76 }
78 post_install_udev() {
79 # Sanity check for udev+ldap boot
80 grep GROUP "$1/etc/udev/rules.d/"* \
81 | sed "s|.*$object=\"\([a-zA-Z0-9]*\)\".*|\1|" \
82 | sort \
83 | uniq \
84 | while read x; do
85 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
86 done
88 grep OWNER "$1/etc/udev/rules.d/"* \
89 | sed "s|.*$object=\"\([a-zA-Z0-9]*\)\".*|\1|" \
90 | sort \
91 | uniq \
92 | while read x; do
93 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
94 done
95 }