mktwpol-0.2.5.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. DESCRIPTION="Bash scripts to install tripwire and generate tripwire policy files"
  5. HOMEPAGE="https://sourceforge.net/projects/mktwpol"
  6. SRC_URI="mirror://sourceforge/mktwpol/${P}.tar.gz"
  7. LICENSE="CC-BY-SA-3.0"
  8. SLOT="0"
  9. KEYWORDS="amd64 ppc x86 ~x86-fbsd"
  10. IUSE=""
  11. RDEPEND="app-admin/tripwire"
  12. src_prepare() {
  13. sed -i -e 's|/usr/local|/usr|' Makefile || die
  14. }
  15. src_install() {
  16. emake DESTDIR="${D}" install
  17. }
  18. pkg_postinst() {
  19. elog
  20. elog "Installation and setup of tripwire ..."
  21. elog " - Run: \`twsetup.sh\`"
  22. elog
  23. elog "Maintenance of tripwire as packages are added and/or deleted ..."
  24. elog " - Run: \`mktwpol.sh -u\` to update tripwire policy and database"
  25. elog
  26. elog "Mktwpol is packaged with multiple policy-rules-generating files."
  27. elog "The default \"rules file\" is installed in /etc/tripwire"
  28. elog "Alternatives are installed in /usr/share/doc/${P}"
  29. elog "To use an alternative \"rules file\" ..."
  30. elog "copy it to /etc/tripwire, uncompress it, and \`touch\` it ..."
  31. elog
  32. elog "\`cp /usr/share/doc/${P}/mktwpol*.rules.bz2 /etc/tripwire\`"
  33. elog "\`bunzip2 /etc/tripwire/mktwpol*.rules.bz2\`"
  34. elog
  35. elog "mktwpol.sh uses the rules file with the most recent date."
  36. elog "Use \`touch\` to choose between multiple rules files."
  37. elog
  38. }