diff options
author | Michael Mason <ms13sp@gmail.com> | 2010-03-22 12:17:23 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2010-03-22 12:17:23 +0000 |
commit | 8c68fa147705f39ef1ba3dad4c8e03e035e811e9 (patch) | |
tree | bc5790bfd46cfef4031a8e57a9155a6f40550e6b /main/acf-weblog | |
parent | ab919e61f26ec3409874ebce697842171bfc6d59 (diff) | |
parent | 1109f54eb91e05dd7684ee1b30bc8328a52a5005 (diff) | |
download | aports-8c68fa147705f39ef1ba3dad4c8e03e035e811e9.tar.bz2 aports-8c68fa147705f39ef1ba3dad4c8e03e035e811e9.tar.xz |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'main/acf-weblog')
-rw-r--r-- | main/acf-weblog/APKBUILD | 4 | ||||
-rw-r--r-- | main/acf-weblog/acf-weblog.post-upgrade | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/main/acf-weblog/APKBUILD b/main/acf-weblog/APKBUILD index 6600623f8..ec2f111ca 100644 --- a/main/acf-weblog/APKBUILD +++ b/main/acf-weblog/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Ted Trask <ttrask01@yahoo.com> # Maintainer: Ted Trask <ttrask01@yahoo.com> pkgname=acf-weblog -pkgver=0.5.3 +pkgver=0.5.4 pkgrel=0 pkgdesc="ACF for web proxy (squid and dansguardian) logfiles" url="http://git.alpinelinux.org/cgit/acf-weblog" @@ -17,4 +17,4 @@ build() { make DESTDIR="$pkgdir" install } -md5sums="ec29bf0cf9ab0a3deb892ff28d8c98bc acf-weblog-0.5.3.tar.bz2" +md5sums="8926a8178bf646363678bc9feacbc310 acf-weblog-0.5.4.tar.bz2" diff --git a/main/acf-weblog/acf-weblog.post-upgrade b/main/acf-weblog/acf-weblog.post-upgrade index aec1e22c4..a15590cc7 100644 --- a/main/acf-weblog/acf-weblog.post-upgrade +++ b/main/acf-weblog/acf-weblog.post-upgrade @@ -3,6 +3,20 @@ new=$1 old=$2 +# if current is not older than 0.5.4 we exit. +if ! [ "$(apk version -t $old 0.5.4)" = "<" ]; then + exit 0 +fi + +psql -U postgres -c "ALTER TABLE weblog ALTER bytes TYPE bigint"\ + webproxylog +psql -U postgres -c "ALTER TABLE pubweblog ALTER bytes TYPE bigint"\ + webproxylog +psql -U postgres -c "ALTER TABLE blocklog ALTER bytes TYPE bigint"\ + webproxylog +psql -U postgres -c "ALTER TABLE pubblocklog ALTER bytes TYPE bigint"\ + webproxylog + # if current is not older than 0.4.5 we exit. if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then exit 0 |