wok-next view dmraid/receipt @ rev 20955
Update Perl packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Sep 03 10:09:42 2018 +0300 (2018-09-03) |
parents | 42d9d6d83956 |
children |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/src/$TARBALL"
14 BUILD_DEPENDS="libdevmapper libdevmapper-dev"
16 compile_rules() {
17 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2>/dev/null
18 cd $src
19 #sed -i 's/sed --quiet/sed/' configure configure.in
20 grep -qs 'define u8' lib/device/scsi.c ||
21 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
22 ./configure $CONFIGURE_ARGS &&
23 make || return 1
25 mkdir -p $install/usr/sbin $install/usr/lib
26 cp -a $src/lib/libdmraid.so $install/usr/lib/libdmraid.so.1
27 cp -a $src/tools/dmraid $install/usr/sbin
28 cp -a $stuff/grub-dmraid $install/usr/sbin
29 cp -a $stuff/dmraid-start $install/usr/sbin
30 }
32 genpkg_rules() {
33 copy @std
34 DEPENDS="libdevmapper linux-md"
35 }