wok-6.x annotate linux-input-touchscreen/receipt @ rev 10855
linux: Add ts_* modules. linux-input-touchscreen had ts_* modules in it. Only adds 4kb to linux packages.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jun 14 11:41:17 2011 +0000 (2011-06-14) |
parents | d1768332cee0 |
children | 6f536abe4f0b |
rev | line source |
---|---|
jozee@3510 | 1 # SliTaz package receipt. |
jozee@3510 | 2 |
jozee@3510 | 3 PACKAGE="linux-input-touchscreen" |
slaxemulator@8085 | 4 VERSION="2.6.37" |
jozee@3510 | 5 CATEGORY="base-system" |
jozee@3510 | 6 SHORT_DESC="The Linux kernel touchscreen input drivers." |
jozee@3510 | 7 MAINTAINER="jozee@slitaz.org" |
jozee@3510 | 8 WANTED="linux" |
jozee@3510 | 9 WEB_SITE="http://www.kernel.org/" |
jozee@3510 | 10 |
jozee@3510 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@3510 | 12 genpkg_rules() |
jozee@3510 | 13 { |
jozee@3510 | 14 local path |
jozee@3510 | 15 path=lib/modules/$VERSION-slitaz/kernel |
jozee@3510 | 16 mkdir -p $fs/$path |
jozee@3510 | 17 export src |
jozee@3510 | 18 export _pkg |
slaxemulator@10855 | 19 $wanted_stuff/list_modules.sh drivers/input/touchscreen | \ |
slaxemulator@10855 | 20 while read module; do |
jozee@3510 | 21 dir=$path/$(dirname $module) |
jozee@3510 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
jozee@3510 | 23 cp -a $_pkg/$path/$module $fs/$dir |
jozee@3510 | 24 done |
jozee@3510 | 25 |
slaxemulator@9700 | 26 for i in $(cat $wanted_stuff/modules-$VERSION.list); do |
slaxemulator@7239 | 27 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then |
slaxemulator@7239 | 28 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i |
slaxemulator@7239 | 29 fi |
slaxemulator@7239 | 30 done |
jozee@3510 | 31 } |
jozee@3510 | 32 |
jozee@3510 | 33 # Post install/remove commands for Tazpkg. |
jozee@3510 | 34 post_install() |
jozee@3510 | 35 { |
jozee@3510 | 36 chroot "$1/" depmod -a $VERSION-slitaz |
jozee@3510 | 37 } |
jozee@3510 | 38 |
jozee@3510 | 39 post_remove() |
jozee@3510 | 40 { |
slaxemulator@8681 | 41 chroot "$1/" depmod -a $VERSION-slitaz |
jozee@3510 | 42 } |
jozee@3510 | 43 |