wok annotate linux-netfilter/receipt @ rev 15090
pinentry: add bdeps...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 13 21:20:52 2013 +0000 (2013-08-13) |
parents | ad59999b3fce |
children | 051931e905b0 |
rev | line source |
---|---|
pascal@2158 | 1 # SliTaz package receipt. |
pascal@2158 | 2 |
pascal@2158 | 3 PACKAGE="linux-netfilter" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@2158 | 6 CATEGORY="base-system" |
pascal@2158 | 7 SHORT_DESC="The Linux kernel netfilter modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
pascal@2926 | 10 DEPENDS="linux" |
pascal@2158 | 11 WANTED="linux" |
pascal@2158 | 12 WEB_SITE="http://www.kernel.org/" |
pascal@2158 | 13 |
pascal@2158 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2158 | 15 genpkg_rules() |
pascal@2158 | 16 { |
pascal@2158 | 17 local path |
pankso@12285 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@2158 | 19 mkdir -p $fs/$path |
pascal@2158 | 20 |
pascal@2158 | 21 export src |
pascal@2158 | 22 export _pkg |
pascal@2158 | 23 |
slaxemulator@10855 | 24 $wanted_stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \ |
pascal@2158 | 25 while read module; do |
pascal@2158 | 26 dir=$path/$(dirname $module) |
pascal@2158 | 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2158 | 28 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2158 | 29 done |
pascal@14658 | 30 rm -rf $fs/$path/net/ipv6 2> /dev/null |
slaxemulator@7240 | 31 |
pankso@12285 | 32 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 33 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 34 rm -f $fs/$path/$i |
slaxemulator@7240 | 35 fi |
slaxemulator@7240 | 36 done |
pascal@2158 | 37 } |
pascal@2158 | 38 |
pascal@2158 | 39 # Post install/remove commands for Tazpkg. |
pascal@2158 | 40 post_install() |
pascal@2158 | 41 { |
pankso@12285 | 42 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@2158 | 43 } |
pascal@2158 | 44 |
pascal@2158 | 45 post_remove() |
pascal@2158 | 46 { |
pankso@12285 | 47 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@2158 | 48 } |
pascal@2158 | 49 |