wok-current view drbd-utils/receipt @ rev 24445

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