SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
53
net/haproxy/Makefile
Normal file
53
net/haproxy/Makefile
Normal file
|
@ -0,0 +1,53 @@
|
|||
COMMENT = reliable, high performance TCP/HTTP load balancer
|
||||
|
||||
DISTNAME = haproxy-2.8.1
|
||||
CATEGORIES = net www
|
||||
HOMEPAGE = https://www.haproxy.org/
|
||||
MAINTAINER = Daniel Jakots <obsd@chown.me>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += c crypto pcre2-8 pcre2-posix pthread ssl z
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}/download/2.8/src/
|
||||
|
||||
HAPROXYCONF = ${SYSCONFDIR}/haproxy
|
||||
HAPROXYSTATE = /var/haproxy
|
||||
HAPROXYUID = 604
|
||||
HAPROXYGID = 604
|
||||
SUBST_VARS = HAPROXYCONF HAPROXYSTATE \
|
||||
HAPROXYUID HAPROXYGID
|
||||
|
||||
USE_GMAKE = Yes
|
||||
MAKE_FLAGS += CPU_CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
MAKE_FLAGS += CC="${CC}" LD="${CC}" TARGET="openbsd"
|
||||
MAKE_FLAGS += USE_OPENSSL=1 USE_PCRE2=1 USE_ZLIB=1 V=1
|
||||
MAKE_FLAGS += USE_LIBATOMIC=
|
||||
|
||||
FAKE_FLAGS += DOCDIR="${PREFIX}/share/doc/haproxy"
|
||||
FAKE_FLAGS += MANDIR="${PREFIX}/man"
|
||||
|
||||
COMPILER = base-clang ports-gcc
|
||||
|
||||
LIB_DEPENDS = devel/pcre2
|
||||
|
||||
# Fix undefined reference to __atomic_*
|
||||
.if ${MACHINE_ARCH} == "hppa"
|
||||
LDFLAGS += "-latomic"
|
||||
WANTLIB += atomic
|
||||
.endif
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
pre-build:
|
||||
${SUBST_CMD} ${WRKSRC}/doc/haproxy.1
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/haproxy
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/*.cfg \
|
||||
${PREFIX}/share/examples/haproxy
|
||||
${INSTALL_DATA} ${FILESDIR}/haproxy.cfg \
|
||||
${PREFIX}/share/examples/haproxy
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/haproxy/distinfo
Normal file
2
net/haproxy/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (haproxy-2.8.1.tar.gz) = SFVS/NnV1fQarQRvEx/Ap+hJvvJaNJoEB1CvDG/FaAc=
|
||||
SIZE (haproxy-2.8.1.tar.gz) = 4329591
|
25
net/haproxy/files/haproxy.cfg
Normal file
25
net/haproxy/files/haproxy.cfg
Normal file
|
@ -0,0 +1,25 @@
|
|||
global
|
||||
log 127.0.0.1 local0 debug
|
||||
maxconn 1024
|
||||
chroot /var/haproxy
|
||||
uid 604
|
||||
gid 604
|
||||
daemon
|
||||
pidfile /var/run/haproxy.pid
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
option httplog
|
||||
option dontlognull
|
||||
option redispatch
|
||||
retries 3
|
||||
maxconn 2000
|
||||
|
||||
frontend haproxy
|
||||
bind *:80
|
||||
default_backend httpd
|
||||
|
||||
backend httpd
|
||||
option forwardfor
|
||||
server www 127.0.0.1:8080 check
|
13
net/haproxy/patches/patch-doc_haproxy_1
Normal file
13
net/haproxy/patches/patch-doc_haproxy_1
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: doc/haproxy.1
|
||||
--- doc/haproxy.1.orig
|
||||
+++ doc/haproxy.1
|
||||
@@ -218,8 +218,7 @@ This signal is intercepted and ignored on systems with
|
||||
|
||||
.SH SEE ALSO
|
||||
|
||||
-A much better documentation can be found in configuration.txt. On Debian
|
||||
-systems, you can find this file in /usr/share/doc/haproxy/configuration.txt.gz.
|
||||
+More complete documentation can be found in ${TRUEPREFIX}/share/doc/haproxy/configuration.txt.
|
||||
|
||||
.SH AUTHOR
|
||||
|
6
net/haproxy/pkg/DESCR
Normal file
6
net/haproxy/pkg/DESCR
Normal file
|
@ -0,0 +1,6 @@
|
|||
HAProxy is a high-performance and highly-robust TCP/HTTP load balancer which
|
||||
provides cookie-based persistence, automatic failover, header insertion,
|
||||
deletion, modification on the fly, advanced logging contents to help trouble-
|
||||
shoot buggy applications and/or networks, and a few other features. It uses
|
||||
its own state machine to achieve up to ten thousands hits per second on modern
|
||||
hardware, even with thousands of simultaneous connections.
|
37
net/haproxy/pkg/PLIST
Normal file
37
net/haproxy/pkg/PLIST
Normal file
|
@ -0,0 +1,37 @@
|
|||
@newgroup _haproxy:${HAPROXYGID}
|
||||
@newuser _haproxy:${HAPROXYUID}:_haproxy::HAProxy Daemon:/var/haproxy:/sbin/nologin
|
||||
@rcscript ${RCDIR}/haproxy
|
||||
@man man/man1/haproxy.1
|
||||
@bin sbin/haproxy
|
||||
@sample ${HAPROXYCONF}/
|
||||
@sample ${HAPROXYSTATE}/
|
||||
share/doc/haproxy/
|
||||
share/doc/haproxy/51Degrees-device-detection.txt
|
||||
share/doc/haproxy/DeviceAtlas-device-detection.txt
|
||||
share/doc/haproxy/SOCKS4.protocol.txt
|
||||
share/doc/haproxy/SPOE.txt
|
||||
share/doc/haproxy/WURFL-device-detection.txt
|
||||
share/doc/haproxy/architecture.txt
|
||||
share/doc/haproxy/configuration.txt
|
||||
share/doc/haproxy/cookie-options.txt
|
||||
share/doc/haproxy/intro.txt
|
||||
share/doc/haproxy/linux-syn-cookies.txt
|
||||
share/doc/haproxy/lua.txt
|
||||
share/doc/haproxy/management.txt
|
||||
share/doc/haproxy/netscaler-client-ip-insertion-protocol.txt
|
||||
share/doc/haproxy/network-namespaces.txt
|
||||
share/doc/haproxy/peers-v2.0.txt
|
||||
share/doc/haproxy/peers.txt
|
||||
share/doc/haproxy/proxy-protocol.txt
|
||||
share/doc/haproxy/regression-testing.txt
|
||||
share/doc/haproxy/seamless_reload.txt
|
||||
share/examples/haproxy/
|
||||
share/examples/haproxy/basic-config-edge.cfg
|
||||
share/examples/haproxy/content-sw-sample.cfg
|
||||
share/examples/haproxy/haproxy.cfg
|
||||
@sample ${HAPROXYCONF}/haproxy.cfg
|
||||
share/examples/haproxy/option-http_proxy.cfg
|
||||
share/examples/haproxy/quick-test.cfg
|
||||
share/examples/haproxy/socks4.cfg
|
||||
share/examples/haproxy/transparent_proxy.cfg
|
||||
share/examples/haproxy/wurfl-example.cfg
|
15
net/haproxy/pkg/haproxy.rc
Normal file
15
net/haproxy/pkg/haproxy.rc
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/ksh
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/haproxy"
|
||||
daemon_flags="-f ${HAPROXYCONF}/haproxy.cfg"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
# rc_reload() appends '-sf ...'
|
||||
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}.*"
|
||||
|
||||
rc_reload() {
|
||||
${daemon} ${daemon_flags} -sf $(cat /var/run/haproxy.pid)
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Add table
Add a link
Reference in a new issue