wok-next diff udev/receipt @ rev 12533
Up: xorg-xf86-input-evdev (it provide mouse and keyboard support so xorg-xf86-input-[mouse|keyboard] can be removed)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 26 01:50:03 2012 +0200 (2012-04-26) |
parents | 73641efed1cc |
children | 9358cad090a0 |
line diff
1.1 --- a/udev/receipt Mon Apr 23 16:30:27 2012 +0200 1.2 +++ b/udev/receipt Thu Apr 26 01:50:03 2012 +0200 1.3 @@ -1,67 +1,70 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="udev" 1.7 -VERSION="170" 1.8 +VERSION="182" 1.9 BUILD_WARNING="Install new udev package and rebuild hal" 1.10 CATEGORY="base-system" 1.11 SHORT_DESC="Udev creat automaticly right devices in /dev." 1.12 MAINTAINER="pankso@slitaz.org" 1.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 -WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" 1.15 -WGET_URL="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL" 1.16 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.17 +WEB_SITE="http://www.freedesktop.org/software/systemd/man/udev.html" 1.18 +WGET_URL="http://www.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL" 1.19 1.20 -DEPENDS="util-linux-blkid" 1.21 +DEPENDS="util-linux-blkid pciids usbids acl kmod" 1.22 BUILD_DEPENDS="util-linux-blkid-dev gperf pkg-config pciutils acl-dev \ 1.23 -libgio-dev gobject-introspection-dev usbutils-dev libusb-dev glib-dev libgudev" 1.24 +libgio-dev usbutils-dev libusb-dev glib-dev pciids usbids kmod-dev \ 1.25 +libgudev-dev pcre-dev" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 cd $src 1.31 - grep -qs 'define u8' extras/*_id/*.c || 1.32 - sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ 1.33 - extras/scsi_id/scsi_serial.c extras/ata_id/ata_id.c 1.34 - ./configure $CONFIGURE_ARGS \ 1.35 - --prefix=/usr \ 1.36 + ./configure \ 1.37 --exec-prefix="" \ 1.38 + --with-rootprefix="" \ 1.39 + --bindir=/sbin \ 1.40 --sysconfdir=/etc \ 1.41 - --libexecdir=/lib/udev \ 1.42 - --with-rootlibdir=/lib \ 1.43 - --with-pci-ids-path=/usr/share/misc/pci.ids.gz && 1.44 + --libexecdir=/lib \ 1.45 + --disable-manpages \ 1.46 + --disable-introspection \ 1.47 + --disable-keymap \ 1.48 + --enable-floppy \ 1.49 + --enable-rule_generator \ 1.50 + --with-pci-ids-path=/usr/share/misc/pci.ids.gz \ 1.51 + --with-usb-ids-path=/usr/share/misc/usb.ids.gz \ 1.52 + --with-systemdsystemunitdir=no \ 1.53 + $CONFIGURE_ARGS && 1.54 make && make install 1.55 } 1.56 1.57 # Rules to gen a SliTaz package suitable for Tazpkg. 1.58 genpkg_rules() 1.59 { 1.60 - mkdir -p $fs/lib/firmware $fs/usr $fs/run/udev 1.61 + mkdir -p $fs/lib/firmware $fs/run/udev 1.62 1.63 - cp -a $_pkg/sbin $fs 1.64 - cp -a $_pkg/etc $fs 1.65 - cp -a $_pkg/lib/libudev*so* $fs/lib 1.66 - cp -a $_pkg/lib/udev $fs/lib 1.67 - cp -a $_pkg/usr/lib $fs/usr 1.68 + cp -a $install/sbin $fs 1.69 + cp -a $install/etc $fs 1.70 + cp -a $install/lib/libudev*so* $fs/lib 1.71 + cp -a $install/lib/udev $fs/lib 1.72 + 1.73 + # Have udevd in PATH 1.74 + mv $fs/lib/udev/udevd $fs/sbin 1.75 1.76 - # OLD: Copy rules files to udev conf dir 1.77 + # Copy rules files to udev conf dir 1.78 mv -f $fs/lib/udev/rules.d $fs/etc/udev 1.79 cp $stuff/udev.conf $fs/etc/udev 1.80 cp $stuff/*.rules $fs/etc/udev/rules.d 1.81 1.82 + # Create some devices and directories that Udev cannot handle 1.83 + # due to them being required very early in the boot process 1.84 + mkdir -p $fs/lib/udev/devices/pts 1.85 + mknod -m 0666 $fs/lib/udev/devices/null c 1 3 1.86 + 1.87 # Fix permissions 1.88 chmod +x $fs/lib/udev/* 1.89 chown -R root.root $fs 1.90 } 1.91 1.92 -pre_install() 1.93 -{ 1.94 - # Remove old rules and libs 1.95 - rm -rf $1/lib/udev/rules.d 1.96 - rm -rf $1/lib/udev/vol_id 1.97 - rm -f $1/lib/libvolume_id* 1.98 - rm -f $1/lib/libudev.so.1.0 1.99 - rm -f $1/lib/libudev.so.2.0 1.100 -} 1.101 - 1.102 list_udev_group() 1.103 { 1.104 object=$2