wok-next view udev/receipt @ rev 16420
Add jansson and mygestures for mouse-gesture on touchscreen
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 18 01:43:00 2014 +0200 (2014-04-18) |
parents | 9be2dfe2fe72 |
children | 526980ca17c4 |
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="http://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 pciutils 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
89 [ -n "$object" ] || object=GROUP
90 grep $object $1/etc/udev/rules.d/* | \
91 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
92 }
94 post_install()
95 {
96 # Sanity check for udev+ldap boot
97 list_udev_group "$1" GROUP | while read x ; do
98 grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x
99 done
100 list_udev_group "$1" OWNER | while read x ; do
101 grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x
102 done
103 }