mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
73 lines
3.4 KiB
Bash
73 lines
3.4 KiB
Bash
|
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
||
|
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
|
||
|
pkgname=logwatch
|
||
|
pkgver=7.3.6
|
||
|
pkgrel=1
|
||
|
arch=('i686' 'x86_64')
|
||
|
pkgdesc="Logwatch is a customizable log analysis system."
|
||
|
url="http://www.logwatch.org/"
|
||
|
depends=('perl' 'cron')
|
||
|
license=('custom')
|
||
|
source=(ftp://ftp.kaybee.org/pub/linux/$pkgname-$pkgver.tar.gz)
|
||
|
md5sums=('937d982006b2a76a83edfcfd2e5a9d7d')
|
||
|
backup=('etc/logwatch/conf/logwatch.conf' 'etc/logwatch/conf/ignore.conf' 'etc/logwatch/conf/override.conf')
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/$pkgname-$pkgver
|
||
|
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/dist.conf
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/dist.conf/logfiles
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/dist.conf/services
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/default.conf
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/default.conf/logfiles
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/default.conf/services
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/default.conf/html
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/scripts
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/scripts/logfiles
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/scripts/services
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/scripts/shared
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/lib
|
||
|
|
||
|
install -m 0644 README $startdir/pkg/usr/share/logwatch/README
|
||
|
install -m 0644 HOWTO-Customize-LogWatch $startdir/pkg/usr/share/logwatch/HOWTO-Customize-LogWatch
|
||
|
install -m 0644 conf/*.conf $startdir/pkg/usr/share/logwatch/default.conf
|
||
|
install -m 0644 conf/logfiles/* $startdir/pkg/usr/share/logwatch/default.conf/logfiles
|
||
|
install -m 0644 conf/services/* $startdir/pkg/usr/share/logwatch/default.conf/services
|
||
|
install -m 0644 conf/html/* $startdir/pkg/usr/share/logwatch/default.conf/html
|
||
|
install -m 0755 scripts/logwatch.pl $startdir/pkg/usr/share/logwatch/scripts/logwatch.pl
|
||
|
for i in scripts/logfiles/* ; do
|
||
|
if [ `ls $i | grep -v CVS | wc -l` -ne 0 ] ; then
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/logwatch/$i
|
||
|
install -m 0644 $i/* $startdir/pkg/usr/share/logwatch/$i
|
||
|
fi
|
||
|
done
|
||
|
install -m 0644 scripts/shared/* $startdir/pkg/usr/share/logwatch/scripts/shared
|
||
|
install -m 0644 scripts/services/* $startdir/pkg/usr/share/logwatch/scripts/services
|
||
|
install -m 0644 lib/* $startdir/pkg/usr/share/logwatch/lib
|
||
|
|
||
|
install -m 0755 -d $startdir/pkg/etc/logwatch
|
||
|
install -m 0755 -d $startdir/pkg/etc/logwatch/scripts
|
||
|
install -m 0755 -d $startdir/pkg/etc/logwatch/conf
|
||
|
install -m 0755 -d $startdir/pkg/etc/logwatch/conf/logfiles
|
||
|
install -m 0755 -d $startdir/pkg/etc/logwatch/conf/services
|
||
|
install -m 0755 -d $startdir/pkg/etc/logwatch/conf/html
|
||
|
|
||
|
touch $startdir/pkg/etc/logwatch/conf/logwatch.conf
|
||
|
touch $startdir/pkg/etc/logwatch/conf/ignore.conf
|
||
|
touch $startdir/pkg/etc/logwatch/conf/override.conf
|
||
|
|
||
|
install -m 0755 -d $startdir/pkg/usr/man/man8/
|
||
|
install -m 0644 logwatch.8 $startdir/pkg/usr/man/man8/
|
||
|
|
||
|
install -m 0755 -d $startdir/pkg/etc/cron.daily/
|
||
|
install -m 0755 -d $startdir/pkg/usr/sbin/
|
||
|
ln -s /usr/share/logwatch/scripts/logwatch.pl $startdir/pkg/usr/sbin/logwatch
|
||
|
ln -s /usr/share/logwatch/scripts/logwatch.pl $startdir/pkg/etc/cron.daily/0logwatch
|
||
|
|
||
|
install -m 0755 -d $startdir/pkg/var/cache/logwatch
|
||
|
|
||
|
install -m 0755 -d $startdir/pkg/usr/share/licenses/$pkgname/
|
||
|
install -m 0644 License $startdir/pkg/usr/share/licenses/$pkgname/
|
||
|
}
|