wok-next annotate 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
rev   line source
al@20461 1 # SliTaz package receipt v2.
pascal@3934 2
pascal@3934 3 PACKAGE="dmraid"
slaxemulator@9582 4 VERSION="1.0.0.rc16-3"
pascal@3934 5 CATEGORY="system-tools"
al@20461 6 SHORT_DESC="Device-Mapper Software Raid Tool"
erjo@4689 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
al@20461 9 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
al@20461 10
pascal@3934 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@3934 12 WGET_URL="$WEB_SITE/src/$TARBALL"
slaxemulator@10300 13
slaxemulator@6360 14 BUILD_DEPENDS="libdevmapper libdevmapper-dev"
pascal@3934 15
al@20461 16 compile_rules() {
al@20461 17 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2>/dev/null
pascal@3934 18 cd $src
pascal@3934 19 #sed -i 's/sed --quiet/sed/' configure configure.in
pascal@6113 20 grep -qs 'define u8' lib/device/scsi.c ||
pascal@6113 21 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
slaxemulator@10300 22 ./configure $CONFIGURE_ARGS &&
al@20461 23 make || return 1
al@20461 24
al@20461 25 mkdir -p $install/usr/sbin $install/usr/lib
al@20461 26 cp -a $src/lib/libdmraid.so $install/usr/lib/libdmraid.so.1
al@20461 27 cp -a $src/tools/dmraid $install/usr/sbin
al@20498 28 cp -a $stuff/grub-dmraid $install/usr/sbin
al@20498 29 cp -a $stuff/dmraid-start $install/usr/sbin
pascal@3934 30 }
pascal@3934 31
al@20461 32 genpkg_rules() {
al@20461 33 copy @std
al@20461 34 DEPENDS="libdevmapper linux-md"
pascal@3934 35 }