wok annotate eudev/receipt @ rev 24600
updated ghostscript and ghostscript-dev again (9.02 -> 9.55.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 02 07:43:51 2022 +0100 (2022-03-02) |
parents | d9c1c1316111 |
children | bc2b9d9bed6f |
rev | line source |
---|---|
tcg@17143 | 1 # SliTaz package receipt. |
tcg@17143 | 2 |
tcg@17143 | 3 PACKAGE="eudev" |
Hans-G?nter@24523 | 4 VERSION="3.2.11" |
tcg@17143 | 5 CATEGORY="base-system" |
Hans-G?nter@22707 | 6 SHORT_DESC="Fork of udev to avoid depending on systemd." |
tcg@17143 | 7 MAINTAINER="tcg.thegamer@gmail.com" |
pascal@17147 | 8 LICENSE="GPL2" |
Hans-G?nter@22707 | 9 WEB_SITE="https://wiki.gentoo.org/wiki/Project:Eudev" |
Hans-G?nter@22707 | 10 |
tcg@17143 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24523 | 12 WGET_URL="https://github.com/eudev-project/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" |
Hans-G?nter@22707 | 13 |
tcg@17143 | 14 PROVIDE="udev" |
pascal@24126 | 15 DEPENDS="acl dbus kmod pciids usbids util-linux-blkid eudev-lib" |
Hans-G?nter@24524 | 16 BUILD_DEPENDS="acl-dev automake dbus-dev gperf kmod-dev libtool libxslt |
Hans-G?nter@24523 | 17 pcre-dev pkg-config util-linux-blkid-dev util-linux-uuid-dev" |
tcg@17143 | 18 |
pascal@24126 | 19 current_version() |
pascal@24126 | 20 { |
pascal@24126 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24126 | 22 sed '/tar.gz</!d;s|.*HREF=eudev-||;s|.tar.gz.*||' | sort -Vr | sed q |
pascal@24126 | 23 } |
pascal@24126 | 24 |
tcg@17143 | 25 # Rules to configure and make the package. |
tcg@17143 | 26 compile_rules() |
tcg@17143 | 27 { |
Hans-G?nter@22707 | 28 # 3.2.9 unrecognised: |
Hans-G?nter@22707 | 29 # --disable-keymap |
Hans-G?nter@22707 | 30 # --enable-floppy |
Hans-G?nter@22707 | 31 |
Hans-G?nter@24523 | 32 ./autogen.sh && |
Hans-G?nter@22707 | 33 ./configure \ |
Hans-G?nter@22707 | 34 --sysconfdir=/etc \ |
Hans-G?nter@22707 | 35 --exec-prefix="" \ |
Hans-G?nter@22707 | 36 --with-rootprefix="" \ |
Hans-G?nter@22707 | 37 --disable-manpages \ |
Hans-G?nter@22707 | 38 --disable-introspection \ |
Hans-G?nter@22707 | 39 --enable-rule-generator \ |
tcg@17143 | 40 $CONFIGURE_ARGS && |
tcg@17143 | 41 make && |
Hans-G?nter@24523 | 42 make install DESTDIR=$DESTDIR |
tcg@17143 | 43 } |
tcg@17143 | 44 |
tcg@17143 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
tcg@17143 | 46 genpkg_rules() |
tcg@17143 | 47 { |
tcg@17143 | 48 mkdir -p $fs/lib/firmware |
tcg@17143 | 49 |
mojo@23807 | 50 cp -a $install/bin $fs |
Hans-G?nter@22707 | 51 cp -a $install/sbin $fs |
Hans-G?nter@22707 | 52 cp -a $install/etc $fs |
Hans-G?nter@22707 | 53 cp -a $install/lib/udev $fs/lib |
tcg@17143 | 54 |
Hans-G?nter@22707 | 55 # Copy rules files to udev configuration directory |
Hans-G?nter@22707 | 56 mv -f $fs/lib/udev/rules.d $fs/etc/udev |
Hans-G?nter@22707 | 57 cp $stuff/udev.conf $fs/etc/udev |
Hans-G?nter@22707 | 58 cp $stuff/*.rules $fs/etc/udev/rules.d |
tcg@17143 | 59 |
tcg@17143 | 60 # Create some devices and directories that Udev cannot handle |
tcg@17143 | 61 # due to them being required very early in the boot process |
tcg@17143 | 62 mkdir -p $fs/lib/udev/devices/pts |
tcg@17143 | 63 mkdir -p $fs/lib/udev/devices/shm |
tcg@17143 | 64 mknod -m 0666 $fs/lib/udev/devices/null c 1 3 |
tcg@17143 | 65 |
tcg@17143 | 66 # Fix permissions |
Hans-G?nter@22707 | 67 chmod +x $fs/lib/udev/* |
Hans-G?nter@22707 | 68 chown -R root.root $fs |
tcg@17143 | 69 } |
tcg@17143 | 70 |
tcg@17143 | 71 list_udev_group() |
tcg@17143 | 72 { |
al@18663 | 73 object=$2 |
al@18663 | 74 [ -n "$object" ] || object=GROUP |
pascal@18730 | 75 grep $object "$1"/etc/udev/rules.d/* | \ |
al@18663 | 76 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq |
tcg@17143 | 77 } |
tcg@17143 | 78 |
tcg@17143 | 79 post_install() |
tcg@17143 | 80 { |
al@18663 | 81 # Sanity check for udev+ldap boot |
al@18663 | 82 list_udev_group "$1" GROUP | \ |
Hans-G?nter@22707 | 83 while read x |
Hans-G?nter@22707 | 84 do |
al@18663 | 85 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x |
Hans-G?nter@22707 | 86 done |
al@18663 | 87 |
al@18663 | 88 list_udev_group "$1" OWNER | \ |
Hans-G?nter@22707 | 89 while read x |
Hans-G?nter@22707 | 90 do |
al@18663 | 91 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x |
Hans-G?nter@22707 | 92 done |
tcg@17143 | 93 } |