summaryrefslogtreecommitdiff
path: root/sysklogd/Pkgfile
blob: 4f32aa031ea28a8fe6594a3fa95d886c96696c52 (plain)
    1 # Description: Kernel and system logging daemons
    2 # URL: https://github.com/troglobit/sysklogd
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 
    5 name=sysklogd
    6 version=2.4.4
    7 release=1
    8 source=(https://github.com/troglobit/sysklogd/releases/download/v$version/$name-$version.tar.gz \
    9 	rotatelog syslog syslog.conf sysklogd)
   10 
   11 build() {
   12 	cd $name-$version
   13 
   14 	./configure \
   15 		--prefix=/usr \
   16 		--sysconfdir=/etc \
   17 		--localstatedir=/var \
   18 		--runstatedir=/run \
   19 		--without-logger
   20 
   21 	make
   22 	make DESTDIR=$PKG install
   23 
   24 	install -d $PKG/etc/{cron/weekly,rc.d,syslog.d}
   25 	install -m 755 $SRC/rotatelog $PKG/usr/sbin
   26 	install -m 755 $SRC/syslog $PKG/etc/cron/weekly
   27 	install -m 644 $SRC/syslog.conf $PKG/etc
   28 	install -m 755 $SRC/sysklogd $PKG/etc/rc.d
   29 
   30 	install -d $PKG/var/log
   31 	touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
   32 	chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
   33 
   34 	rm -r $PKG/usr/share/doc
   35 }

Generated by cgit