Commit c03f98fa authored by Natanael Copa's avatar Natanael Copa

main/acf-weblog: upgrade to 0.4.0

parent f9571415
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-weblog
pkgver=0.3.2
pkgver=0.4.0
pkgrel=0
pkgdesc="ACF for web proxy (squid and dansguardian) logfiles"
url="http://git.alpinelinux.org/cgit/acf-weblog"
license="GPL-2"
depends="acf-core lua luasql-postgres wget postgresql-client"
makedepends=""
install=
install="$pkgname.post-upgrade"
subpackages=""
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2"
......@@ -17,4 +17,4 @@ build() {
make DESTDIR="$pkgdir" install
}
md5sums="a7145adf1bd0f6e7cd17e7ef89ff44ef acf-weblog-0.3.2.tar.bz2"
md5sums="70fa428318529560be3de665ee9d8ac7 acf-weblog-0.4.0.tar.bz2"
#!/bin/sh
new=$1
old=$2
if ! [ "$(apk version -t $old 0.4.0)" = "<" ]; then
exit 0
fi
psql -U postgres -c "ALTER TABLE weblog ADD COLUMN shortreason text" \
webproxylog
psql -U postgres -c "ALTER TABLE pubweblog ADD COLUMN shortreason text" \
webproxylog
psql -U postgres -c "ALTER TABLE pubblocklog ADD COLUMN shortreason text" \
webproxylog
psql -U postgres -c "ALTER TABLE blocklog ADD COLUMN shortreason text" \
webproxylog
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment