summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-07-13 10:31:25 +0000
committerRoy Marples <uberlord@gentoo.org>2007-07-13 10:31:25 +0000
commitbb0db20735516dd4ad5f59b0a5a996ea8abdfa9d (patch)
treeb35eec8d33fa869af5e3196a3e5e58f1f8736e46 /app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild
parentVersion bump and cleanup old (diff)
downloadgentoo-2-bb0db20735516dd4ad5f59b0a5a996ea8abdfa9d.tar.gz
gentoo-2-bb0db20735516dd4ad5f59b0a5a996ea8abdfa9d.tar.bz2
gentoo-2-bb0db20735516dd4ad5f59b0a5a996ea8abdfa9d.zip
Don't hardcode paths, #185180.
(Portage version: 2.1.3_rc8)
Diffstat (limited to 'app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild')
-rw-r--r--app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild b/app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild
new file mode 100644
index 000000000000..da6a621438f6
--- /dev/null
+++ b/app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sysklogd/sysklogd-1.4.2_pre20061230-r2.ebuild,v 1.1 2007/07/13 10:31:25 uberlord Exp $
+
+inherit eutils flag-o-matic
+
+CVS_DATE=${PV#*_pre}
+MY_P=${PN}-1.4.1
+
+DESCRIPTION="Standard log daemons"
+HOMEPAGE="http://www.infodrom.org/projects/sysklogd/"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/daemons/${MY_P}.tar.gz
+ mirror://gentoo/${MY_P}-cvs-${CVS_DATE}.patch.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
+IUSE=""
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ sys-apps/debianutils"
+PROVIDE="virtual/logger"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${WORKDIR}"/${MY_P}-cvs-${CVS_DATE}.patch
+
+ epatch "${FILESDIR}"/${MY_P}-accept.patch
+ epatch "${FILESDIR}"/${MY_P}-querymod.patch
+ epatch "${FILESDIR}"/${MY_P}-punt-SO_BSDCOMPAT.patch
+ epatch "${FILESDIR}"/${MY_P}-ksym-headers.patch
+
+ # CAEN/OWL security patches
+ epatch "${FILESDIR}"/${MY_P}-caen-owl-syslogd-bind.diff
+ epatch "${FILESDIR}"/${MY_P}-caen-owl-syslogd-drop-root.diff
+ epatch "${FILESDIR}"/${MY_P}-caen-owl-klogd-drop-root.diff
+
+ append-lfs-flags
+ sed -i \
+ -e "s:-O3:${CFLAGS}:" \
+ Makefile || die "sed CFLAGS"
+}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ dosbin syslogd klogd "${FILESDIR}"/syslogd-listfiles || die "dosbin"
+ 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
+ newinitd "${FILESDIR}"/sysklogd.rc6 sysklogd
+ newconfd "${FILESDIR}"/sysklogd.confd sysklogd
+}