2021-06-04 15:24:22 +00:00
|
|
|
# Maintainer: Antoine Martin <dev@ayakael.net>
|
|
|
|
|
|
|
|
pkgname=haproxy-wi
|
2021-07-14 03:56:39 +00:00
|
|
|
pkgver=5.1.1
|
|
|
|
pkgrel=0
|
2021-06-04 15:24:22 +00:00
|
|
|
pkgdesc="Web interface for managing HAProxy, Nginx and Keepalived servers"
|
|
|
|
arch='noarch'
|
|
|
|
url="https://github.com/Aidaho12/haproxy-wi"
|
|
|
|
license='Apache-2.0'
|
|
|
|
makedepends='git'
|
|
|
|
depends="net-tools lshw dos2unix nginx
|
|
|
|
py3-pip freetype-dev netcat-openbsd python3
|
|
|
|
py3-ldap3 python3-dev libpq libxml2-dev libxslt-dev libldap
|
|
|
|
libsasl libffi-dev pkgconfig nmap"
|
|
|
|
source="$pkgname-$pkgver.tar.gz"
|
|
|
|
_giturl="https://github.com/Aidaho12/haproxy-wi"
|
2021-07-14 03:56:39 +00:00
|
|
|
_gittag="0f02f84588bd15c5c923e0e405d8f32a19321b2a"
|
2021-06-04 15:24:22 +00:00
|
|
|
builddir="$srcdir/$pkgname"
|
|
|
|
options="!check"
|
|
|
|
|
|
|
|
snapshot() {
|
|
|
|
mkdir -p "$srcdir"
|
|
|
|
cd "${srcdir}"
|
|
|
|
if ! [ -d $pkgname.git ]; then
|
|
|
|
git clone $_giturl $pkgname.git || return 1
|
|
|
|
cd $pkgname.git
|
|
|
|
else
|
|
|
|
cd $pkgname.git
|
|
|
|
git fetch || return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Checking out"
|
|
|
|
git checkout $_gittag
|
|
|
|
echo "Repo archive"
|
|
|
|
git archive --prefix="$pkgname/" -o $pkgname.tar --format "tar" $_gittag
|
|
|
|
|
|
|
|
gzip $pkgname.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz
|
|
|
|
ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
_instdir="$pkgdir"/usr/share/webapps/haproxy-wi
|
|
|
|
mkdir -p "${_instdir}"
|
|
|
|
cd "${_instdir}"
|
|
|
|
cp -ra "$builddir"/* .
|
|
|
|
chmod +x app/*.py
|
|
|
|
install -Dm755 -d "${_instdir}"/app/certs "${_instdir}"/keys "${_instdir}"/log "${pkgdir}"/etc/logrotate.d
|
|
|
|
cp "${_instdir}"/config_other/logrotate/* "${pkgdir}"/etc/logrotate.d/.
|
|
|
|
}
|
2021-07-14 03:56:39 +00:00
|
|
|
sha512sums="59405d95aaa3229e6525499b34ad7590d467b361021bc615db9cf13854f386c66b0595d152c313d90ee66d238ff16e709b4432c13b0f33b324d4c22ce1b729de haproxy-wi-5.1.1.tar.gz"
|