wok-6.x annotate dmraid/receipt @ rev 15180
mosh: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 20 11:57:56 2013 +0000 (2013-08-20) |
parents | 3e4223bbb7bd |
children | eb8067417980 |
rev | line source |
---|---|
pascal@3934 | 1 # SliTaz package receipt. |
pascal@3934 | 2 |
pascal@3934 | 3 PACKAGE="dmraid" |
slaxemulator@9582 | 4 VERSION="1.0.0.rc16-3" |
pascal@3934 | 5 CATEGORY="system-tools" |
pascal@3934 | 6 SHORT_DESC="Device-Mapper Software Raid Tool." |
erjo@4689 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@3934 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@3934 | 9 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/" |
pascal@3934 | 10 WGET_URL="$WEB_SITE/src/$TARBALL" |
slaxemulator@10300 | 11 |
pascal@3974 | 12 DEPENDS="libdevmapper linux-md" |
slaxemulator@6360 | 13 BUILD_DEPENDS="libdevmapper libdevmapper-dev" |
pascal@3934 | 14 |
pascal@3934 | 15 # Rules to configure and make the package. |
pascal@3934 | 16 compile_rules() |
pascal@3934 | 17 { |
slaxemulator@9582 | 18 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2> /dev/null |
pascal@3934 | 19 cd $src |
pascal@3934 | 20 #sed -i 's/sed --quiet/sed/' configure configure.in |
pascal@6113 | 21 grep -qs 'define u8' lib/device/scsi.c || |
pascal@6113 | 22 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c |
slaxemulator@10300 | 23 ./configure $CONFIGURE_ARGS && |
pascal@3934 | 24 make |
pascal@3934 | 25 } |
pascal@3934 | 26 |
pascal@3934 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3934 | 28 genpkg_rules() |
pascal@3934 | 29 { |
pascal@14172 | 30 mkdir -p $fs/usr/sbin $fs/usr/lib |
pascal@14172 | 31 cp -a $src/lib/libdmraid.so $fs/usr/lib/libdmraid.so.1 |
pascal@3934 | 32 cp -a $src/tools/dmraid $fs/usr/sbin |
pascal@4025 | 33 cp -a stuff/grub-dmraid $fs/usr/sbin |
pascal@4027 | 34 cp -a stuff/dmraid-start $fs/usr/sbin |
pascal@3934 | 35 } |
pascal@3934 | 36 |