wok view vrrpd/receipt @ rev 24414

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 11:43:39 2022 +0000 (2022-02-10)
parents 626c3828c08f
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="vrrpd"
4 VERSION="1.15"
5 CATEGORY="network"
6 SHORT_DESC="High-availability: Virtual Router Redundancy Protocol daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/fredbcode/Vrrpd/"
11 WGET_URL="https://github.com/fredbcode/Vrrpd/archive/v$VERSION.tar.gz"
12 CONFIG_FILES="/etc/vrrpd /etc/vrrp.conf"
13 TAGS="High availability HA"
15 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/etc/init.d $fs/usr/sbin $install/usr/share
31 cp -R $src/doc $install/usr/share
32 cp $src/vrrpd $src/atropos $fs/usr/sbin
33 cp -R $src/configs/vrrpd $fs/etc/
34 ln -s vrrpd/vrrp_on.sh $fs/etc/vrrp.conf
35 ln -s daemon $fs/etc/init.d/vrrpd
36 }