CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
automake: updated to 1.16.1
[crossrootfs.git] / sysklogd / Pkgfile
1 # Description: Kernel and system logging daemons
2 # URL: http://www.infodrom.org/projects/sysklogd/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on:
6
7 name=sysklogd
8 version=1.5.1
9 release=6
10 source=(http://www.infodrom.org/projects/$name/download/$name-$version.tar.gz \
11 rotatelog syslog syslog.conf sysklogd sysklogd.diff)
12
13 build() {
14 cd $name-$version
15
16 patch -p1 -i $SRC/sysklogd.diff
17
18 install -d $PKG/usr/sbin \
19 $PKG/etc/{cron/weekly,rc.d} \
20 $PKG/var/log \
21 $PKG/usr/share/man/{man5,man8}
22
23 # no strip sysklogd and klogd binaries
24 sed -e 's|${INSTALL} -m 500 -s|${INSTALL} -m 500|' -i Makefile
25
26 make RPM_OPT_FLAGS="$CFLAGS" CC="$CC" all
27 make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/share/man install
28
29 install -m 755 $SRC/rotatelog $PKG/usr/sbin
30 install -m 755 $SRC/syslog $PKG/etc/cron/weekly
31 install -m 644 $SRC/syslog.conf $PKG/etc
32 install -m 755 $SRC/sysklogd $PKG/etc/rc.d
33
34 chmod -R +w $PKG
35 touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
36 chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
37 }