wok-current annotate linux-libre-btrfs/receipt @ rev 12580
nfs-utils: update bdeps
| author | Pascal Bellard <pascal.bellard@slitaz.org> |
|---|---|
| date | Sat Apr 28 21:06:31 2012 +0200 (2012-04-28) |
| parents | abe27fd0192d |
| children | 03a6791abff6 |
| rev | line source |
|---|---|
| gokhlayeh@9257 | 1 # SliTaz package receipt. |
| gokhlayeh@9257 | 2 |
| gokhlayeh@9257 | 3 PACKAGE="linux-libre-btrfs" |
| gokhlayeh@9257 | 4 VERSION="2.6.37-libre" |
| gokhlayeh@9257 | 5 CATEGORY="base-system" |
| gokhlayeh@9257 | 6 SHORT_DESC="The Linux Libre kernel btrfs module." |
| gokhlayeh@9257 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
| gokhlayeh@9257 | 8 PROVIDE="linux-btrfs" |
| gokhlayeh@9257 | 9 DEPENDS="linux-libre" |
| gokhlayeh@9257 | 10 WANTED="linux-libre" |
| gokhlayeh@9257 | 11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
| gokhlayeh@9257 | 12 CONFIG_FILES="/etc/filesystems" |
| gokhlayeh@9257 | 13 |
| gokhlayeh@9257 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
| gokhlayeh@9257 | 15 genpkg_rules() |
| gokhlayeh@9257 | 16 { |
| gokhlayeh@9257 | 17 local path |
| gokhlayeh@9257 | 18 path=lib/modules/$VERSION-slitaz/kernel |
| gokhlayeh@9257 | 19 mkdir -p $fs/$path $fs/etc |
| gokhlayeh@9257 | 20 export src |
| gokhlayeh@9257 | 21 export _pkg |
| slaxemulator@9700 | 22 $wanted_stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do |
| gokhlayeh@9257 | 23 dir=$path/$(dirname $module) |
| gokhlayeh@9257 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
| gokhlayeh@9257 | 25 cp -a $_pkg/$path/$module $fs/$dir |
| gokhlayeh@9257 | 26 done |
| gokhlayeh@9257 | 27 touch $fs/etc/filesystems |
| gokhlayeh@9257 | 28 |
| slaxemulator@9700 | 29 for i in $(cat $wanted_stuff/modules-$VERSION.list); do |
| gokhlayeh@9257 | 30 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then |
| gokhlayeh@9257 | 31 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i |
| gokhlayeh@9257 | 32 fi |
| gokhlayeh@9257 | 33 done |
| gokhlayeh@9257 | 34 } |
| gokhlayeh@9257 | 35 |
| gokhlayeh@9257 | 36 # Post install/remove commands for Tazpkg. |
| gokhlayeh@9257 | 37 post_install() |
| gokhlayeh@9257 | 38 { |
| gokhlayeh@9257 | 39 grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \ |
| gokhlayeh@9257 | 40 echo "${PACKAGE##*-}" >> $1/etc/filesystems |
| gokhlayeh@9257 | 41 chroot "$1/" depmod -a $VERSION-slitaz |
| gokhlayeh@9257 | 42 } |
| gokhlayeh@9257 | 43 |
| gokhlayeh@9257 | 44 post_remove() |
| gokhlayeh@9257 | 45 { |
| gokhlayeh@9257 | 46 sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems |
| gokhlayeh@9257 | 47 chroot "$1/" depmod -a $VERSION-slitaz |
| gokhlayeh@9257 | 48 } |
| gokhlayeh@9257 | 49 |