summaryrefslogtreecommitdiff
path: root/manualPorts/logwatch/Pkgfile
blob: f21885aedebd4e79877e7dbc2d429030ba93885f (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.5.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
}