mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 02:02:08 +01:00
62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=awstats
|
|
pkgver=7.5
|
|
pkgrel=0
|
|
pkgdesc="AWStats is short for Advanced Web Statistics."
|
|
url="http://awstats.sourceforge.net/"
|
|
arch="noarch"
|
|
license="GPL2+"
|
|
depends="perl perl-uri"
|
|
subpackages="$pkgname-doc"
|
|
source="http://www.awstats.org/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="43cdea5c0680a4314438feb075172263 awstats-7.5.tar.gz"
|
|
sha256sums="efe44151b1546365d9dc5132ef9e0df3f4bfed955732ff63771d17fcd59ef51f awstats-7.5.tar.gz"
|
|
sha512sums="cd090aab38dd24f0be33daf6cf734516ffe8df96f461591eb8c9ae7705c01dfef3b8fe463781b766ae7a886b56d6c596445860c858d008d3b85606da0031cf05 awstats-7.5.tar.gz"
|