sysklogd-1.5.1.ebuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit eutils flag-o-matic toolchain-funcs
  5. DEB_PV="1.5-6"
  6. DESCRIPTION="Standard log daemons"
  7. HOMEPAGE="http://www.infodrom.org/projects/sysklogd/"
  8. SRC_URI="http://www.infodrom.org/projects/sysklogd/download/${P}.tar.gz
  9. mirror://debian/pool/main/s/sysklogd/${PN}_${DEB_PV}.diff.gz"
  10. LICENSE="BSD"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
  13. IUSE="logrotate"
  14. RESTRICT="test"
  15. DEPEND=""
  16. RDEPEND="dev-lang/perl
  17. sys-apps/debianutils"
  18. src_prepare() {
  19. epatch "${WORKDIR}"/${PN}_${DEB_PV}.diff
  20. epatch "${FILESDIR}"/${PN}-1.5-debian-cron.patch
  21. epatch "${FILESDIR}"/${PN}-1.5-build.patch
  22. # CAEN/OWL security patches
  23. epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-bind.diff
  24. epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-drop-root.diff
  25. epatch "${FILESDIR}"/${PN}-1.4.2-caen-owl-klogd-drop-root.diff
  26. epatch "${FILESDIR}"/${PN}-1.5-syslog-func-collision.patch #342601
  27. }
  28. src_configure() {
  29. append-lfs-flags
  30. tc-export CC
  31. }
  32. src_install() {
  33. dosbin syslogd klogd debian/syslog-facility debian/syslogd-listfiles
  34. doman *.[1-9] debian/syslogd-listfiles.8
  35. insinto /etc
  36. doins debian/syslog.conf
  37. if use logrotate ; then
  38. insinto /etc/logrotate.d
  39. newins "${FILESDIR}"/sysklogd.logrotate sysklogd
  40. else
  41. exeinto /etc/cron.daily
  42. newexe debian/cron.daily syslog
  43. exeinto /etc/cron.weekly
  44. newexe debian/cron.weekly syslog
  45. fi
  46. dodoc ANNOUNCE CHANGES NEWS README.1st README.linux
  47. newinitd "${FILESDIR}"/sysklogd.rc7 sysklogd
  48. newconfd "${FILESDIR}"/sysklogd.confd sysklogd
  49. }