wok annotate 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 |
rev | line source |
---|---|
pascal@20108 | 1 # SliTaz package receipt. |
pascal@20108 | 2 |
pascal@20108 | 3 PACKAGE="vrrpd" |
pascal@20108 | 4 VERSION="1.15" |
pascal@20108 | 5 CATEGORY="network" |
pascal@20108 | 6 SHORT_DESC="High-availability: Virtual Router Redundancy Protocol daemon." |
pascal@20108 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20108 | 8 LICENSE="GPL2" |
pascal@20108 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21506 | 10 WEB_SITE="https://github.com/fredbcode/Vrrpd/" |
pascal@20108 | 11 WGET_URL="https://github.com/fredbcode/Vrrpd/archive/v$VERSION.tar.gz" |
pascal@20108 | 12 CONFIG_FILES="/etc/vrrpd /etc/vrrp.conf" |
pascal@20109 | 13 TAGS="High availability HA" |
pascal@20108 | 14 |
pascal@25601 | 15 # What is the latest version available today? |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 19 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@20108 | 22 # Rules to configure and make the package. |
pascal@20108 | 23 compile_rules() |
pascal@20108 | 24 { |
pascal@20108 | 25 make |
pascal@20108 | 26 } |
pascal@20108 | 27 |
pascal@20108 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20108 | 29 genpkg_rules() |
pascal@20108 | 30 { |
pascal@20108 | 31 mkdir -p $fs/etc/init.d $fs/usr/sbin $install/usr/share |
pascal@20108 | 32 cp -R $src/doc $install/usr/share |
pascal@20108 | 33 cp $src/vrrpd $src/atropos $fs/usr/sbin |
pascal@20108 | 34 cp -R $src/configs/vrrpd $fs/etc/ |
pascal@20108 | 35 ln -s vrrpd/vrrp_on.sh $fs/etc/vrrp.conf |
pascal@20108 | 36 ln -s daemon $fs/etc/init.d/vrrpd |
pascal@20108 | 37 } |