# Maintainer: Antoine Martin pkgname=roxy-wi pkgver=5.4.0.0 pkgrel=0 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="roxi-wi.$pkgver.tar.gz::https://github.com/hap-wi/roxy-wi/archive/refs/tags/v$pkgver.tar.gz" _giturl="https://github.com/Aidaho12/haproxy-wi" _gittag="0f02f84588bd15c5c923e0e405d8f32a19321b2a" 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/. } sha512sums=" 0ee75ec36b0671b3fc506ad1406565f5451dbbb6aadce0857ff9f5476aabe132e9f43c5c92942eb1a5b9d55ce1da4400d4b352a1ca940fc1d8a7fd574eefeaeb roxi-wi.5.4.0.0.tar.gz "