wok-next diff hardware-ibm-6272/receipt @ rev 21684

updated glew (2.1.0 -> 2.2.0)
author Hans-G?nter Theisgen
date Mon Jun 29 15:40:33 2020 +0100 (2020-06-29)
parents 9e01bc6321ea
children
line diff
     1.1 --- a/hardware-ibm-6272/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/hardware-ibm-6272/receipt	Mon Jun 29 15:40:33 2020 +0100
     1.3 @@ -8,46 +8,16 @@
     1.4  SHORT_DESC="IBM 300GL 6272/6282 (P75-233 ISA/PCI/USB/ETH desktop) hardware support"
     1.5  WEB_SITE="http://www.slitaz.org/"
     1.6  
     1.7 -DEPENDS="isapnptools"
     1.8 -
     1.9 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.10 -genpkg_rules()
    1.11 -{
    1.12 -	mkdir -p $fs/etc/init.d
    1.13 -	cat > $fs/etc/init.d/pnp.sh <<EOT
    1.14 -#!/bin/sh
    1.15 -
    1.16 -. /etc/init.d/rc.functions
    1.17 -
    1.18 -echo -n "Switching on isa pnp ethernet card "
    1.19 -# io 0x360..0x250 by 0x10, irq 15 12 11 10 9 7 6 5 4 3
    1.20 -for io in \$(seq 360 -10 250); do for irq in 15 12 11 10; do
    1.21 -pnpdump | busybox awk "BEGIN {s=0} \\
    1.22 -/CONFIGURE CSC6040/ {s=1} { \\
    1.23 -  if (s==0) print; \\
    1.24 -  else if (/INT 0/) print \\"(INT 0 (IRQ \$irq (MODE +E)))\\"; \\
    1.25 -  else if (/IO 0/) print \\"(IO 0 (SIZE 16) (BASE 0x0\$io) (CHECK))\\"; \\
    1.26 -  else if (/ACT Y/) { s=0; print \\"(ACT Y)\\"} \\
    1.27 -  else print \\
    1.28 -}" > /etc/isapnp.conf
    1.29 -if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then
    1.30 -  modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1
    1.31 -  break 2
    1.32 -fi
    1.33 -done ; done
    1.34 -status
    1.35 -EOT
    1.36 -	chmod +x $fs/etc/init.d/pnp.sh
    1.37 +genpkg_rules() {
    1.38 +	install -Dm755 $stuff/pnp.sh $fs/etc/init.d/pnp.sh
    1.39 +	DEPENDS="isapnptools"
    1.40  }
    1.41  
    1.42 -# Pre and post install commands for Tazpkg.
    1.43 -pre_remove()
    1.44 -{
    1.45 +pre_remove() {
    1.46  	sed -i 's/pnp.sh //' "$1/etc/rcS.conf"
    1.47  }
    1.48  
    1.49 -post_install()
    1.50 -{
    1.51 +post_install() {
    1.52  	grep pnp.sh "$1/etc/rcS.conf" ||
    1.53  	sed -i 's/RUN_SCRIPTS="/&pnp.sh /' "$1/etc/rcS.conf"
    1.54  }