wok view shfs/receipt @ rev 715

Up: slitaz-configs (2.0) - Include now Openbox default files and slim theme
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 02 20:41:41 2008 +0200 (2008-05-02)
parents cd99ec381938
children
line source
1 # SliTaz package receipt.
3 PACKAGE="shfs"
4 VERSION="0.35"
5 CATEGORY="network"
6 SHORT_DESC="(secure) SHell FileSystem Linux kernel module and userland tool."
7 MAINTAINER="pascal.bellard@ads-lu.com"
8 TARBALL="shfs-$VERSION.tar.gz"
9 WEB_SITE="http://$PACKAGE.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 DEPENDS="dropbear"
12 BUILD_DEPENDS="perl"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 local kver
18 if [ ! -d ../linux/taz ]; then
19 tazwok cook linux
20 fi
21 kver=$(grep "kernel version" ../linux/linux-*/.config)
22 kver=${kver##* }
23 cd $PACKAGE-$VERSION
24 patch -p0 < ../stuff/$PACKAGE-$VERSION-$kver.u
25 while read subs ; do
26 perl -pi -e "$subs" Makefile
27 done << EOF
28 s,^KERNEL=.*,KERNEL=$kver,
29 s,^KERNEL_SOURCES=.*,KERNEL_SOURCES=$(cd ../../linux/linux-$kver* ; pwd),
30 s,^ROOT=.*,ROOT=$(pwd)/_pkg,
31 EOF
32 make
33 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/ _pkg/usr/bin
34 cp shfs/Linux-2.6/shfs.ko _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/
35 cp shfsmount/shfsmount shfsmount/shfsumount _pkg/usr/bin
36 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $PACKAGE-$VERSION/_pkg/* $fs
43 strip -s $fs/usr/bin/*
44 }
46 # Post install/remove commands for Tazpkg.
47 post_install()
48 {
49 depmod -a -b /$1
50 }
52 post_remove()
53 {
54 depmod -a
55 }