wok annotate linux-dialup/receipt @ rev 10281

barcode: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 21 17:51:35 2011 +0000 (2011-05-21)
parents 1d89aa1672da
children 6f536abe4f0b
rev   line source
jozee@3732 1 # SliTaz package receipt.
jozee@3732 2
jozee@3732 3 PACKAGE="linux-dialup"
slaxemulator@8085 4 VERSION="2.6.37"
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
slaxemulator@9700 20 $wanted_stuff/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
slaxemulator@7239 27
slaxemulator@9700 28 for i in $(cat $wanted_stuff/modules-$VERSION.list); do
slaxemulator@7239 29 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
slaxemulator@7239 30 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
slaxemulator@7239 31 fi
slaxemulator@7239 32 done
jozee@3732 33 }
jozee@3732 34
jozee@3732 35 # Post install/remove commands for Tazpkg.
jozee@3732 36 post_install()
jozee@3732 37 {
jozee@3732 38 chroot "$1/" depmod -a $VERSION-slitaz
jozee@3732 39 }
jozee@3732 40
jozee@3732 41 post_remove()
jozee@3732 42 {
slaxemulator@8681 43 chroot "$1/" depmod -a $VERSION-slitaz
jozee@3732 44 }
jozee@3732 45