2006-02-23 15:26:10 +00:00
|
|
|
# Description: Kernel and system logging daemons
|
2019-12-07 12:49:03 +01:00
|
|
|
# URL: https://github.com/troglobit/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
|
2020-03-24 12:48:20 +01:00
|
|
|
version=2.1.2
|
2020-01-20 12:31:34 +01:00
|
|
|
release=1
|
2019-12-07 12:49:03 +01:00
|
|
|
source=(https://github.com/troglobit/sysklogd/releases/download/v$version/$name-$version.tar.gz \
|
|
|
|
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
|
|
|
|
2019-12-07 12:49:03 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--without-logger \
|
2016-03-06 14:30:46 -06:00
|
|
|
|
2020-01-20 12:31:34 +01:00
|
|
|
make
|
2019-12-07 12:49:03 +01:00
|
|
|
make DESTDIR=$PKG install
|
2007-10-10 15:55:36 +02:00
|
|
|
|
2020-01-06 15:48:25 +01:00
|
|
|
install -d $PKG/etc/{cron/weekly,rc.d,syslog.d}
|
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
|
|
|
|
|
2019-12-07 12:49:03 +01:00
|
|
|
install -d $PKG/var/log
|
2010-06-03 10:44:52 +00:00
|
|
|
touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
|
|
|
|
chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
|
2019-12-07 12:49:03 +01:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/doc
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|