wok-next annotate shfs/receipt @ rev 521
Linux: split to linux, linux-acpi, linux-ieee1394, linux-sound.
Add: linux-reiserfs, linux-wireless
Fix modules post_install
Add: linux-reiserfs, linux-wireless
Fix modules post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 09 08:49:36 2008 +0000 (2008-04-09) |
parents | 3bac1508116b |
children | 998d2b306f24 |
rev | line source |
---|---|
pascal@235 | 1 # SliTaz package receipt. |
pascal@235 | 2 |
pascal@235 | 3 PACKAGE="shfs" |
pascal@235 | 4 VERSION="0.35" |
pascal@235 | 5 CATEGORY="network" |
pascal@235 | 6 SHORT_DESC="(secure) SHell FileSystem Linux kernel module and userland tool." |
pascal@235 | 7 MAINTAINER="pascal.bellard@ads-lu.com" |
pascal@235 | 8 TARBALL="shfs-$VERSION.tar.gz" |
pascal@235 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@235 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@235 | 11 DEPENDS="dropbear" |
pascal@235 | 12 BUILD_DEPENDS="perl" |
pascal@235 | 13 |
pascal@235 | 14 # Rules to configure and make the package. |
pascal@235 | 15 compile_rules() |
pascal@235 | 16 { |
pascal@235 | 17 local kver |
pascal@242 | 18 if [ ! -d ../linux/taz ]; then |
pascal@242 | 19 tazwok cook linux |
pascal@242 | 20 fi |
pascal@235 | 21 kver=$(grep "kernel version" ../linux/linux-*/.config) |
pascal@235 | 22 kver=${kver##* } |
pascal@235 | 23 cd $PACKAGE-$VERSION |
pascal@304 | 24 patch -p0 < ../stuff/$PACKAGE-$VERSION-$kver.u |
pascal@235 | 25 while read subs ; do |
pascal@235 | 26 perl -pi -e "$subs" Makefile |
pascal@235 | 27 done << EOF |
pascal@235 | 28 s,^KERNEL=.*,KERNEL=$kver, |
pascal@235 | 29 s,^KERNEL_SOURCES=.*,KERNEL_SOURCES=$(cd ../../linux/linux-$kver* ; pwd), |
pascal@235 | 30 s,^ROOT=.*,ROOT=$(pwd)/_pkg, |
pascal@235 | 31 EOF |
pascal@235 | 32 make |
pascal@235 | 33 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/ _pkg/usr/bin |
pascal@235 | 34 cp shfs/Linux-2.6/shfs.ko _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/ |
pascal@241 | 35 cp shfsmount/shfsmount shfsmount/shfsumount _pkg/usr/bin |
pascal@235 | 36 } |
pascal@235 | 37 |
pascal@235 | 38 |
pascal@235 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@235 | 40 genpkg_rules() |
pascal@235 | 41 { |
pascal@235 | 42 cp -a $PACKAGE-$VERSION/_pkg/* $fs |
pascal@235 | 43 strip -s $fs/usr/bin/* |
pascal@235 | 44 } |
pascal@235 | 45 |
pascal@242 | 46 # Post install/remove commands for Tazpkg. |
pascal@235 | 47 post_install() |
pascal@235 | 48 { |
pascal@521 | 49 depmod -a -b "$(dirname $1/lib/modules/*/modules.dep)" |
pascal@235 | 50 } |
pascal@235 | 51 |
pascal@242 | 52 post_remove() |
pascal@242 | 53 { |
pascal@242 | 54 depmod -a |
pascal@242 | 55 } |
pascal@242 | 56 |