summaryrefslogtreecommitdiffstats
path: root/sysklogd/Pkgfile
blob: ff1051eb3b0f44969420bee76fc2e7a641f19120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
description="Kernel and system logging daemons."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.infodrom.org/projects/sysklogd/"
depends=()

name=sysklogd
version=1.5
release=4
source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz rotatelog syslog syslog.conf sysklogd)
build () 
{ 
	cd $name-$version;
	sed -i -e '192d' ksym_mod.c;
	mkdir -p $PKG/usr/sbin $PKG/etc/{cron/weekly,rc.d} $PKG/var/log $PKG$mandir/{man5,man8};
	make ${CHOST:+CC=$CHOST-gcc STRIP=$CHOST-strip} RPM_OPT_FLAGS="$CFLAGS" all;
	make BINDIR=$PKG/usr/sbin MANDIR=$PKG$mandir 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;
	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}
}