wok rev 10402
remove udev-light (no sense now)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 24 03:16:38 2011 +0200 (2011-05-24) |
parents | adf05f8df349 |
children | 87dcc4995f4d |
files | udev-light/receipt |
line diff
1.1 --- a/udev-light/receipt Tue May 24 03:13:22 2011 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,83 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="udev-light" 1.7 -VERSION="170" 1.8 -CATEGORY="base-system" 1.9 -SHORT_DESC="Light Udev version without extras." 1.10 -MAINTAINER="pankso@slitaz.org" 1.11 -SOURCE="udev" 1.12 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.13 -WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" 1.14 -WGET_URL="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL" 1.15 -PROVIDE="udev" 1.16 - 1.17 -DEPENDS="util-linux-ng-blkid" 1.18 -BUILD_DEPENDS="util-linux-ng-blkid-dev gperf pkg-config pciutils \ 1.19 -gobject-introspection-dev" 1.20 - 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 - cd $src 1.25 - grep -qs 'define u8' extras/*_id/*.c || 1.26 - sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ 1.27 - extras/scsi_id/scsi_serial.c extras/ata_id/ata_id.c 1.28 - ./configure $CONFIGURE_ARGS \ 1.29 - --prefix=/usr \ 1.30 - --exec-prefix="" \ 1.31 - --sysconfdir=/etc \ 1.32 - --libexecdir=/lib/udev \ 1.33 - --with-rootlibdir=/lib \ 1.34 - --disable-extras \ 1.35 - --with-pci-ids-path=/usr/share/misc/pci.ids.gz && 1.36 - make && make install 1.37 -} 1.38 - 1.39 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 -genpkg_rules() 1.41 -{ 1.42 - mkdir -p $fs/lib/firmware $fs/run/udev 1.43 - 1.44 - cp -a $_pkg/sbin $fs 1.45 - cp -a $_pkg/etc $fs 1.46 - cp -a $_pkg/lib/libudev*so* $fs/lib 1.47 - cp -a $_pkg/lib/udev $fs/lib 1.48 - 1.49 - # Copy rules files to udev conf dir 1.50 - mv -f $fs/lib/udev/rules.d $fs/etc/udev 1.51 - cp $WOK/$SOURCE/stuff/udev.conf $fs/etc/udev 1.52 - cp $WOK/$SOURCE/stuff/*.rules $fs/etc/udev/rules.d 1.53 - 1.54 - # Fix permissions 1.55 - chmod +x $fs/lib/udev/* 1.56 - chown -R root.root $fs 1.57 -} 1.58 - 1.59 -pre_install() 1.60 -{ 1.61 - # Remove old rules and libs 1.62 - rm -rf $1/lib/udev/rules.d 1.63 - rm -rf $1/lib/udev/vol_id 1.64 - rm -f $1/lib/libvolume_id* 1.65 - rm -f $1/lib/libudev.so.1.0 1.66 - rm -f $1/lib/libudev.so.2.0 1.67 -} 1.68 - 1.69 -list_udev_group() 1.70 -{ 1.71 - object=$1 1.72 - [ -n "$object" ] || object=GROUP 1.73 - grep $object /etc/udev/rules.d/* | \ 1.74 - sed "s/.*GROUP=\"\\([a-zA-Z0-9]*\\)\".*/\1/" | sort | uniq 1.75 -} 1.76 - 1.77 -post_install() 1.78 -{ 1.79 - # Sanity check for udev+ldap boot 1.80 - list_udev_group GROUP | while read x ; do 1.81 - grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x 1.82 - done 1.83 - list_udev_group OWNER | while read x ; do 1.84 - grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x 1.85 - done 1.86 -}