diff options
Diffstat (limited to 'main/haproxy/APKBUILD')
-rw-r--r-- | main/haproxy/APKBUILD | 53 |
1 files changed, 33 insertions, 20 deletions
diff --git a/main/haproxy/APKBUILD b/main/haproxy/APKBUILD index 2f501a7006..8de175a76c 100644 --- a/main/haproxy/APKBUILD +++ b/main/haproxy/APKBUILD @@ -17,36 +17,49 @@ source="http://haproxy.1wt.eu/download/${_pkgmajorver}/src/$pkgname-$pkgver.tar. haproxy.initd haproxy.cfg" -_builddir="$srcdir/$pkgname-$pkgver" +builddir="$srcdir/$pkgname-$pkgver" + build() { - cd "$_builddir" - make TARGET=linux2628 \ - USE_PCRE=1 \ - USE_OPENSSL=1 \ - USE_ZLIB=1 \ - USE_LUA=1 \ - LUA_LIB=/usr/lib/lua${_luaver} \ - LUA_INC=/usr/include/lua${_luaver} \ - CFLAGS="$CFLAGS" || return 1 + cd "$builddir" + make \ + TARGET=linux2628 \ + USE_PCRE=1 \ + USE_OPENSSL=1 \ + USE_ZLIB=1 \ + USE_LUA=1 \ + LUA_LIB=/usr/lib/lua${_luaver} \ + LUA_INC=/usr/include/lua${_luaver} \ + CFLAGS="$CFLAGS" \ + || return 1 } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" PREFIX=/usr DOCDIR=/usr/share/doc/haproxy \ - install || return 1 - install -d "$pkgdir"/var/lib/haproxy - install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - install -m644 -D "$srcdir"/haproxy.cfg \ - "$pkgdir"/etc/haproxy/haproxy.cfg || return 1 - install -m755 haproxy-systemd-wrapper "$pkgdir"/usr/sbin/ || return 1 + cd "$builddir" + make install \ + DESTDIR="$pkgdir" PREFIX=/usr DOCDIR=/usr/share/doc/haproxy \ + || return 1 + install -d \ + "$pkgdir"/var/lib/haproxy \ + || return 1 + install -D -m 755 \ + "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname \ + || return 1 + install -D -m 644 \ + "$srcdir"/haproxy.cfg \ + "$pkgdir"/etc/haproxy/haproxy.cfg \ + || return 1 + install -m 755 \ + haproxy-systemd-wrapper \ + "$pkgdir"/usr/sbin/ \ + || return 1 } wrapper() { pkgdesc="wrapper for restarting haproxy without losing open connections" mkdir -p "$subpkgdir"/usr/sbin mv "$pkgdir"/usr/sbin/haproxy-systemd-wrapper \ - "$subpkgdir"/usr/sbin/ + "$subpkgdir"/usr/sbin/ } md5sums="b418d83cf4f2da328f6eb8c255b8716b haproxy-1.6.6.tar.gz |