sysklogd-1.5.1-r1.ebuild 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  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. DOCS=( ANNOUNCE CHANGES NEWS README.1st README.linux )
  19. PATCHES=(
  20. "${WORKDIR}"/${PN}_${DEB_PV}.diff
  21. "${FILESDIR}"/${PN}-1.5-debian-cron.patch
  22. "${FILESDIR}"/${PN}-1.5-build.patch
  23. # CAEN/OWL security patches
  24. "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-bind.diff
  25. "${FILESDIR}"/${PN}-1.4.2-caen-owl-syslogd-drop-root.diff
  26. "${FILESDIR}"/${PN}-1.4.2-caen-owl-klogd-drop-root.diff
  27. "${FILESDIR}"/${PN}-1.5-syslog-func-collision.patch #342601
  28. "${FILESDIR}"/${PN}-1.5-glibc-2.24.patch #604232
  29. )
  30. src_prepare() {
  31. epatch "${PATCHES[@]}"
  32. }
  33. src_configure() {
  34. append-lfs-flags
  35. tc-export CC
  36. }
  37. src_install() {
  38. dosbin syslogd klogd debian/syslog-facility debian/syslogd-listfiles
  39. doman *.[1-9] debian/syslogd-listfiles.8
  40. insinto /etc
  41. doins debian/syslog.conf
  42. if use logrotate ; then
  43. insinto /etc/logrotate.d
  44. newins "${FILESDIR}"/sysklogd.logrotate sysklogd
  45. else
  46. exeinto /etc/cron.daily
  47. newexe debian/cron.daily syslog
  48. exeinto /etc/cron.weekly
  49. newexe debian/cron.weekly syslog
  50. fi
  51. einstalldocs
  52. newinitd "${FILESDIR}"/sysklogd.rc7 sysklogd
  53. newconfd "${FILESDIR}"/sysklogd.confd sysklogd
  54. }