wok-current view dmraid/receipt @ rev 23728
updated vzquota (3.0.12 -> 3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 01 06:58:50 2020 +0100 (2020-05-01) |
parents | eb8067417980 |
children | 3e9a9990c985 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dmraid"
4 VERSION="1.0.0.rc16-3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Device-Mapper Software Raid Tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
11 WGET_URL="$WEB_SITE/src/$TARBALL"
13 DEPENDS="libdevmapper linux-md"
14 BUILD_DEPENDS="libdevmapper libdevmapper-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2> /dev/null
20 cd $src
21 #sed -i 's/sed --quiet/sed/' configure configure.in
22 grep -qs 'define u8' lib/device/scsi.c ||
23 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
24 ./configure $CONFIGURE_ARGS &&
25 make -j 1
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/sbin $fs/usr/lib
32 cp -a $src/lib/libdmraid.so $fs/usr/lib/libdmraid.so.1
33 cp -a $src/tools/dmraid $fs/usr/sbin
34 cp -a stuff/grub-dmraid $fs/usr/sbin
35 cp -a stuff/dmraid-start $fs/usr/sbin
36 }