wok annotate linux-dialup/receipt @ rev 4374
pyneighborhood: fix depends and desktop.file
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Oct 11 13:25:38 2009 +0000 (2009-10-11) |
parents | bea1fdc6a26e |
children | 2ae67cafd57e |
rev | line source |
---|---|
jozee@3732 | 1 # SliTaz package receipt. |
jozee@3732 | 2 |
jozee@3732 | 3 PACKAGE="linux-dialup" |
pankso@4056 | 4 VERSION="2.6.30.6" |
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 |
pascal@3920 | 20 $src/slitaz/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 |