wok-current view dmraid/receipt @ rev 15341

n2nc: use autoconf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 29 11:40:18 2013 +0000 (2013-09-29)
parents 3e4223bbb7bd
children eb8067417980
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
10 WGET_URL="$WEB_SITE/src/$TARBALL"
12 DEPENDS="libdevmapper linux-md"
13 BUILD_DEPENDS="libdevmapper libdevmapper-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2> /dev/null
19 cd $src
20 #sed -i 's/sed --quiet/sed/' configure configure.in
21 grep -qs 'define u8' lib/device/scsi.c ||
22 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
23 ./configure $CONFIGURE_ARGS &&
24 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/sbin $fs/usr/lib
31 cp -a $src/lib/libdmraid.so $fs/usr/lib/libdmraid.so.1
32 cp -a $src/tools/dmraid $fs/usr/sbin
33 cp -a stuff/grub-dmraid $fs/usr/sbin
34 cp -a stuff/dmraid-start $fs/usr/sbin
35 }