wok-4.x annotate shfs/receipt @ rev 235

Add: shfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 17 10:53:05 2008 +0100 (2008-02-17)
parents
children 88157e3ce9ac
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 WANTED="linux"
pascal@235 12 DEPENDS="dropbear"
pascal@235 13 BUILD_DEPENDS="perl"
pascal@235 14
pascal@235 15 # Rules to configure and make the package.
pascal@235 16 compile_rules()
pascal@235 17 {
pascal@235 18 local kver
pascal@235 19 kver=$(grep "kernel version" ../linux/linux-*/.config)
pascal@235 20 kver=${kver##* }
pascal@235 21 cd $PACKAGE-$VERSION
pascal@235 22 patch -p0 < ../stuff/$PACKAGE-$VERSION-$kver.u
pascal@235 23 while read subs ; do
pascal@235 24 perl -pi -e "$subs" Makefile
pascal@235 25 done << EOF
pascal@235 26 s,^KERNEL=.*,KERNEL=$kver,
pascal@235 27 s,^KERNEL_SOURCES=.*,KERNEL_SOURCES=$(cd ../../linux/linux-$kver* ; pwd),
pascal@235 28 s,^ROOT=.*,ROOT=$(pwd)/_pkg,
pascal@235 29 EOF
pascal@235 30 make
pascal@235 31 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/ _pkg/usr/bin
pascal@235 32 cp shfs/Linux-2.6/shfs.ko _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/
pascal@235 33 cp shfsmount/shfsmount _pkg/usr/bin
pascal@235 34 }
pascal@235 35
pascal@235 36
pascal@235 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@235 38 genpkg_rules()
pascal@235 39 {
pascal@235 40 cp -a $PACKAGE-$VERSION/_pkg/* $fs
pascal@235 41 strip -s $fs/usr/bin/*
pascal@235 42 }
pascal@235 43
pascal@235 44 # Pre and post install commands for Tazpkg.
pascal@235 45 post_install()
pascal@235 46 {
pascal@235 47 depmod -a
pascal@235 48 }
pascal@235 49