wok-6.x view ucarp/receipt @ rev 25028

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 19 17:04:56 2022 +0000 (2022-05-19)
parents 934055de50e2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ucarp"
4 VERSION="1.5.2"
5 CATEGORY="network"
6 SHORT_DESC="Portable implementation of the CARP protocol."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://github.com/jedisct1/UCarp"
11 WGET_URL="https://download.pureftpd.org/pub/$PACKAGE/$TARBALL"
12 TAGS="High availability HA"
14 BUILD_DEPENDS="libpcap-dev"
15 DEPENDS="libpcap"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/\$(SHELL) @install_sh@/@install_sh@/' po/Makefile.in*
28 ./configure --prefix=/usr --mandir=/usr/share/man \
29 --localstatedir=/var \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 }