mktwpol-0.2.6.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  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. default
  14. sed -i -e 's|/usr/local|/usr|' Makefile || die
  15. }
  16. pkg_postinst() {
  17. elog
  18. elog "Installation and setup of tripwire ..."
  19. elog " - Run: \`twsetup.sh\`"
  20. elog
  21. elog "Maintenance of tripwire as packages are added and/or deleted ..."
  22. elog " - Run: \`mktwpol.sh -u\` to update tripwire policy and database"
  23. elog
  24. elog "Mktwpol is packaged with multiple policy-rules-generating files."
  25. elog "The default \"rules file\" is installed in /etc/tripwire"
  26. elog "Alternatives are installed in /usr/share/doc/${P}"
  27. elog "To use an alternative \"rules file\" ..."
  28. elog "copy it to /etc/tripwire, uncompress it, and \`touch\` it ..."
  29. elog
  30. elog "\`cp /usr/share/doc/${P}/mktwpol*.rules.bz2 /etc/tripwire\`"
  31. elog "\`bunzip2 /etc/tripwire/mktwpol*.rules.bz2\`"
  32. elog
  33. elog "mktwpol.sh uses the rules file with the most recent date."
  34. elog "Use \`touch\` to choose between multiple rules files."
  35. elog
  36. }