wok annotate linux-dialup/receipt @ rev 3732

linux: adddd drivers for dialup devices; linux-dialup (thanks domcox)
author Rohit Joshi <jozee@slitaz.org>
date Wed Jul 22 19:20:52 2009 +0000 (2009-07-22)
parents
children 7df76f20d2c3
rev   line source
jozee@3732 1 # SliTaz package receipt.
jozee@3732 2
jozee@3732 3 PACKAGE="linux-dialup"
jozee@3732 4 VERSION="2.6.29.3"
jozee@3732 5 CATEGORY="base-system"
jozee@3732 6 SHORT_DESC="The Linux kernel dial-up modules."
jozee@3732 7 MAINTAINER="domcox@slitaz.org"
jozee@3732 8 DEPENDS="linux"
jozee@3732 9 WANTED="linux"
jozee@3732 10 WEB_SITE="http://www.kernel.org/"
jozee@3732 11
jozee@3732 12 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3732 13 genpkg_rules()
jozee@3732 14 {
jozee@3732 15 local path
jozee@3732 16 path=lib/modules/$VERSION-slitaz/kernel
jozee@3732 17 mkdir -p $fs/$path
jozee@3732 18 export src
jozee@3732 19 export _pkg
jozee@3732 20 $src/list_modules.sh drivers/serial/serial_cs.ko.gz drivers/char/nozomi.ko.gz \
jozee@3732 21 drivers/usb/serial/option.ko.gz drivers/net/usb/hso.ko.gz | \
jozee@3732 22 while read module; do
jozee@3732 23 dir=$path/$(dirname $module)
jozee@3732 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
jozee@3732 25 cp -a $_pkg/$path/$module $fs/$dir
jozee@3732 26 done
jozee@3732 27 }
jozee@3732 28
jozee@3732 29 # Post install/remove commands for Tazpkg.
jozee@3732 30 post_install()
jozee@3732 31 {
jozee@3732 32 chroot "$1/" depmod -a $VERSION-slitaz
jozee@3732 33 }
jozee@3732 34
jozee@3732 35 post_remove()
jozee@3732 36 {
jozee@3732 37 depmod -a $VERSION-slitaz
jozee@3732 38 }
jozee@3732 39