wok-backports annotate linux64-minix/receipt @ rev 0
Add linux
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 18 15:14:49 2013 +0000 (2013-12-18) |
parents | |
children |
rev | line source |
---|---|
pascal@0 | 1 # SliTaz package receipt. |
pascal@0 | 2 |
pascal@0 | 3 PACKAGE="linux64-minix" |
pascal@0 | 4 VERSION="3.2.53" |
pascal@0 | 5 BASEVER="${VERSION:0:3}" |
pascal@0 | 6 CATEGORY="base-system" |
pascal@0 | 7 SHORT_DESC="The Linux kernel minix module." |
pascal@0 | 8 MAINTAINER="devel@slitaz.org" |
pascal@0 | 9 LICENSE="GPL2" |
pascal@0 | 10 DEPENDS="linux64" |
pascal@0 | 11 WANTED="linux" |
pascal@0 | 12 PROVIDE="linux-minix" |
pascal@0 | 13 WEB_SITE="http://www.kernel.org/" |
pascal@0 | 14 CONFIG_FILES="/etc/filesystems" |
pascal@0 | 15 |
pascal@0 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@0 | 17 genpkg_rules() |
pascal@0 | 18 { |
pascal@0 | 19 local path |
pascal@0 | 20 _pkg=$install/linux64 |
pascal@0 | 21 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@0 | 22 mkdir -p $fs/$path $fs/etc |
pascal@0 | 23 export src |
pascal@0 | 24 export _pkg |
pascal@0 | 25 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do |
pascal@0 | 26 dir=$path/$(dirname $module) |
pascal@0 | 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@0 | 28 cp -a $_pkg/$path/$module $fs/$dir |
pascal@0 | 29 done |
pascal@0 | 30 touch $fs/etc/filesystems |
pascal@0 | 31 } |
pascal@0 | 32 |
pascal@0 | 33 # Post install/remove commands for Tazpkg. |
pascal@0 | 34 post_install() |
pascal@0 | 35 { |
pascal@0 | 36 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ |
pascal@0 | 37 echo "${PACKAGE#*-}" >> $1/etc/filesystems |
pascal@0 | 38 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@0 | 39 } |
pascal@0 | 40 |
pascal@0 | 41 post_remove() |
pascal@0 | 42 { |
pascal@0 | 43 sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems |
pascal@0 | 44 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@0 | 45 } |
pascal@0 | 46 |