wok-6.x annotate inxi/receipt @ rev 24441
firefox-official*: prohibit user update
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 14 07:01:08 2022 +0100 (2022-02-14) |
parents | 5ea0ce1cecc0 |
children | 048ed88bf832 |
rev | line source |
---|---|
al@19103 | 1 # SliTaz package receipt. |
al@19103 | 2 |
al@19103 | 3 PACKAGE="inxi" |
Hans-G?nter@22953 | 4 VERSION="3.0.37" |
al@19103 | 5 CATEGORY="utilities" |
Hans-G?nter@21054 | 6 TAGS="system-information" |
Hans-G?nter@21054 | 7 SHORT_DESC="Full featured CLI system information tool." |
al@19103 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@19103 | 9 LICENSE="GPL3" |
Hans-G?nter@21054 | 10 WEB_SITE="https://smxi.org/docs/inxi.htm" |
Hans-G?nter@21054 | 11 |
al@19103 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22953 | 13 WGET_URL="https://github.com/smxi/$PACKAGE/archive/$VERSION-1.tar.gz" |
al@19103 | 14 |
Hans-G?nter@21054 | 15 DEPENDS="bash coreutils-disk gawk pciutils procps sed" |
al@19103 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24299 | 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
al@19103 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19103 | 24 genpkg_rules() |
al@19103 | 25 { |
Hans-G?nter@21054 | 26 mkdir -p $fs/usr/bin |
Hans-G?nter@21054 | 27 mkdir -p $fs/usr/share/man/man1 |
Hans-G?nter@21054 | 28 |
Hans-G?nter@21054 | 29 install -m0755 $src/inxi $fs/usr/bin |
Hans-G?nter@21054 | 30 install -m0644 $src/inxi.1 $fs/usr/share/man/man1 |
al@19103 | 31 |
al@19103 | 32 # Configure inxi to work with SliTaz |
al@19103 | 33 |
al@19103 | 34 inxi="$fs/usr/bin/inxi" |
Hans-G?nter@22953 | 35 sed -i 's|/var/run/dmesg.boot|/var/log/dmesg.log|' \ |
Hans-G?nter@22953 | 36 $inxi |
al@19103 | 37 # SliTaz packages |
Hans-G?nter@22953 | 38 sed -i 's|df:coreutils|df:coreutils-disk|' \ |
Hans-G?nter@22953 | 39 $inxi |
Hans-G?nter@22953 | 40 sed -i 's|readlink:coreutils|readlink:coreutils-file-special|' \ |
Hans-G?nter@22953 | 41 $inxi |
Hans-G?nter@22953 | 42 sed -i 's|tr:coreutils|tr:coreutils-character|' \ |
Hans-G?nter@22953 | 43 $inxi |
Hans-G?nter@22953 | 44 sed -i 's|uname:uname|uname:coreutils-context-system|' \ |
Hans-G?nter@22953 | 45 $inxi |
Hans-G?nter@22953 | 46 sed -i 's|wc:coreutils|wc:coreutils-file-summarize|' \ |
Hans-G?nter@22953 | 47 $inxi |
Hans-G?nter@22953 | 48 sed -i 's|glxinfo:mesa-utils|glxinfo:mesa-demos|' \ |
Hans-G?nter@22953 | 49 $inxi |
Hans-G?nter@22953 | 50 sed -i 's|xdpyinfo:X11-utils|xdpyinfo:xorg-xdpyinfo|' \ |
Hans-G?nter@22953 | 51 $inxi |
Hans-G?nter@22953 | 52 sed -i 's|xprop:X11-utils|xprop:xorg-xprop|' \ |
Hans-G?nter@22953 | 53 $inxi |
Hans-G?nter@22953 | 54 sed -i 's|xrandr:x11-xserver-utils|xrandr:xorg-xrandr|' \ |
Hans-G?nter@22953 | 55 $inxi |
Hans-G?nter@22953 | 56 sed -i 's|dig:dnsutils|dig:bind-client|' \ |
Hans-G?nter@22953 | 57 $inxi |
Hans-G?nter@22953 | 58 sed -i 's|hddtemp:hddtemp|hddtemp:|' \ |
Hans-G?nter@22953 | 59 $inxi # no package |
Hans-G?nter@22953 | 60 sed -i 's|ip:iproute|ip:iproute2|' \ |
Hans-G?nter@22953 | 61 $inxi |
Hans-G?nter@22953 | 62 sed -i 's|strings:binutils|strings:busybox|' \ |
Hans-G?nter@22953 | 63 $inxi |
Hans-G?nter@22953 | 64 sed -i 's|runlevel:sysvinit|runlevel:|' \ |
Hans-G?nter@22953 | 65 $inxi # no package |
Hans-G?nter@22953 | 66 sed -i 's|print_lines_basic "0" "" "Debian/Ubuntu:.*$|print_lines_basic "0" "" "SliTaz:^$package_deb"|' \ |
Hans-G?nter@22953 | 67 $inxi |
al@19103 | 68 } |