wok-next view eudev/receipt @ rev 17143

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