diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-04-17 15:54:26 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-04-17 19:23:32 +0000 |
commit | d798b791ad4f18af51c27cd7ee6f1a40b40a70f1 (patch) | |
tree | 30e1aef0f563086579f17e98dea5edfe7d3e9e4c /main/awstats | |
parent | 88e3866a18ffdd58fb3c829ffdfd0a000f0890e2 (diff) | |
download | aports-d798b791ad4f18af51c27cd7ee6f1a40b40a70f1.tar.bz2 aports-d798b791ad4f18af51c27cd7ee6f1a40b40a70f1.tar.xz |
main/awstats: upgrade to 7.8
Diffstat (limited to 'main/awstats')
-rw-r--r-- | main/awstats/APKBUILD | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/main/awstats/APKBUILD b/main/awstats/APKBUILD index 71d001fc6b..f98a464046 100644 --- a/main/awstats/APKBUILD +++ b/main/awstats/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Valery Kartel <valery.kartel@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=awstats -pkgver=7.7 +pkgver=7.8 pkgrel=0 pkgdesc="Free real-time logfile analyzer to get advanced statistics" url="http://awstats.sourceforge.net/" @@ -10,8 +10,7 @@ license="GPL-3.0-or-later" depends="perl perl-uri" subpackages="$pkgname-doc" options="!check" # no testsuite -source="https://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" +source="https://prdownloads.sourceforge.net/awstats/awstats-$pkgver.tar.gz" # secfixes: # 7.6-r2: @@ -21,19 +20,18 @@ prepare() { local file default_prepare for file in tools/* wwwroot/cgi-bin/*; do - [ -f "${file}" ] || continue + [ -f "$file" ] || continue sed -e "s:/usr/local/$pkgname/wwwroot:/usr/lib/$pkgname:g" \ -i "$file" done for file in wwwroot/cgi-bin/*; do - [ -f "${file}" ] || continue + [ -f "$file" ] || continue sed -e "s:/usr/share/$pkgname:/usr/lib/$pkgname/cgi-bin:g" \ -i "$file" done } package() { - cd "$builddir" install -d "$pkgdir"/usr/share/doc/$pkgname \ "$pkgdir"/var/lib/$pkgname \ "$pkgdir"/usr/lib/$pkgname \ @@ -41,7 +39,7 @@ package() { "$pkgdir"/usr/bin # docs - cp -a docs tools/xslt "$pkgdir"/usr/share/doc/$pkgname || return 1 + cp -a docs tools/xslt "$pkgdir"/usr/share/doc/$pkgname # cgi-bin cp -a wwwroot/* "$pkgdir"/usr/lib/$pkgname @@ -51,7 +49,7 @@ package() { "$pkgdir"/usr/lib/$pkgname/cgi-bin/$pkgname.model.conf # tools - cp tools/*.pl "$pkgdir"/usr/bin/ || return 1 + cp tools/*.pl "$pkgdir"/usr/bin/ ln -s /usr/lib/$pkgname/cgi-bin/$pkgname.pl "$pkgdir"/usr/bin/ # remove java sources and example plugin @@ -59,4 +57,4 @@ package() { "$pkgdir"/usr/lib/$pkgname/cgi-bin/plugins/example } -sha512sums="8bf32b0650ef0cc900a16eead866da3847d81c2696e7a90fb49833679c958768833d781e5b4becd9b4f6748c7266e2887ff7ff33d98293ce3a0296a810fbe899 awstats-7.7.tar.gz" +sha512sums="2fd78e8c7eefb5c9ed39d8ee830ee8ad00b622b812ae40a84cb01c4fa653b9ab7822d1592313d7a8c4b8503d04dcba48b1775d33a629f1ac1278d2300eef931d awstats-7.8.tar.gz" |