12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # Copyright 1999-2014 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI="4"
- inherit eutils flag-o-matic toolchain-funcs
- DEB_PV="1.5-6"
- DESCRIPTION="Standard log daemons"
- HOMEPAGE="http://www.infodrom.org/projects/sysklogd/"
- SRC_URI="http://www.infodrom.org/projects/sysklogd/download/${P}.tar.gz
- mirror://debian/pool/main/s/sysklogd/${PN}_${DEB_PV}.diff.gz"
- LICENSE="BSD"
- SLOT="0"
- KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
- IUSE="logrotate"
- RESTRICT="test"
- DEPEND=""
- RDEPEND="dev-lang/perl
- sys-apps/debianutils"
- src_prepare() {
- epatch "${WORKDIR}"/${PN}_${DEB_PV}.diff
- epatch "${FILESDIR}"/${PN}-1.5-debian-cron.patch
- epatch "${FILESDIR}"/${PN}-1.5-build.patch
- # CAEN/OWL security patches
- epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-bind.diff
- epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-drop-root.diff
- epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-klogd-drop-root.diff
- epatch "${FILESDIR}"/${PN}-1.5-syslog-func-collision.patch #342601
- }
- src_configure() {
- append-lfs-flags
- tc-export CC
- }
- src_install() {
- dosbin syslogd klogd debian/syslog-facility debian/syslogd-listfiles
- doman *.[1-9] debian/syslogd-listfiles.8
- insinto /etc
- doins debian/syslog.conf
- if use logrotate ; then
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/sysklogd.logrotate sysklogd
- else
- exeinto /etc/cron.daily
- newexe debian/cron.daily syslog
- exeinto /etc/cron.weekly
- newexe debian/cron.weekly syslog
- fi
- dodoc ANNOUNCE CHANGES NEWS README.1st README.linux
- newinitd "${FILESDIR}"/sysklogd.rc7 sysklogd
- newconfd "${FILESDIR}"/sysklogd.confd sysklogd
- }
|