diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-07 12:49:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-07 12:49:22 +0000 |
commit | c03f98fabc089e021d54144b32da5ed94d96dd26 (patch) | |
tree | 6be5582fb38ca8cbde621f94bd3a7a46c0ebe275 /main/acf-weblog | |
parent | f9571415138bb58380471de7aa022a4ce46915f8 (diff) | |
download | aports-c03f98fabc089e021d54144b32da5ed94d96dd26.tar.bz2 aports-c03f98fabc089e021d54144b32da5ed94d96dd26.tar.xz |
main/acf-weblog: upgrade to 0.4.0
Diffstat (limited to 'main/acf-weblog')
-rw-r--r-- | main/acf-weblog/APKBUILD | 6 | ||||
-rw-r--r-- | main/acf-weblog/acf-weblog.post-upgrade | 21 |
2 files changed, 24 insertions, 3 deletions
diff --git a/main/acf-weblog/APKBUILD b/main/acf-weblog/APKBUILD index 9a0f6d0e58..cc935cd702 100644 --- a/main/acf-weblog/APKBUILD +++ b/main/acf-weblog/APKBUILD @@ -1,14 +1,14 @@ # 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" diff --git a/main/acf-weblog/acf-weblog.post-upgrade b/main/acf-weblog/acf-weblog.post-upgrade new file mode 100644 index 0000000000..325f8cb320 --- /dev/null +++ b/main/acf-weblog/acf-weblog.post-upgrade @@ -0,0 +1,21 @@ +#!/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 + |