wok annotate eudev/receipt @ rev 24432
updated libnetfilter_conntrack and libnetfilter_conntrack-dev (1.0.7 -> 1.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 12 17:34:21 2022 +0100 (2022-02-12) |
parents | b6e9ec8873bb |
children | d9c1c1316111 |
rev | line source |
---|---|
tcg@17143 | 1 # SliTaz package receipt. |
tcg@17143 | 2 |
tcg@17143 | 3 PACKAGE="eudev" |
Hans-G?nter@22707 | 4 VERSION="3.2.9" |
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@22707 | 12 WGET_URL="https://dev.gentoo.org/~blueness/$PACKAGE/$TARBALL" |
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@22707 | 16 BUILD_DEPENDS="acl-dev dbus-dev gperf kmod-dev pcre-dev pkg-config |
Hans-G?nter@22707 | 17 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@22707 | 32 ./configure \ |
Hans-G?nter@22707 | 33 --sysconfdir=/etc \ |
Hans-G?nter@22707 | 34 --exec-prefix="" \ |
Hans-G?nter@22707 | 35 --with-rootprefix="" \ |
Hans-G?nter@22707 | 36 --disable-manpages \ |
Hans-G?nter@22707 | 37 --disable-introspection \ |
Hans-G?nter@22707 | 38 --enable-rule-generator \ |
tcg@17143 | 39 $CONFIGURE_ARGS && |
tcg@17143 | 40 make && |
tcg@17143 | 41 make DESTDIR=$DESTDIR install |
tcg@17143 | 42 } |
tcg@17143 | 43 |
tcg@17143 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
tcg@17143 | 45 genpkg_rules() |
tcg@17143 | 46 { |
tcg@17143 | 47 mkdir -p $fs/lib/firmware |
tcg@17143 | 48 |
mojo@23807 | 49 cp -a $install/bin $fs |
Hans-G?nter@22707 | 50 cp -a $install/sbin $fs |
Hans-G?nter@22707 | 51 cp -a $install/etc $fs |
Hans-G?nter@22707 | 52 cp -a $install/lib/udev $fs/lib |
tcg@17143 | 53 |
Hans-G?nter@22707 | 54 # Copy rules files to udev configuration directory |
Hans-G?nter@22707 | 55 mv -f $fs/lib/udev/rules.d $fs/etc/udev |
Hans-G?nter@22707 | 56 cp $stuff/udev.conf $fs/etc/udev |
Hans-G?nter@22707 | 57 cp $stuff/*.rules $fs/etc/udev/rules.d |
tcg@17143 | 58 |
tcg@17143 | 59 # Create some devices and directories that Udev cannot handle |
tcg@17143 | 60 # due to them being required very early in the boot process |
tcg@17143 | 61 mkdir -p $fs/lib/udev/devices/pts |
tcg@17143 | 62 mkdir -p $fs/lib/udev/devices/shm |
tcg@17143 | 63 mknod -m 0666 $fs/lib/udev/devices/null c 1 3 |
tcg@17143 | 64 |
tcg@17143 | 65 # Fix permissions |
Hans-G?nter@22707 | 66 chmod +x $fs/lib/udev/* |
Hans-G?nter@22707 | 67 chown -R root.root $fs |
tcg@17143 | 68 } |
tcg@17143 | 69 |
tcg@17143 | 70 list_udev_group() |
tcg@17143 | 71 { |
al@18663 | 72 object=$2 |
al@18663 | 73 [ -n "$object" ] || object=GROUP |
pascal@18730 | 74 grep $object "$1"/etc/udev/rules.d/* | \ |
al@18663 | 75 sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq |
tcg@17143 | 76 } |
tcg@17143 | 77 |
tcg@17143 | 78 post_install() |
tcg@17143 | 79 { |
al@18663 | 80 # Sanity check for udev+ldap boot |
al@18663 | 81 list_udev_group "$1" GROUP | \ |
Hans-G?nter@22707 | 82 while read x |
Hans-G?nter@22707 | 83 do |
al@18663 | 84 grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x |
Hans-G?nter@22707 | 85 done |
al@18663 | 86 |
al@18663 | 87 list_udev_group "$1" OWNER | \ |
Hans-G?nter@22707 | 88 while read x |
Hans-G?nter@22707 | 89 do |
al@18663 | 90 grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x |
Hans-G?nter@22707 | 91 done |
tcg@17143 | 92 } |