2006-02-23 15:26:10 +00:00
|
|
|
# Description: Kernel and system logging daemons
|
|
|
|
# URL: http://www.infodrom.org/projects/sysklogd/
|
2007-01-23 17:25:18 +00:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=sysklogd
|
2007-08-31 10:54:20 +02:00
|
|
|
version=1.5
|
2007-10-10 15:55:36 +02:00
|
|
|
release=3
|
2006-02-23 15:26:10 +00:00
|
|
|
source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz \
|
2007-10-10 15:55:36 +02:00
|
|
|
rotatelog syslog syslog.conf sysklogd)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2007-09-08 21:51:22 +02:00
|
|
|
|
|
|
|
# don't try to fclose(NULL)
|
|
|
|
sed -i -e '192d' ksym_mod.c
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
mkdir -p $PKG/usr/sbin \
|
2007-10-10 15:55:36 +02:00
|
|
|
$PKG/etc/{cron/weekly,rc.d} \
|
|
|
|
$PKG/var/log \
|
|
|
|
$PKG/usr/man/{man5,man8}
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make RPM_OPT_FLAGS="$CFLAGS" all
|
|
|
|
make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/man install
|
2007-10-10 15:55:36 +02:00
|
|
|
|
|
|
|
install -m 755 $SRC/rotatelog $PKG/usr/sbin
|
|
|
|
install -m 755 $SRC/syslog $PKG/etc/cron/weekly
|
|
|
|
install -m 644 $SRC/syslog.conf $PKG/etc
|
|
|
|
install -m 755 $SRC/sysklogd $PKG/etc/rc.d
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
chmod -R +w $PKG
|
|
|
|
touch $PKG/var/log/{messages,auth,mail}
|
|
|
|
chmod 640 $PKG/var/log/{messages,auth,mail}
|
|
|
|
}
|