wok-current annotate dmraid/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 3e9a9990c985 |
children |
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@15579 | 8 LICENSE="GPL2" |
pascal@3934 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@24972 | 10 WEB_SITE="https://people.redhat.com/~heinzm/sw/dmraid/" |
pascal@3934 | 11 WGET_URL="$WEB_SITE/src/$TARBALL" |
slaxemulator@10300 | 12 |
pascal@3974 | 13 DEPENDS="libdevmapper linux-md" |
slaxemulator@6360 | 14 BUILD_DEPENDS="libdevmapper libdevmapper-dev" |
pascal@3934 | 15 |
pascal@24076 | 16 current_version() |
pascal@24076 | 17 { |
pascal@24076 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24076 | 19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24076 | 20 } |
pascal@24076 | 21 |
pascal@3934 | 22 # Rules to configure and make the package. |
pascal@3934 | 23 compile_rules() |
pascal@3934 | 24 { |
slaxemulator@9582 | 25 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2> /dev/null |
pascal@3934 | 26 cd $src |
pascal@3934 | 27 #sed -i 's/sed --quiet/sed/' configure configure.in |
pascal@6113 | 28 grep -qs 'define u8' lib/device/scsi.c || |
pascal@6113 | 29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c |
slaxemulator@10300 | 30 ./configure $CONFIGURE_ARGS && |
pascal@22356 | 31 make -j 1 |
pascal@3934 | 32 } |
pascal@3934 | 33 |
pascal@3934 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3934 | 35 genpkg_rules() |
pascal@3934 | 36 { |
pascal@14172 | 37 mkdir -p $fs/usr/sbin $fs/usr/lib |
pascal@14172 | 38 cp -a $src/lib/libdmraid.so $fs/usr/lib/libdmraid.so.1 |
pascal@3934 | 39 cp -a $src/tools/dmraid $fs/usr/sbin |
pascal@4025 | 40 cp -a stuff/grub-dmraid $fs/usr/sbin |
pascal@4027 | 41 cp -a stuff/dmraid-start $fs/usr/sbin |
pascal@3934 | 42 } |
pascal@3934 | 43 |