wok view spl/receipt @ rev 15876

spl: add EXTRAVERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 03 14:19:24 2014 +0000 (2014-02-03)
parents baeb47f15a92
children 95fca5088310
line source
1 # SliTaz package receipt.
3 PACKAGE="spl"
4 VERSION="0.6.2"
5 EXTRAVERSION="_${kvers}"
6 CATEGORY="system-tools"
7 SHORT_DESC="Solaris Porting LAyer for ZFS."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://zfsonlinux.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://archive.zfsonlinux.org/downloads/zfsonlinux/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS="linux-module-headers"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr \
22 --mandir=/usr/share/man \
23 --with-linux=/usr/src/linux \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/lib $fs
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 echo "Processing post-install commands..."
41 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
42 }
44 post_remove()
45 {
46 echo "Processing post-remove commands..."
47 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
48 }