# SliTaz package receipt. PACKAGE="haproxy" VERSION="1.9.4" CATEGORY="network" SHORT_DESC="Reliable, High Performance TCP/HTTP Load Balancer." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL LGPL" WEB_SITE="https://haproxy.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/download/${VERSION%.*}/src/$TARBALL" DEPENDS="pcre" BUILD_DEPENDS="pcre-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/dev/d;/LATEST/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\([0-9\\.]*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|/doc|/share&|' Makefile* make TARGET=linux26 USE_PCRE=1 PREFIX=/usr DESTDIR=$DESTDIR && make TARGET=linux26 USE_PCRE=1 PREFIX=/usr DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir $fs/usr cp -a $install/usr/sbin $fs/usr }