wok-current view eudev/receipt @ rev 21437

updated micro_proxy (20021030 -> 20140814)
author Hans-G?nter Theisgen
date Sat Apr 27 16:25:25 2019 +0100 (2019-04-27)
parents 124c3a7da04f
children 281ca267525d
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="GPL2"
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 \
16 dbus-dev gperf pkg-config acl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sysconfdir=/etc \
23 --exec-prefix="" \
24 --with-rootprefix="" \
25 --disable-manpages \
26 --disable-introspection \
27 --disable-keymap \
28 --enable-floppy \
29 --enable-rule-generator \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/lib/firmware
40 cp -a $install/sbin $fs
41 cp -a $install/etc $fs
42 cp -a $install/lib/libgudev*so* $fs/lib
43 cp -a $install/lib/udev $fs/lib
45 # Copy rules files to udev conf dir
46 mv -f $fs/lib/udev/rules.d $fs/etc/udev
47 cp $stuff/udev.conf $fs/etc/udev
48 cp $stuff/*.rules $fs/etc/udev/rules.d
50 # Create some devices and directories that Udev cannot handle
51 # due to them being required very early in the boot process
52 mkdir -p $fs/lib/udev/devices/pts
53 mkdir -p $fs/lib/udev/devices/shm
54 mknod -m 0666 $fs/lib/udev/devices/null c 1 3
56 # Fix permissions
57 chmod +x $fs/lib/udev/*
58 chown -R root.root $fs
60 }
62 list_udev_group()
63 {
64 object=$2
65 [ -n "$object" ] || object=GROUP
66 grep $object "$1"/etc/udev/rules.d/* | \
67 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
68 }
70 post_install()
71 {
72 # Sanity check for udev+ldap boot
73 list_udev_group "$1" GROUP | \
74 while read x ; do
75 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
76 done
78 list_udev_group "$1" OWNER | \
79 while read x ; do
80 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
81 done
82 }