wok-6.x annotate v4l-dvb/receipt @ rev 14713
Add python-ethtool
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 11 09:04:58 2013 +0200 (2013-06-11) |
parents | 07f50319a2d6 |
children | 16c0bac038bf |
rev | line source |
---|---|
jozee@4613 | 1 # SliTaz package receipt. |
jozee@4613 | 2 |
jozee@4613 | 3 PACKAGE="v4l-dvb" |
jozee@4613 | 4 VERSION="development" |
jozee@4613 | 5 CATEGORY="multimedia" |
jozee@4613 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4613 | 7 SHORT_DESC="v4l-dvb development repository" |
jozee@4613 | 8 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/" |
pankso@12491 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
jozee@4613 | 10 TAGS="webcam" |
pankso@10713 | 11 WGET_URL="hg|$WEB_SITE" |
pankso@10713 | 12 |
pankso@10713 | 13 DEPENDS="linux" |
pankso@10713 | 14 BUILD_DEPENDS="python mercurial coreutils-operations module-init-tools" |
jozee@4613 | 15 |
jozee@4613 | 16 # Rules to configure and make the package. |
jozee@4613 | 17 compile_rules() { |
pankso@10713 | 18 cd $src |
pankso@10713 | 19 patch -p1 < $stuff/414e0bbd99bf |
pankso@10713 | 20 patch -p1 < $stuff/d64b014c5253 |
pankso@10713 | 21 patch -p1 < $stuff/d0a2ff731670 |
pankso@10713 | 22 sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile |
pankso@10713 | 23 grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|' |
pankso@10713 | 24 grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/' |
pankso@10713 | 25 |
pankso@10713 | 26 sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \ |
pankso@10713 | 27 linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \ |
pankso@10713 | 28 linux/drivers/media/dvb/dvb-core/dvb_frontend.c \ |
pankso@10713 | 29 linux/drivers/media/dvb/dvb-core/dvb_net.c \ |
pankso@10713 | 30 linux/drivers/media/dvb/ttpci/av7110*.c \ |
pankso@10713 | 31 linux/drivers/media/dvb/firewire/firedtv-ci.c \ |
pankso@10713 | 32 linux/drivers/media/video/v4l2-dev.c \ |
pankso@10713 | 33 linux/drivers/media/IR/lirc_dev.c \ |
pankso@10713 | 34 linux/drivers/media/IR/ir-lirc-codec.c |
pankso@10713 | 35 |
pankso@10713 | 36 sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c |
pankso@10713 | 37 sed -i -e 's|/sbin/lsmod|/bin/lsmod|' \ |
pankso@10713 | 38 -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile |
pankso@10713 | 39 |
pankso@10713 | 40 IFS="." ; set -- $kvers ; unset IFS |
pankso@10713 | 41 cat > v4l/.version << EOF |
pascal@4618 | 42 VERSION=$1 |
pascal@4618 | 43 PATCHLEVEL:=$2 |
pascal@4618 | 44 SUBLEVEL:=$3 |
pankso@10713 | 45 KERNELRELEASE:=$kvers-slitaz |
pascal@4618 | 46 EOF |
pankso@10713 | 47 [ -x /usr/bin/cook ] && SRCDIR="$WOK/linux/source/linux-$kvers" |
pankso@10713 | 48 [ -x /usr/bin/tazwok ] && SRCDIR="$WOK/linux/linux-$kvers" |
pankso@10713 | 49 make SRCDIR=$SRCDIR CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n \ |
pankso@10713 | 50 CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n && |
pankso@10713 | 51 make DESTDIR=$DESTDIR install |
jozee@4613 | 52 } |
jozee@4613 | 53 |
jozee@4613 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4613 | 55 genpkg_rules() |
jozee@4613 | 56 { |
pascal@12859 | 57 EXTRAVERSION=_${kvers%.*} |
jozee@4613 | 58 |
pankso@10713 | 59 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/ |
jozee@4613 | 60 |
pankso@10713 | 61 find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" \ |
pankso@10713 | 62 -exec lzma e '{}' '{}'.gz \; 2> /dev/null |
pankso@10713 | 63 find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" -exec rm '{}' \; |
pankso@10713 | 64 cp -a $_pkg/lib/modules/$kvers-slitaz/kernel/drivers \ |
pankso@10713 | 65 $fs/lib/modules/$kvers-slitaz/kernel/ |
jozee@4613 | 66 } |
jozee@4613 | 67 |
jozee@4613 | 68 post_install() |
jozee@4613 | 69 { |
jozee@4613 | 70 echo "Processing post-install commands..." |
jozee@4613 | 71 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4613 | 72 } |
jozee@4613 | 73 |
jozee@4613 | 74 post_remove() |
jozee@4613 | 75 { |
jozee@4613 | 76 echo "Processing post-remove commands..." |
jozee@4613 | 77 depmod -a |
jozee@4613 | 78 } |