wok annotate linux-netfilter/receipt @ rev 9739

Fix: rapidsvn (issue40) and clean up receipt
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 10 01:45:43 2011 +0200 (2011-05-10)
parents 1d89aa1672da
children d38b56c16efd
rev   line source
pascal@2158 1 # SliTaz package receipt.
pascal@2158 2
pascal@2158 3 PACKAGE="linux-netfilter"
slaxemulator@8085 4 VERSION="2.6.37"
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 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2158 13 genpkg_rules()
pascal@2158 14 {
pascal@2158 15 local path
pascal@2158 16 path=lib/modules/$VERSION-slitaz/kernel
pascal@2158 17 mkdir -p $fs/$path
pascal@2158 18
pascal@2158 19 export src
pascal@2158 20 export _pkg
pascal@2158 21
slaxemulator@9700 22 $wanted_stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \
pascal@2158 23 while read module; do
pascal@2158 24 dir=$path/$(dirname $module)
pascal@2158 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@2158 26 cp -a $_pkg/$path/$module $fs/$dir
pascal@2158 27 done
gokhlayeh@5575 28 rm -r $fs/$path/net/ipv6
slaxemulator@7240 29
slaxemulator@9700 30 for i in $(cat $wanted_stuff/modules-$VERSION.list); do
slaxemulator@7240 31 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
slaxemulator@7240 32 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
slaxemulator@7240 33 fi
slaxemulator@7240 34 done
pascal@2158 35 }
pascal@2158 36
pascal@2158 37 # Post install/remove commands for Tazpkg.
pascal@2158 38 post_install()
pascal@2158 39 {
pascal@2990 40 chroot "$1/" depmod -a $VERSION-slitaz
pascal@2158 41 }
pascal@2158 42
pascal@2158 43 post_remove()
pascal@2158 44 {
slaxemulator@8681 45 chroot "$1/" depmod -a $VERSION-slitaz
pascal@2158 46 }
pascal@2158 47