summaryrefslogtreecommitdiff
path: root/manualPorts/logwatch/Pkgfile
blob: dea66d86fdc8fd3047426bc0707980470b08a552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Description: A tool to summarize log file entries
# URL: http://sourceforge.net/projects/logwatch/
# Maintainer: Erich Eckner, crux at eckner dot net

name=logwatch
version=7.4.3
release=1
source=(http://sourceforge.net/projects/$name/files/$name-$version/$name-$version.tar.gz
        archive.patch)

build() {

	cd $name-$version

        patch -p0 < ../archive.patch

	mkdir -p $PKG/etc/logwatch
	mkdir $PKG/etc/logwatch/scripts
	mkdir $PKG/etc/logwatch/conf
	mkdir $PKG/etc/logwatch/conf/logfiles
	mkdir $PKG/etc/logwatch/conf/services
	touch $PKG/etc/logwatch/conf/logwatch.conf
	touch $PKG/etc/logwatch/conf/ignore.conf
	touch $PKG/etc/logwatch/conf/override.conf

	mkdir -p $PKG/usr/share/logwatch
	mkdir $PKG/usr/share/logwatch/dist.conf
	mkdir $PKG/usr/share/logwatch/dist.conf/logfiles
	mkdir $PKG/usr/share/logwatch/dist.conf/services

	mv conf/ $PKG/usr/share/logwatch/default.conf
	mv scripts/ $PKG/usr/share/logwatch/scripts
	mv lib $PKG/usr/share/logwatch/lib

	mkdir -p $PKG/var/cache/logwatch
}