CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed major update for Arch-Maintainer's email (all ports)
[crossrootfs.git] / sysklogd / Pkgfile
... / ...
CommitLineData
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
7name=sysklogd
8version=1.5
9release=4
10source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz \
11 rotatelog syslog syslog.conf sysklogd)
12
13build() {
14 cd $name-$version
15
16 # don't try to fclose(NULL)
17 sed -i -e '192d' ksym_mod.c
18
19 mkdir -p $PKG/usr/sbin \
20 $PKG/etc/{cron/weekly,rc.d} \
21 $PKG/var/log \
22 $PKG/usr/man/{man5,man8}
23
24 # no strip sysklogd and klogd binaries
25 sed -e 's|${INSTALL} -m 500 -s|${INSTALL} -m 500|' -i Makefile
26
27 make RPM_OPT_FLAGS="$CFLAGS" CC="$CC" all
28 make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/man install
29
30 install -m 755 $SRC/rotatelog $PKG/usr/sbin
31 install -m 755 $SRC/syslog $PKG/etc/cron/weekly
32 install -m 644 $SRC/syslog.conf $PKG/etc
33 install -m 755 $SRC/sysklogd $PKG/etc/rc.d
34
35 chmod -R +w $PKG
36 touch $PKG/var/log/{messages,auth,mail}
37 chmod 640 $PKG/var/log/{messages,auth,mail}
38}