wok-next view udev/receipt @ rev 3755

Upgrade: libsoup (2.26.3 to 2.27.4)
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jul 23 15:48:17 2009 +0000 (2009-07-23)
parents 93fb95652d6d
children f060e21dde4c
line source
1 # SliTaz package receipt.
3 PACKAGE="udev"
4 VERSION="143"
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 DEPENDS="glibc-base util-linux-ng-blkid glib"
9 BUILD_DEPENDS="$DEPENDS util-linux-ng-blkid-dev gperf pkg-config \
10 glib-dev acl-dev acl usbutils-dev pciutils"
11 MAINTAINER="pankso@slitaz.org"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
14 WGET_URL="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --exec-prefix="" \
23 --sysconfdir=/etc \
24 --enable-static \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/lib/firmware $fs/etc/udev $fs/usr/lib
34 for dir in sbin etc lib
35 do
36 cp -a $_pkg/$dir $fs
37 done
38 ln -s /lib/libudev.so.0.3.0 $fs/usr/lib/libudev.so
40 # Copy rules files to udev conf dir
41 mv $fs/lib/udev/rules.d $fs/etc/udev
42 cp stuff/udev.conf $fs/etc/udev
43 cp stuff/90-permissions.rules $fs/etc/udev/rules.d
44 cp $src/rules/packages/40-alsa.rules $fs/etc/udev/rules.d
45 cp $src/rules/packages/40-zaptel.rules $fs/etc/udev/rules.d
46 # Fix permissions
47 chmod +x $fs/lib/udev/*
48 chown -R root.root $fs
49 }
51 pre_install()
52 {
53 # Remove old rules and libs
54 rm -rf $1/lib/udev/rules.d
55 rm -rf $1/lib/udev/vol_id
56 rm -f $1/lib/libvolume_id*
57 rm -f $1/lib/libudev.so.1.0
58 rm -f $1/lib/libudev.so.2.0
59 }
61 list_udev_group()
62 {
63 object=$1
64 [ -n "$object" ] || object=GROUP
65 grep $object /etc/udev/rules.d/* | \
66 sed "s/.*GROUP=\"\\([a-zA-Z0-9]*\\)\".*/\1/" | sort | uniq
67 }
69 post_install()
70 {
71 # Sanity check for udev+ldap boot
72 list_udev_group GROUP | while read x ; do
73 grep -q ^$x: $1/etc/group || chroot $1/ addgroup $x
74 done
75 list_udev_group OWNER | while read x ; do
76 grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x
77 done
78 }