ports/core (2.4): sysklogd: added rc-script provided by Brett Goulder
commit 4e1d6cf797c010029bb693f539372d9e44c55217 Author: Juergen Daubert <jue@jue.li> Date: Wed Oct 10 15:55:36 2007 +0200 sysklogd: added rc-script provided by Brett Goulder diff --git a/sysklogd/.footprint b/sysklogd/.footprint index 65963d1..d8c0ff9 100644 --- a/sysklogd/.footprint +++ b/sysklogd/.footprint @@ -2,6 +2,8 @@ drwxr-xr-x root/root etc/ drwxr-xr-x root/root etc/cron/ drwxr-xr-x root/root etc/cron/weekly/ -rwxr-xr-x root/root etc/cron/weekly/syslog +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/sysklogd -rw-r--r-- root/root etc/syslog.conf drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/man/ diff --git a/sysklogd/.md5sum b/sysklogd/.md5sum index 1bb10f0..054b144 100644 --- a/sysklogd/.md5sum +++ b/sysklogd/.md5sum @@ -1,4 +1,5 @@ b379693c8b89c99994e58efd49f98a71 rotatelog +a1bb71ed6b0ce791cb7f9fa0089a09ef sysklogd e053094e8103165f98ddafe828f6ae4b sysklogd-1.5.tar.gz bf5c13b44ab9fa15cda9bfa9df9b584e syslog 022ca2758664748ae096d57eac9ac555 syslog.conf diff --git a/sysklogd/Pkgfile b/sysklogd/Pkgfile index e786a7b..3758eff 100644 --- a/sysklogd/Pkgfile +++ b/sysklogd/Pkgfile @@ -4,9 +4,9 @@ name=sysklogd version=1.5 -release=2 +release=3 source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz \ - rotatelog syslog syslog.conf) + rotatelog syslog syslog.conf sysklogd) build() { cd $name-$version @@ -15,14 +15,18 @@ build() { sed -i -e '192d' ksym_mod.c mkdir -p $PKG/usr/sbin \ - $PKG/etc/cron/weekly \ - $PKG/var/log \ - $PKG/usr/man/{man5,man8} + $PKG/etc/{cron/weekly,rc.d} \ + $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 + + 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} chmod 640 $PKG/var/log/{messages,auth,mail} diff --git a/sysklogd/sysklogd b/sysklogd/sysklogd new file mode 100644 index 0000000..9d43d19 --- /dev/null +++ b/sysklogd/sysklogd @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/sysklogd: start/stop sysklogd logging daemons +# + +case $1 in +start) + /usr/sbin/syslogd + /usr/sbin/klogd -c 4 + ;; +stop) + /usr/bin/killall syslogd + /usr/bin/killall klogd + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac
participants (1)
-
crux@crux.nu