blob: 71763d29411f35557d1f5fa2793fb7a92619c23f (
plain)
1 # Description: Kernel and system logging daemons
2 # URL: https://github.com/troglobit/sysklogd
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=sysklogd
6 version=2.1
7 release=1
8 source=(https://github.com/troglobit/sysklogd/releases/download/v$version/$name-$version.tar.gz \
9 rotatelog syslog syslog.conf sysklogd)
10
11 build() {
12 cd $name-$version
13
14 ./configure \
15 --prefix=/usr \
16 --sysconfdir=/etc \
17 --localstatedir=/var \
18 --without-logger \
19
20 make -j1
21 make DESTDIR=$PKG install
22
23 install -d $PKG/etc/{cron/weekly,rc.d,syslog.d}
24 install -m 755 $SRC/rotatelog $PKG/usr/sbin
25 install -m 755 $SRC/syslog $PKG/etc/cron/weekly
26 install -m 644 $SRC/syslog.conf $PKG/etc
27 install -m 755 $SRC/sysklogd $PKG/etc/rc.d
28
29 install -d $PKG/var/log
30 touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
31 chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
32
33 rm -r $PKG/usr/share/doc
34 }
|