core/sysklogd/Pkgfile

30 lines
872 B
Plaintext
Raw Normal View History

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