core/sysklogd/Pkgfile

33 lines
1016 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
2014-10-16 17:59:40 +02:00
version=1.5.1
2016-08-27 17:14:36 +02:00
release=6
2014-10-16 17:59:40 +02:00
source=(http://www.infodrom.org/projects/$name/download/$name-$version.tar.gz \
2016-03-06 21:30:46 +01:00
sysklogd.diff rotatelog syslog syslog.conf sysklogd)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2016-03-06 21:30:46 +01:00
patch -p1 -i $SRC/sysklogd.diff
install -d $PKG/usr/sbin \
$PKG/etc/{cron/weekly,rc.d} \
$PKG/var/log \
$PKG/usr/share/man/{man5,man8}
2006-02-23 16:26:10 +01:00
make RPM_OPT_FLAGS="$CFLAGS" all
make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/share/man install
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 16:26:10 +01:00
chmod -R +w $PKG
touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
2006-02-23 16:26:10 +01:00
}