wok view vrrpd/receipt @ rev 25611

Add zx0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 01 18:37:27 2023 +0000 (16 months ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/etc/init.d $fs/usr/sbin $install/usr/share
32 cp -R $src/doc $install/usr/share
33 cp $src/vrrpd $src/atropos $fs/usr/sbin
34 cp -R $src/configs/vrrpd $fs/etc/
35 ln -s vrrpd/vrrp_on.sh $fs/etc/vrrp.conf
36 ln -s daemon $fs/etc/init.d/vrrpd
37 }