# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-weblog
pkgver=0.11.1
pkgrel=1
pkgdesc="ACF for web proxy (squid and dansguardian) logfiles"
url="https://git.alpinelinux.org/cgit/acf/acf-weblog"
arch="noarch"
license="GPL-2.0"
depends="acf-core lua-sql-postgres wget postgresql-client lua-subprocess"
makedepends=""
install="$pkgname.post-upgrade"
subpackages=""
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz
	acf-weblog-update-schema"

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	install -Dm755 "$srcdir"/acf-weblog-update-schema \
		"$pkgdir"/usr/sbin/acf-weblog-update-schema
}

md5sums="e50e6d91bcc82bbd22c575eb75bc9d67  acf-weblog-0.11.1.tar.xz
b88ba3059c0a20c5a70cb962428e166f  acf-weblog-update-schema"
sha256sums="700664dc3cd310bb74650890f250a7d82585bb20e71458c22679cf3e0f628158  acf-weblog-0.11.1.tar.xz
dc604fc5e923591edfe197b496aab2bbed894fb9ae2c4b15d9ff26ab98f88bc3  acf-weblog-update-schema"
sha512sums="396e0e3cbbd01f2c12f9e3b00ee1b8c0b9ec379af9c09b19ebf4b4571a265c040e9266dc3fe9012510136214a5ad49198020cdf861045ce19512d76afbc22dd1  acf-weblog-0.11.1.tar.xz
98474adf2b60b30dbe060753db9b8c8d70696e063cfae810f7aab59cba229e45e15abe368609bd9ab3480c594fd6e9545c5c128fcdc81908df4463f86cb475e3  acf-weblog-update-schema"
