void-packages/srcpkgs/haproxy/template

32 lines
1.1 KiB
Bash
Raw Normal View History

2015-01-19 10:41:15 +01:00
# Template file for 'haproxy'
pkgname=haproxy
2015-02-02 09:24:19 +01:00
version=1.5.11
revision=2
2015-01-19 10:41:15 +01:00
build_style=gnu-makefile
make_build_args="TARGET=linux2628 USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1
USE_OPENSSL=1 USE_LIBCRYPT=1 USE_GETADDRINFO=1"
make_install_args="SBINDIR=${DESTDIR}/usr/bin DOCDIR=${DESTDIR}/usr/share/doc/$pkgname"
conf_files="/etc/${pkgname}/${pkgname}.cfg"
system_accounts="${pkgname}"
haproxy_homedir="/var/lib/${pkgname}"
make_dirs="$haproxy_homedir 0750 ${pkgname} ${pkgname}"
makedepends="libressl-devel pcre-devel zlib-devel"
2015-01-19 10:41:15 +01:00
short_desc="Reliable, high performance TCP/HTTP load balancer"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="GPL-2 LGPL-2.1"
homepage="http://www.haproxy.org"
distfiles="${homepage}/download/${version%.*}/src/${pkgname}-${version}.tar.gz"
2015-02-02 09:24:19 +01:00
checksum=8b5aa462988405f09c8a6169294b202d7f524a5450a02dd92e7c216680f793bf
2015-01-19 10:41:15 +01:00
do_build() {
sed -e '/install haproxy-systemd-wrapper/d' -i Makefile
make ${makejobs} CC="$CC" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
${make_build_args}
}
post_install() {
vinstall ${FILESDIR}/${pkgname}.cfg 644 etc/${pkgname}
vsv ${pkgname}
}