rev |
line source |
pascal@17467
|
1 # SliTaz package receipt.
|
pascal@17467
|
2
|
pascal@17467
|
3 PACKAGE="drbd-utils"
|
Hans-G?nter@22658
|
4 VERSION="9.11.0"
|
pascal@17467
|
5 CATEGORY="system-tools"
|
pascal@17467
|
6 SHORT_DESC="DRBD is a block device to build high availability clusters."
|
pascal@17467
|
7 MAINTAINER="pascal.bellard@slitaz.org"
|
pascal@17467
|
8 LICENSE="GPL2"
|
Hans-G?nter@22658
|
9 WEB_SITE="https://www.linbit.com/en/drbd-community/"
|
Hans-G?nter@22658
|
10
|
pascal@17467
|
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
|
Hans-G?nter@22658
|
12 WGET_URL="https://www.linbit.com/downloads/drbd/utils/$TARBALL"
|
pascal@17467
|
13
|
Hans-G?nter@22658
|
14 DEPENDS="gcc83-lib-base"
|
Hans-G?nter@22661
|
15 BUILD_DEPENDS="autoconf automake flex gcc83 libxslt udev-dev"
|
pascal@17467
|
16
|
pascal@24439
|
17 # What is the latest version available today?
|
pascal@24439
|
18 current_version()
|
pascal@24439
|
19 {
|
pascal@24439
|
20 wget -O - https://github.com/LINBIT/drbd-utils/tags 2>/dev/null | \
|
pascal@24439
|
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
|
pascal@24439
|
22 }
|
pascal@24439
|
23
|
pascal@17467
|
24 # Rules to configure and make the package.
|
pascal@17467
|
25 compile_rules()
|
pascal@17467
|
26 {
|
Hans-G?nter@22659
|
27 ./autogen.sh &&
|
Hans-G?nter@22658
|
28 ./configure \
|
Hans-G?nter@22658
|
29 CC=gcc-83 \
|
Hans-G?nter@22658
|
30 CXX=g++-83 \
|
Hans-G?nter@22658
|
31 --prefix=/usr \
|
Hans-G?nter@22658
|
32 --sysconfdir=/etc \
|
Hans-G?nter@22658
|
33 --localstatedir=/var \
|
Hans-G?nter@22658
|
34 --with-systemdunitdir=none \
|
Hans-G?nter@22658
|
35 --with-prebuiltman \
|
Hans-G?nter@22662
|
36 $CONFIGURE_ARGS
|
Hans-G?nter@22662
|
37 make &&
|
pascal@17467
|
38 make DESTDIR=$DESTDIR install
|
pascal@17467
|
39 }
|
pascal@17467
|
40
|
pascal@17467
|
41 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@17467
|
42 genpkg_rules()
|
pascal@17467
|
43 {
|
Hans-G?nter@22658
|
44 cp -a $install/* $fs/
|
pascal@17467
|
45 }
|