blob: 12be0b2841b50b04758e53d78db25ab55d1ba6e7 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=logwatch-systemd
_pkgname=${pkgname%-*}
pkgver=7.5.2
pkgrel=2
arch=('any')
pkgdesc="Logwatch is a customizable log analysis system."
url="http://www.logwatch.org/"
depends=('perl')
optdepends=(
'perl-date-manip: human readable dates'
'perl-sys-info: cpu info'
'perl-sys-info-driver-linux: cpu info'
'perl-sys-meminfo: memory info'
)
license=('custom')
backup=(etc/logwatch/conf/logwatch.conf
etc/logwatch/conf/ignore.conf
etc/logwatch/conf/override.conf)
provides=("logwatch=$pkgver")
source=(
"https://downloads.sourceforge.net/project/logwatch/logwatch-$pkgver/logwatch-$pkgver.tar.gz"
cron.conf
maillog.conf
messages.conf
secure.conf
logwatch.timer
logwatch.service)
sha256sums=('5d9c1a6eaf082b880c61895914824e347c6d63ad2a31cfc150f384a3e68ce5fb'
'51eb6b6f71fe65f35cc74b49db55e64790c50558309313adbab4945a23bf3d97'
'b1f273b094914702c790301eb045161229d0c2c6c74053dece832d6eeaaaf800'
'ed6b9bdf5be279f5301373b339025cdfc0efe7519936072a0e594c314226b24f'
'90ad32fce13269690731ceafd0ed4bb45512740fa97fc7cf66fcb9a3263219b5'
'e8d78befe292fa60aa0385864aef5f9bb4efdfd9c549a8525452a6aa1debfe8c'
'd64d67c0c165db2c63e87066be3dbe3e4d256583a73ea2d37a54750a4fefcb80')
package() {
cd "$srcdir"/$_pkgname-$pkgver
install -m 0755 -d "$pkgdir"/usr/share/logwatch
install -m 0755 -d "$pkgdir"/usr/share/logwatch/dist.conf
install -m 0755 -d "$pkgdir"/usr/share/logwatch/dist.conf/logfiles
install -m 0755 -d "$pkgdir"/usr/share/logwatch/dist.conf/services
install -m 0755 -d "$pkgdir"/usr/share/logwatch/default.conf
install -m 0755 -d "$pkgdir"/usr/share/logwatch/default.conf/logfiles
install -m 0755 -d "$pkgdir"/usr/share/logwatch/default.conf/services
install -m 0755 -d "$pkgdir"/usr/share/logwatch/default.conf/html
install -m 0755 -d "$pkgdir"/usr/share/logwatch/scripts
install -m 0755 -d "$pkgdir"/usr/share/logwatch/scripts/logfiles
install -m 0755 -d "$pkgdir"/usr/share/logwatch/scripts/services
install -m 0755 -d "$pkgdir"/usr/share/logwatch/scripts/shared
install -m 0755 -d "$pkgdir"/usr/share/logwatch/lib
install -m 0644 README "$pkgdir"/usr/share/logwatch/README
install -m 0644 HOWTO-Customize-LogWatch "$pkgdir"/usr/share/logwatch/HOWTO-Customize-LogWatch
install -m 0644 conf/*.conf "$pkgdir"/usr/share/logwatch/default.conf
install -m 0644 conf/logfiles/* "$pkgdir"/usr/share/logwatch/default.conf/logfiles
install -m 0644 conf/services/* "$pkgdir"/usr/share/logwatch/default.conf/services
install -m 0644 conf/html/* "$pkgdir"/usr/share/logwatch/default.conf/html
install -m 0755 scripts/logwatch.pl "$pkgdir"/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 "$pkgdir"/usr/share/logwatch/$i
install -m 0644 $i/* "$pkgdir"/usr/share/logwatch/$i
fi
done
install -m 0644 scripts/shared/* "$pkgdir"/usr/share/logwatch/scripts/shared
install -m 0644 scripts/services/* "$pkgdir"/usr/share/logwatch/scripts/services
install -m 0644 lib/* "$pkgdir"/usr/share/logwatch/lib
install -m 0755 -d "$pkgdir"/etc/logwatch
install -m 0755 -d "$pkgdir"/etc/logwatch/scripts
install -m 0755 -d "$pkgdir"/etc/logwatch/conf
install -m 0755 -d "$pkgdir"/etc/logwatch/conf/logfiles
install -m 0755 -d "$pkgdir"/etc/logwatch/conf/services
install -m 0755 -d "$pkgdir"/etc/logwatch/conf/html
touch "$pkgdir"/etc/logwatch/conf/logwatch.conf
touch "$pkgdir"/etc/logwatch/conf/ignore.conf
touch "$pkgdir"/etc/logwatch/conf/override.conf
install -m 0755 -d "$pkgdir"/usr/share/man/man8/
install -m 0644 logwatch.8 "$pkgdir"/usr/share/man/man8/
install -m 0755 -d "$pkgdir"/usr/bin/
ln -s /usr/share/logwatch/scripts/logwatch.pl "$pkgdir"/usr/bin/logwatch
install -m 0755 -d "$pkgdir"/var/cache/logwatch
# https://bbs.archlinux.org/viewtopic.php?id=227516
install -dm0755 "$pkgdir"/var/log
touch "$pkgdir"/var/log/emptylog
install -Dm0644 "$srcdir"/cron.conf "$pkgdir"/usr/share/logwatch/dist.conf/logfiles/cron.conf
install -Dm0644 "$srcdir"/maillog.conf "$pkgdir"/usr/share/logwatch/dist.conf/logfiles/maillog.conf
install -Dm0644 "$srcdir"/messages.conf "$pkgdir"/usr/share/logwatch/dist.conf/logfiles/messages.conf
install -Dm0644 "$srcdir"/secure.conf "$pkgdir"/usr/share/logwatch/dist.conf/logfiles/secure.conf
install -m 0755 -d "$pkgdir"/usr/share/licenses/$pkgname/
install -m 0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
install -m 0755 -d "$pkgdir"/usr/lib/systemd/system
install -m 0644 "$srcdir"/logwatch.timer "$pkgdir"/usr/lib/systemd/system/logwatch.timer
install -m 0644 "$srcdir"/logwatch.service "$pkgdir"/usr/lib/systemd/system/logwatch.service
}
|