wok view shfs/receipt @ rev 240

Shfs & squashfs : no WANTED with WGET_URL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 18 00:24:44 2008 +0100 (2008-02-18)
parents 1c80150248e4
children 03c66d91b55f
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 kver=$(grep "kernel version" ../linux/linux-*/.config)
19 kver=${kver##* }
20 cd $PACKAGE-$VERSION
21 patch -p0 < ../stuff/$PACKAGE-$VERSION-$kver.u
22 while read subs ; do
23 perl -pi -e "$subs" Makefile
24 done << EOF
25 s,^KERNEL=.*,KERNEL=$kver,
26 s,^KERNEL_SOURCES=.*,KERNEL_SOURCES=$(cd ../../linux/linux-$kver* ; pwd),
27 s,^ROOT=.*,ROOT=$(pwd)/_pkg,
28 EOF
29 make
30 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/ _pkg/usr/bin
31 cp shfs/Linux-2.6/shfs.ko _pkg/lib/modules/$kver-slitaz/kernel/fs/shfs/
32 cp shfsmount/shfsmount _pkg/usr/bin
33 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $PACKAGE-$VERSION/_pkg/* $fs
40 strip -s $fs/usr/bin/*
41 }
43 # Pre and post install commands for Tazpkg.
44 post_install()
45 {
46 depmod -a
47 }