wok annotate usbip-module/receipt @ rev 2062
ensure to use the right linux version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 22 18:08:21 2009 +0000 (2009-01-22) |
parents | 86896ca215ac |
children | 0fcac9995347 |
rev | line source |
---|---|
pascal@1507 | 1 # SliTaz package receipt. |
pascal@1507 | 2 |
pascal@1507 | 3 PACKAGE="usbip-module" |
pascal@1507 | 4 VERSION="0.1.6" |
pascal@1507 | 5 CATEGORY="base-system" |
pascal@1507 | 6 SHORT_DESC="general USB device sharing system over IP network, kernel modules." |
pascal@1507 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1507 | 8 WEB_SITE="http://usbip.sourceforge.net/" |
pascal@1507 | 9 WANTED="usbip" |
pascal@1507 | 10 |
pascal@1507 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1507 | 12 genpkg_rules() |
pascal@1507 | 13 { |
pascal@2062 | 14 kver=$(grep "kernel version" ../linux/$(ls ../linux/taz)/.config) |
pascal@1507 | 15 kver=${kver##* } |
pascal@1507 | 16 EXTRAVERSION=_$kver |
pascal@1507 | 17 cp -a $_pkg/lib $fs |
pascal@1507 | 18 } |
pascal@1507 | 19 |
pascal@1507 | 20 # Post install/remove commands for Tazpkg. |
pascal@1507 | 21 post_install() |
pascal@1507 | 22 { |
pascal@1507 | 23 depmod -a -b "$1/" |
pascal@1507 | 24 } |
pascal@1507 | 25 |
pascal@1507 | 26 post_remove() |
pascal@1507 | 27 { |
pascal@1507 | 28 depmod -a |
pascal@1507 | 29 } |