wok-undigest rev 550

Add hardware-ibm-6272 & hardware-thinkpad-600e
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 09 10:30:27 2011 +0100 (2011-11-09)
parents c4b222e32324
children ba13e339cecb
files hardware-ibm-6272/receipt hardware-thinkpad-600e/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hardware-ibm-6272/receipt	Wed Nov 09 10:30:27 2011 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="hardware-ibm-6272"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="base-system"
     1.9 +MAINTAINER="devel@slitaz.org"
    1.10 +SHORT_DESC="IBM 6272 (P133 ISA/PCI/USB/ETH desktop) hardware support"
    1.11 +WEB_SITE="http://www.slitaz.org/"
    1.12 +
    1.13 +DEPENDS="isapnptools"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/etc/init.d
    1.19 +	cat > $fs/etc/init.d/pnp.sh <<EOT
    1.20 +#!/bin/sh
    1.21 +
    1.22 +echo -n "Switching on isa pnp ethernet card "
    1.23 +# io 0x360..0x250 by 0x10, irq 15 12 11 10 9 7 6 5 4 3
    1.24 +for io in \$(seq 360 -10 250); do for irq in 15 12 11 10; do
    1.25 +pnpdump | busybox awk "BEGIN {s=0} \\
    1.26 +/CONFIGURE CSC6040/ {s=1} { \\
    1.27 +  if (s==0) print; \\
    1.28 +  else if (/INT 0/) print \\"(INT 0 (IRQ \$irq (MODE +E)))\\"; \\
    1.29 +  else if (/IO 0/) print \\"(IO 0 (SIZE 16) (BASE 0x0\$io) (CHECK))\\"; \\
    1.30 +  else if (/ACT Y/) { s=0; print \\"(ACT Y)\\"} \\
    1.31 +  else print \\
    1.32 +}" > /etc/isapnp.conf
    1.33 +if isapnp /etc/isapnp.conf > /dev/null 2>&1 ; then
    1.34 +  modprobe cs89x0 io=0x\$io irq=\$irq > /dev/null 2>&1
    1.35 +  break 2
    1.36 +fi
    1.37 +done ; done
    1.38 +echo -e "\\\\033[70G[ \\\\033[1;33mOK\\\\033[0;39m ]"
    1.39 +EOT
    1.40 +	chmod +x $fs/etc/init.d/pnp.sh
    1.41 +}
    1.42 +
    1.43 +# Pre and post install commands for Tazpkg.
    1.44 +post_install()
    1.45 +{
    1.46 +	grep pnp.sh $1/etc/rcS.conf ||
    1.47 +	sed -i 's/RUN_SCRIPTS="/&pnp.sh /' $1/etc/rcS.conf
    1.48 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/hardware-thinkpad-600e/receipt	Wed Nov 09 10:30:27 2011 +0100
     2.3 @@ -0,0 +1,37 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="hardware-thinkpad-600e"
     2.7 +VERSION="1.0"
     2.8 +CATEGORY="base-system"
     2.9 +MAINTAINER="devel@slitaz.org"
    2.10 +SHORT_DESC="ThinkPad 600e (PII pcmcia laptop) hardware support"
    2.11 +WEB_SITE="http://www.slitaz.org/"
    2.12 +
    2.13 +DEPENDS="linux-acpi linux-mwave tp_smapi linux-sound xorg-xf86-video-neomagic"
    2.14 +
    2.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.16 +genpkg_rules()
    2.17 +{
    2.18 +	mkdir -p $fs/etc
    2.19 +}
    2.20 +
    2.21 +# Pre and post install commands for Tazpkg.
    2.22 +post_install()
    2.23 +{
    2.24 +	for i in thinkpad_acpi snd_cs46xx yenta_socket ; do
    2.25 +		grep -q $i $1/etc/rcS.conf ||
    2.26 +		sed -i "s/LOAD_MODULES=\"/&$i /" $i $1/etc/rcS.conf
    2.27 +		[ -n "$1" ] || modprobe $i
    2.28 +	done
    2.29 +	# FIXME update /etc/modprobe.d/ ?
    2.30 +	# modprobe snd-cs4236 index=0 port=0x530 cport=0x538 irq=5 dma1=1 dma2=0 isapnp=0
    2.31 +	# modprobe snd-cs4232 port=0x530 cport=0x120 irq=5 dma1=1 dma2=0 isapnp=0
    2.32 +	
    2.33 +	# Video: remove 24bits (use 1024x768x16), neomagic driver
    2.34 +	sed -i 's/vesa/neomagic/;/Display/{NNN/24$/d}' $1/etc/X11/xorg.conf
    2.35 +	sed -i '/Display/{NNNN/24$/d}' $1/etc/X11/xorg.conf.d/70-Screen.conf
    2.36 +	sed -i 's/vesa/neomagic/'  $1/etc/X11/xorg.conf.d/60-Device.conf
    2.37 +	cat <<EOT
    2.38 +Please turn off quickboot in the bios to activate sound card...
    2.39 +EOT
    2.40 +}