wok-current view dmraid/receipt @ rev 24660

updated igmpproxy (0.2.1 -> 0.3)
author Hans-G?nter Theisgen
date Fri Mar 11 10:09:19 2022 +0100 (2022-03-11)
parents a54924df72eb
children bd7510903310
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 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2> /dev/null
26 cd $src
27 #sed -i 's/sed --quiet/sed/' configure configure.in
28 grep -qs 'define u8' lib/device/scsi.c ||
29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
30 ./configure $CONFIGURE_ARGS &&
31 make -j 1
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/sbin $fs/usr/lib
38 cp -a $src/lib/libdmraid.so $fs/usr/lib/libdmraid.so.1
39 cp -a $src/tools/dmraid $fs/usr/sbin
40 cp -a stuff/grub-dmraid $fs/usr/sbin
41 cp -a stuff/dmraid-start $fs/usr/sbin
42 }