blob: 9f6181e97c78048f2a7acd316c826a3e20354efe (
plain)
1 # Description: Kernel and system logging daemons
2 # URL: http://www.infodrom.org/projects/sysklogd/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=sysklogd
6 version=1.5
7 release=4
8 source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz \
9 rotatelog syslog syslog.conf sysklogd)
10
11 build() {
12 cd $name-$version
13
14 # don't try to fclose(NULL)
15 sed -i -e '192d' ksym_mod.c
16
17 mkdir -p $PKG/usr/sbin \
18 $PKG/etc/{cron/weekly,rc.d} \
19 $PKG/var/log \
20 $PKG/usr/man/{man5,man8}
21
22 make RPM_OPT_FLAGS="$CFLAGS" all
23 make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/man install
24
25 install -m 755 $SRC/rotatelog $PKG/usr/sbin
26 install -m 755 $SRC/syslog $PKG/etc/cron/weekly
27 install -m 644 $SRC/syslog.conf $PKG/etc
28 install -m 755 $SRC/sysklogd $PKG/etc/rc.d
29
30 chmod -R +w $PKG
31 touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
32 chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
33 }
|