wok annotate inxi/receipt @ rev 24999

updated nmap (7.80 -> 7.92)
author Hans-G?nter Theisgen
date Mon May 16 13:38:34 2022 +0100 (2022-05-16)
parents 048ed88bf832
children
rev   line source
al@19103 1 # SliTaz package receipt.
al@19103 2
al@19103 3 PACKAGE="inxi"
Hans-G?nter@24669 4 VERSION="3.3.13"
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@24669 15 DEPENDS="bash coreutils-disk gawk pciutils perl 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
Hans-G?nter@21054 28 install -m0755 $src/inxi $fs/usr/bin
al@19103 29
al@19103 30 # Configure inxi to work with SliTaz
al@19103 31
al@19103 32 inxi="$fs/usr/bin/inxi"
Hans-G?nter@22953 33 sed -i 's|/var/run/dmesg.boot|/var/log/dmesg.log|' \
Hans-G?nter@22953 34 $inxi
al@19103 35 # SliTaz packages
Hans-G?nter@24669 36 sed -i -e 's|df:coreutils|df:coreutils-disk|' \
Hans-G?nter@24669 37 -e 's|readlink:coreutils|readlink:coreutils-file-special|' \
Hans-G?nter@24669 38 -e 's|tr:coreutils|tr:coreutils-character|' \
Hans-G?nter@24669 39 -e 's|uname:uname|uname:coreutils-context-system|' \
Hans-G?nter@24669 40 -e 's|wc:coreutils|wc:coreutils-file-summarize|' \
Hans-G?nter@24669 41 -e 's|glxinfo:mesa-utils|glxinfo:mesa-demos|' \
Hans-G?nter@24669 42 -e 's|xdpyinfo:X11-utils|xdpyinfo:xorg-xdpyinfo|' \
Hans-G?nter@24669 43 -e 's|xprop:X11-utils|xprop:xorg-xprop|' \
Hans-G?nter@24669 44 -e 's|xrandr:x11-xserver-utils|xrandr:xorg-xrandr|' \
Hans-G?nter@24669 45 -e 's|dig:dnsutils|dig:bind-client|' \
Hans-G?nter@22953 46 $inxi
Hans-G?nter@22953 47 sed -i 's|hddtemp:hddtemp|hddtemp:|' \
Hans-G?nter@22953 48 $inxi # no package
Hans-G?nter@24669 49 sed -i -e 's|ip:iproute|ip:iproute2|' \
Hans-G?nter@24669 50 -e 's|strings:binutils|strings:busybox|' \
Hans-G?nter@24669 51 -e 's|runlevel:sysvinit|runlevel:|' \
Hans-G?nter@22953 52 $inxi # no package
Hans-G?nter@22953 53 sed -i 's|print_lines_basic "0" "" "Debian/Ubuntu:.*$|print_lines_basic "0" "" "SliTaz:^$package_deb"|' \
Hans-G?nter@22953 54 $inxi
al@19103 55 }