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