wok annotate inxi/receipt @ rev 20169

Add linux-dev
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 16 11:15:42 2018 +0100 (2018-01-16)
parents
children 87acb38c52b3
rev   line source
al@19103 1 # SliTaz package receipt.
al@19103 2
al@19103 3 PACKAGE="inxi"
al@19103 4 VERSION="2.3.0"
al@19103 5 COMMIT="ebf6ff7"
al@19103 6 CATEGORY="utilities"
al@19103 7 SHORT_DESC="Full featured CLI system information tool"
al@19103 8 MAINTAINER="al.bobylev@gmail.com"
al@19103 9 LICENSE="GPL3"
al@19103 10 WEB_SITE="http://smxi.org/docs/inxi.htm"
al@19103 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19103 12 WGET_URL="https://github.com/smxi/inxi/archive/$COMMIT.tar.gz"
al@19103 13
al@19103 14 DEPENDS="bash gawk sed coreutils-disk pciutils procps"
al@19103 15
al@19103 16 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19103 17 genpkg_rules()
al@19103 18 {
al@19103 19 mkdir -p $fs/usr/bin $fs/usr/share/man/man1
al@19103 20 install -m0755 $src/inxi $fs/usr/bin
al@19103 21 install -m0644 $src/inxi.1.gz $fs/usr/share/man/man1
al@19103 22
al@19103 23 # Configure inxi to work with SliTaz
al@19103 24
al@19103 25 inxi="$fs/usr/bin/inxi"
al@19103 26 sed -i 's|/var/run/dmesg.boot|/var/log/dmesg.log|' $inxi
al@19103 27 # SliTaz packages
al@19103 28 sed -i 's|df:coreutils|df:coreutils-disk|' $inxi
al@19103 29 sed -i 's|readlink:coreutils|readlink:coreutils-file-special|' $inxi
al@19103 30 sed -i 's|tr:coreutils|tr:coreutils-character|' $inxi
al@19103 31 sed -i 's|uname:uname|uname:coreutils-context-system|' $inxi
al@19103 32 sed -i 's|wc:coreutils|wc:coreutils-file-summarize|' $inxi
al@19103 33 sed -i 's|glxinfo:mesa-utils|glxinfo:mesa-demos|' $inxi
al@19103 34 sed -i 's|xdpyinfo:X11-utils|xdpyinfo:xorg-xdpyinfo|' $inxi
al@19103 35 sed -i 's|xprop:X11-utils|xprop:xorg-xprop|' $inxi
al@19103 36 sed -i 's|xrandr:x11-xserver-utils|xrandr:xorg-xrandr|' $inxi
al@19103 37 sed -i 's|dig:dnsutils|dig:bind-client|' $inxi
al@19103 38 sed -i 's|hddtemp:hddtemp|hddtemp:|' $inxi # no package
al@19103 39 sed -i 's|ip:iproute|ip:iproute2|' $inxi
al@19103 40 sed -i 's|strings:binutils|strings:busybox|' $inxi
al@19103 41 sed -i 's|runlevel:sysvinit|runlevel:|' $inxi # no package
al@19103 42 sed -i 's|print_lines_basic "0" "" "Debian/Ubuntu:.*$|print_lines_basic "0" "" "SliTaz:^$package_deb"|' $inxi
al@19103 43 }