Added sysklogd-1.5 template.

--HG--
extra : convert_revision : 82ed229ee3c970417199eea98e6a8a8bd62e216d
This commit is contained in:
Juan RP 2008-10-25 03:39:51 +02:00
parent 6d1cbcf4d1
commit fec919b806
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,33 @@
Do not hardcode path to install, install into /sbin, do not hardcode
root user for installing manpages.
--- Makefile.orig 2008-10-25 03:36:32.000000000 +0200
+++ Makefile 2008-10-25 03:37:38.000000000 +0200
@@ -27,10 +27,10 @@ SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fo
LDFLAGS= -s
# Look where your install program is.
-INSTALL = /usr/bin/install
+INSTALL = install
# Destination paths, set prefix=/opt if required
-BINDIR = $(prefix)/usr/sbin
+BINDIR = $(prefix)/sbin
MANDIR = $(prefix)/usr/share/man
# There is one report that under an all ELF system there may be a need to
@@ -131,10 +131,10 @@ install_exec: syslogd klogd
${INSTALL} -m 500 -s klogd ${BINDIR}/klogd
install_man:
- ${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} sysklogd.8 ${MANDIR}/man8/sysklogd.8
- ${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} syslogd.8 ${MANDIR}/man8/syslogd.8
- ${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} syslog.conf.5 ${MANDIR}/man5/syslog.conf.5
- ${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} klogd.8 ${MANDIR}/man8/klogd.8
+ ${INSTALL} -m ${MAN_PERMS} sysklogd.8 ${MANDIR}/man8/sysklogd.8
+ ${INSTALL} -m ${MAN_PERMS} syslogd.8 ${MANDIR}/man8/syslogd.8
+ ${INSTALL} -m ${MAN_PERMS} syslog.conf.5 ${MANDIR}/man5/syslog.conf.5
+ ${INSTALL} -m ${MAN_PERMS} klogd.8 ${MANDIR}/man8/klogd.8
obj-m += oops.o

30
templates/sysklogd.tmpl Normal file
View file

@ -0,0 +1,30 @@
# Template file for 'sysklogd'
pkgname=sysklogd
version=1.5
patch_files="$pkgname-fix-install.diff"
distfiles="
http://www.infodrom.org/projects/sysklogd/download/$pkgname-$version@.tar.gz"
build_style=gnu_makefile
make_install_target="prefix=$XBPS_DESTDIR/$pkgname-$version install"
short_desc="Kernel and system logging daemons"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=6169b8e91d29288e90404f01462b69e7f2afb1161aa419826fe4736c7f9eb773
long_desc="
This package implements two system log daemons. The syslogd daemon is an
enhanced version of the standard Berkeley utility program. This daemon is
responsible for providing logging of messages received from programs and
facilities on the local host as well as from remote hosts.
The klogd daemon listens to kernel message sources and is responsible for
prioritizing and processing operating system messages. The klogd daemon can
run as a client of syslogd or optionally as a standalone program.
Klogd can now be used to decode EIP addresses if it can determine a
System.map file."
run_depends="glibc-2.8"
# Make directories before installing, as Makefile doesn't do this!
run_stuff_before_install_cmd="
mkdir -p $XBPS_DESTDIR/$pkgname-$version/usr/share/man/man8
mkdir -p $XBPS_DESTDIR/$pkgname-$version/usr/share/man/man5
mkdir -p $XBPS_DESTDIR/$pkgname-$version/sbin"