SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "balance"

# SliTaz package receipt.

PACKAGE="balance"
VERSION="3.57"
CATEGORY="network"
TAGS="web internet load-balancing proxy tcp ipv6"
SHORT_DESC="Generic tcp proxy with round robin load balancing and failover."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.inlab.net/balance/"

TARBALL="$PACKAGE-$VERSION.tar"
WGET_URL="https://download.inlab.net/Balance/$VERSION/$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - https://download.inlab.net/Balance/ 2>/dev/null | \
    sed '/href="[0-9]/!d;s|.*href="||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $install/usr/sbin $install/usr/share/man/man1 2>/dev/null
    sed -i 's|/man/|/share/man/|' $src/Makefile

    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/sbin $fs/usr
}

post_install()
{
    mkdir -p "$1/var/run/balance"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)