wok view eudev/receipt @ rev 17146

libmrss: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 10 13:04:01 2014 +0200 (2014-09-10)
parents 38e2f5dca901
children 7951690c1677
line source
1 # SliTaz package receipt.
3 PACKAGE="eudev"
4 VERSION="1.9"
5 CATEGORY="base-system"
6 SHORT_DESC="Fork of udev to avoid depending on systemd"
7 MAINTAINER="tcg.thegamer@gmail.com"
8 LICENSE="GPLv2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://dev.gentoo.org/~blueness/eudev"
11 WGET_URL="${WEB_SITE}/${TARBALL}"
12 PROVIDE="udev"
14 DEPENDS="dbus util-linux-blkid pciids usbids acl kmod"
15 BUILD_DEPENDS="util-linux-blkid-dev util-linux-uuid-dev pcre-dev kmod-dev dbus-dev gperf pkg-config acl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --exec-prefix="" \
23 --with-rootprefix="" \
24 --disable-manpages \
25 --disable-introspection \
26 --disable-keymap \
27 --enable-floppy \
28 --enable-rule-generator \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/lib/firmware
39 cp -a $install/sbin $fs
40 cp -a $install/etc $fs
41 cp -a $install/lib/libgudev*so* $fs/lib
42 cp -a $install/lib/udev $fs/lib
44 # Copy rules files to udev conf dir
45 mv -f $fs/lib/udev/rules.d $fs/etc/udev
46 cp $stuff/udev.conf $fs/etc/udev
47 cp $stuff/*.rules $fs/etc/udev/rules.d
49 # Create some devices and directories that Udev cannot handle
50 # due to them being required very early in the boot process
51 mkdir -p $fs/lib/udev/devices/pts
52 mkdir -p $fs/lib/udev/devices/shm
53 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
55 # Fix permissions
56 chmod +x $fs/lib/udev/*
57 chown -R root.root $fs
59 }
61 list_udev_group()
62 {
63 object=$2
64 [ -n "$object" ] || object=GROUP
65 grep $object $1/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 "$1" GROUP | while read x ; do
73 grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x
74 done
75 list_udev_group "$1" OWNER | while read x ; do
76 grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x
77 done
78 }