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