wok-undigest view zfs/receipt @ rev 1222

copied xorgproto recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:36:34 2019 +0100 (2019-11-15)
parents 152b8fe57620
children
line source
1 # SliTaz package receipt.
3 PACKAGE="zfs"
4 VERSION="0.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="The native Linux kernel port of the ZFS filesystem."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="CDDL GPL2"
9 WEB_SITE="http://zfsonlinux.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://archive.zfsonlinux.org/downloads/zfsonlinux/$PACKAGE/$TARBALL"
13 DEPENDS="util-linux-uuid zlib"
14 BUILD_DEPENDS="linux-module-headers spl-src util-linux-uuid-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc \
22 --mandir=/usr/share/man \
23 --with-linux=/usr/src/linux \
24 --with-spl=/usr/src/spl-$VERSION \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 EXTRAVERSION="_${kvers}"
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/sbin $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/lib*so* $fs/usr/lib
38 cp -a $install/usr/lib/udev $fs/usr/lib
39 cp -a $install/lib $fs
40 cp -a $install/sbin $fs
41 cp -a $install/etc $fs
42 }
44 # Post install/remove commands for Tazpkg.
45 post_install()
46 {
47 echo "Processing post-install commands..."
48 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
49 }
51 post_remove()
52 {
53 echo "Processing post-remove commands..."
54 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
55 }