Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion srcpkgs/haproxy/files/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ global
user haproxy
group haproxy
stats socket /var/run/haproxy.sock mode 0600 level admin expose-fd listeners thread 1
maxconn 256

defaults
mode http
timeout connect 5s
timeout client 50s
timeout server 50s

frontend proxy
bind *:80
bind [::]:80
default_backend servers

backend servers
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/haproxy/files/haproxy/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
exec 2>&1

exec haproxy -W -f /etc/haproxy/haproxy.cfg
[ -r conf ] && . ./conf
exec haproxy ${OPTS--W} -f /etc/haproxy/haproxy.cfg
6 changes: 3 additions & 3 deletions srcpkgs/haproxy/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'haproxy'
pkgname=haproxy
# XXX: the version should be a LTS release
version=3.4.2
version=3.4.3
revision=1
build_style=gnu-makefile
make_build_args="TARGET=linux-${XBPS_TARGET_LIBC} cmd_LD=\${CC} EXTRA=admin/halog/halog
Expand All @@ -18,14 +18,14 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.haproxy.org"
changelog="https://www.haproxy.org/download/${version%.*}/src/CHANGELOG"
distfiles="https://www.haproxy.org/download/${version%.*}/src/haproxy-${version}.tar.gz"
checksum=b1330dbb0d6e6bc4a72c4708a6a9e585579cd1156dfe5763c26305105bc12907
checksum=7fa666d36d198275999e2a68dda44d3d37960f2f7aed3a595fb811f4fd0515b5

if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi

haproxy_homedir="/var/lib/${pkgname}"
make_dirs="$haproxy_homedir 0750 ${pkgname} ${pkgname}"
make_dirs="$haproxy_homedir 0550 ${pkgname} ${pkgname}"
conf_files="/etc/${pkgname}/${pkgname}.cfg"
system_accounts="haproxy"

Expand Down