aboutsummaryrefslogtreecommitdiffstats
path: root/testing/awstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-18 14:28:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-18 14:28:59 +0000
commitbb45e1bb2278c4b00d8f7438327c8fdc777d8666 (patch)
tree52b1a1fbae550a2c0dbf69922d19719f808212a2 /testing/awstats
parent9079b3f643120e2a21b27b190ac22bde78415069 (diff)
downloadaports-bb45e1bb2278c4b00d8f7438327c8fdc777d8666.tar.bz2
aports-bb45e1bb2278c4b00d8f7438327c8fdc777d8666.tar.xz
testing/awstats: new aport
AWStats is short for Advanced Web Statistics. http://awstats.sourceforge.net/ ref #363
Diffstat (limited to 'testing/awstats')
-rw-r--r--testing/awstats/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/awstats/APKBUILD b/testing/awstats/APKBUILD
new file mode 100644
index 0000000000..4dddfdd1fe
--- /dev/null
+++ b/testing/awstats/APKBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=awstats
+pkgver=6.95
+pkgrel=0
+pkgdesc="AWStats is short for Advanced Web Statistics."
+url="http://awstats.sourceforge.net/"
+license="GPL-2"
+depends="perl perl-uri"
+subpackages="$pkgname-doc"
+source="http://awstats.sourceforge.net/files/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local file
+ cd "$_builddir"
+ for file in tools/* wwwroot/cgi-bin/*; do
+ [ -f "${file}" ] || continue
+ sed -e "s:/usr/local/awstats/wwwroot:/usr/lib/awstats:g" \
+ -i "$file"
+ done
+}
+
+build() {
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+# logpath="awstats_log"
+# sed -e "s|^\(LogFile=\).*$|\1\"/var/log/${logpath}\"|" \
+# -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|"
+# -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|"
+# -e "s|^\(DirCgi=\).*$|\1\"/cgi-bin\"|"
+# -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+# if use ipv6; then
+# sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
+# fi
+
+ install -d "$pkgdir"/usr/share/doc/awstats \
+ "$pkgdir"/var/lib/awstats \
+ "$pkgdir"/usr/lib/awstats \
+ "$pkgdir"/usr/bin \
+ "$pkgdir"/etc/awstats
+ # docs
+ cp -a docs tools/xslt "$pkgdir"/usr/share/doc/awstats || return 1
+
+ # cgi-bin
+ cp -a wwwroot/* "$pkgdir"/usr/lib/awstats
+ mv "$pkgdir"/usr/lib/awstats/cgi-bin/awstats.model.conf \
+ "$pkgdir"/etc/awstats/
+ ln -s /etc/aswtats/awstats \
+ "$pkgdir"/usr/lib/awstats/cgi-bin/awstats.model.conf
+
+ # tools
+ cp tools/*.pl "$pkgdir"/usr/bin/ || return 1
+ ln -s /usr/lib/awstats/cgi-bin/awstats.pl "$pkgdir"/usr/bin/
+}
+md5sums="26a5b19fa9f395e9e7dafed37b795d7f awstats-6.95.tar.gz"