wok rev 8932

kqemu is depredicated
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 01 12:32:50 2011 +0100 (2011-03-01)
parents f4b5d278d27b
children 12eb74ac753b
files busybox/receipt kqemu/receipt kqemu/stuff/kqemu-1.4.0pre1-init_MUTEX.patch slitaz-base-files/receipt slitaz-boot-scripts/receipt
line diff
     1.1 --- a/busybox/receipt	Tue Mar 01 04:03:29 2011 +0000
     1.2 +++ b/busybox/receipt	Tue Mar 01 12:32:50 2011 +0100
     1.3 @@ -136,3 +136,9 @@
     1.4  	chmod 4755 $1/bin/busybox
     1.5  	sed -i "s@vcsa2txt.*\$@busybox conspy -d | sed 's/ *\$//;/^\$/d;/^Processi\\\\|^.witchi/,\$!d' > /var/log/boot.log@" $1/etc/init.d/rcS
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +	# We can not remove this package !
    1.11 +	exit 1
    1.12 +}
     2.1 --- a/kqemu/receipt	Tue Mar 01 04:03:29 2011 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,58 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="kqemu"
     2.7 -VERSION="1.4.0pre1"
     2.8 -CATEGORY="misc"
     2.9 -SHORT_DESC="QEMU Accelerator Module."
    2.10 -MAINTAINER="pascal.bellard@slitaz.org"
    2.11 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12 -WEB_SITE="http://www.nongnu.org/qemu/"
    2.13 -WGET_URL="${WEB_SITE}$TARBALL"
    2.14 -DEPENDS="linux"
    2.15 -BUILD_DEPENDS="linux-module-headers"
    2.16 -SUGGESTED="qemu"
    2.17 -TAG="virtualization"
    2.18 -
    2.19 -# Rules to configure and make the package.
    2.20 -compile_rules()
    2.21 -{
    2.22 -	local dir
    2.23 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    2.24 -
    2.25 -	dir=/lib/modules/${KERNEL_VERSION}-slitaz/misc
    2.26 -	cd $src
    2.27 -	patch -Np1 -i ../stuff/$PACKAGE-$VERSION-init_MUTEX.patch
    2.28 -	./configure --prefix=/usr \
    2.29 -		    --kernel-path=/usr/src/linux
    2.30 -	make
    2.31 -	mkdir -p _pkg/$dir _pkg/dev
    2.32 -	cp kqemu.ko _pkg/$dir
    2.33 -	gzip -9 _pkg/$dir/kqemu.ko
    2.34 -}
    2.35 -
    2.36 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.37 -genpkg_rules()
    2.38 -{
    2.39 -	cp -a $_pkg/* $fs
    2.40 -}
    2.41 -
    2.42 -# Post install/remove commands for Tazpkg.
    2.43 -post_install()
    2.44 -{
    2.45 -	if [ -d $1/etc/udev ]; then
    2.46 -		file=/etc/udev/rules.d/60-kqemu.rules
    2.47 -		echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file
    2.48 -		tazpkg reconfigure udev --root=$1
    2.49 -	else
    2.50 -		file=/dev/kqemu
    2.51 -		mknod -m 666 $1$file c 250 0
    2.52 -	fi
    2.53 -	echo "$file" >> $INSTALLED/$PACKAGE/files.list
    2.54 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.55 -}
    2.56 -
    2.57 -post_remove()
    2.58 -{
    2.59 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.60 -}
    2.61 -
     3.1 --- a/kqemu/stuff/kqemu-1.4.0pre1-init_MUTEX.patch	Tue Mar 01 04:03:29 2011 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,16 +0,0 @@
     3.4 -Common subdirectories: kqemu-1.4.0pre1-orig/common and kqemu-1.4.0pre1/common
     3.5 -diff -u kqemu-1.4.0pre1-orig/kqemu-linux.c kqemu-1.4.0pre1/kqemu-linux.c
     3.6 ---- kqemu-1.4.0pre1-orig/kqemu-linux.c	2008-05-30 16:33:34.000000000 -0400
     3.7 -+++ kqemu-1.4.0pre1/kqemu-linux.c	2011-01-05 16:51:45.407394748 -0500
     3.8 -@@ -53,6 +53,10 @@
     3.9 - #define PAGE_KERNEL_EXEC PAGE_KERNEL
    3.10 - #endif
    3.11 - 
    3.12 -+/* init_MUTEX macro was removed in 2.6.37 */
    3.13 -+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 36) && !defined(init_MUTEX)
    3.14 -+#define init_MUTEX(sem)		sema_init(sem, 1)
    3.15 -+#endif
    3.16 - //#define DEBUG
    3.17 - 
    3.18 - #ifdef DEBUG
    3.19 -Common subdirectories: kqemu-1.4.0pre1-orig/tests and kqemu-1.4.0pre1/tests
     4.1 --- a/slitaz-base-files/receipt	Tue Mar 01 04:03:29 2011 +0000
     4.2 +++ b/slitaz-base-files/receipt	Tue Mar 01 12:32:50 2011 +0100
     4.3 @@ -113,3 +113,9 @@
     4.4  		echo '' >> $root/etc/daemons.conf
     4.5  	fi
     4.6  }
     4.7 +
     4.8 +pre_remove()
     4.9 +{
    4.10 +	# We can not remove this package !
    4.11 +	exit 1
    4.12 +}
     5.1 --- a/slitaz-boot-scripts/receipt	Tue Mar 01 04:03:29 2011 +0000
     5.2 +++ b/slitaz-boot-scripts/receipt	Tue Mar 01 12:32:50 2011 +0100
     5.3 @@ -67,3 +67,9 @@
     5.4  	# Remove old desktop file
     5.5  	rm -f /usr/share/applications/boot-log.desktop
     5.6  }
     5.7 +
     5.8 +pre_remove()
     5.9 +{
    5.10 +	# We can not remove this package !
    5.11 +	exit 1
    5.12 +}