wok-6.x annotate linux-netfilter/receipt @ rev 3920
linux*: fix list_modules.sh path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 18 21:01:42 2009 +0200 (2009-08-18) |
parents | 7df76f20d2c3 |
children | 7589496c772c |
rev | line source |
---|---|
pascal@2158 | 1 # SliTaz package receipt. |
pascal@2158 | 2 |
pascal@2158 | 3 PACKAGE="linux-netfilter" |
pankso@3864 | 4 VERSION="2.6.30.4" |
pascal@2158 | 5 CATEGORY="base-system" |
pascal@2158 | 6 SHORT_DESC="The Linux kernel netfilter modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2158 | 9 WANTED="linux" |
pascal@2158 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2158 | 11 |
pascal@2158 | 12 |
pascal@2158 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2158 | 14 genpkg_rules() |
pascal@2158 | 15 { |
pascal@2158 | 16 local path |
pascal@2158 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2158 | 18 mkdir -p $fs/$path |
pascal@2158 | 19 |
pascal@2158 | 20 export src |
pascal@2158 | 21 export _pkg |
pascal@2158 | 22 |
pascal@3920 | 23 $src/slitaz/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \ |
pascal@2158 | 24 while read module; do |
pascal@2158 | 25 dir=$path/$(dirname $module) |
pascal@2158 | 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2158 | 27 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2158 | 28 done |
pascal@2158 | 29 } |
pascal@2158 | 30 |
pascal@2158 | 31 # Post install/remove commands for Tazpkg. |
pascal@2158 | 32 post_install() |
pascal@2158 | 33 { |
pascal@2990 | 34 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2158 | 35 } |
pascal@2158 | 36 |
pascal@2158 | 37 post_remove() |
pascal@2158 | 38 { |
pascal@2158 | 39 depmod -a $VERSION-slitaz |
pascal@2158 | 40 } |
pascal@2158 | 41 |