summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2004-07-24 21:38:37 +0000
committerMartin Schlemmer <azarah@gentoo.org>2004-07-24 21:38:37 +0000
commite97189151ede339e629c5bb1cdd2fae3dd9f6239 (patch)
tree5c1f106bdf4539f9692ad0bf83d5115e8276446b /app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild
parentlets give zope2.7 a try in the real world :) (diff)
downloadgentoo-2-e97189151ede339e629c5bb1cdd2fae3dd9f6239.tar.gz
gentoo-2-e97189151ede339e629c5bb1cdd2fae3dd9f6239.tar.bz2
gentoo-2-e97189151ede339e629c5bb1cdd2fae3dd9f6239.zip
Update rc-script to have output similar to samba, and improve daemon return
handling. Also retry on syslogd, as its stubborn in some cases ...
Diffstat (limited to 'app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild')
-rw-r--r--app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild b/app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild
new file mode 100644
index 000000000000..ad7b045711c0
--- /dev/null
+++ b/app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sysklogd/sysklogd-1.4.1-r11.ebuild,v 1.1 2004/07/24 21:38:37 azarah Exp $
+
+inherit eutils
+
+DESCRIPTION="Standard log daemons"
+HOMEPAGE="http://www.infodrom.org/projects/sysklogd/"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/daemons/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="x86 ppc sparc mips alpha hppa amd64 ia64 ppc64 s390"
+IUSE=""
+
+DEPEND="virtual/libc"
+RDEPEND="dev-lang/perl sys-apps/debianutils"
+PROVIDE="virtual/logger"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ sed -i "s:-O3:${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE:" Makefile
+
+ # Handle SO_BSDCOMPAT being depricated in 2.5+ kernels.
+ cd ${S}; epatch ${FILESDIR}/${P}-SO_BSDCOMPAT.patch
+ cd ${S}; epatch ${FILESDIR}/${P}-2.6.headers.patch
+
+ if [ "${ARCH}" = "mips" ]
+ then
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-1.4.1-mips.patch
+ fi
+}
+
+src_compile() {
+ emake LDFLAGS="" || die
+}
+
+src_install() {
+ dosbin syslogd klogd ${FILESDIR}/syslogd-listfiles
+ doman *.[1-9] ${FILESDIR}/syslogd-listfiles.8
+ exeinto /etc/cron.daily
+ newexe ${FILESDIR}/syslog-cron syslog.cron
+ dodoc ANNOUNCE CHANGES MANIFEST NEWS README.1st README.linux
+ dodoc ${FILESDIR}/syslog.conf
+ insinto /etc
+ doins ${FILESDIR}/syslog.conf
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/sysklogd.rc6 sysklogd
+ insinto /etc/conf.d
+ newins ${FILESDIR}/sysklogd.confd sysklogd
+}