Created
June 26, 2014 02:42
-
-
Save lxyu/2c149884aa20edec7818 to your computer and use it in GitHub Desktop.
haproxy-1.5.1 AUR for vps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=haproxy | |
pkgver=1.5.1 | |
pkgrel=1 | |
pkgdesc="The Reliable, High Performance TCP/HTTP Load Balancer" | |
arch=('i686' 'x86_64') | |
url="http://haproxy.1wt.eu" | |
license=('GPL') | |
depends=('pcre' 'openssl' 'zlib') | |
makedepends=('gcc' 'linux-headers') | |
backup=('etc/haproxy/haproxy.cfg') | |
install="${pkgname}.install" | |
source=("http://haproxy.1wt.eu/download/1.5/src/${pkgname}-${pkgver}.tar.gz" | |
"haproxy.service" ) | |
md5sums=('49640cf3ddd793a05fbd3394481a1ed4' | |
'3cf5584eb54f41f734ee794ef19b0160') | |
build() { | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
make TARGET=linux2628 CPU=generic USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 | |
} | |
package() { | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
make PREFIX="${pkgdir}/usr" SBINDIR="${pkgdir}/usr/bin" DOCDIR="${pkgdir}/usr/share/doc/${pkgname}" install | |
install -d "${pkgdir}/usr/share/doc/${pkgname}/examples" | |
install -m644 examples/*.cfg "${pkgdir}/usr/share/doc/${pkgname}/examples/" | |
install -d "${pkgdir}/usr/share/doc/${pkgname}/examples/errorfiles" | |
install -m644 examples/errorfiles/*.http "${pkgdir}/usr/share/doc/${pkgname}/examples/errorfiles/" | |
install -D -m644 "examples/haproxy.cfg" "${pkgdir}/etc/haproxy/haproxy.cfg" | |
install -D -m644 "${startdir}/haproxy.service" "${pkgdir}/usr/lib/systemd/system/haproxy.service" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment