2021-06-04 15:24:22 +00:00
|
|
|
# Maintainer: Antoine Martin <dev@ayakael.net>
|
|
|
|
|
2022-07-29 15:01:12 +00:00
|
|
|
pkgname=roxy-wi
|
|
|
|
pkgver=5.4.0.0
|
2021-07-14 03:56:39 +00:00
|
|
|
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"
|
2022-07-29 15:01:12 +00:00
|
|
|
source="roxi-wi.$pkgver.tar.gz::https://github.com/hap-wi/roxy-wi/archive/refs/tags/v$pkgver.tar.gz"
|
2021-06-04 15:24:22 +00:00
|
|
|
_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/.
|
|
|
|
}
|
2022-07-29 15:01:12 +00:00
|
|
|
sha512sums="
|
|
|
|
0ee75ec36b0671b3fc506ad1406565f5451dbbb6aadce0857ff9f5476aabe132e9f43c5c92942eb1a5b9d55ce1da4400d4b352a1ca940fc1d8a7fd574eefeaeb roxi-wi.5.4.0.0.tar.gz
|
|
|
|
"
|