apparmor-profiles-2.11.0.ebuild 636 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit versionator
  5. MY_PV="$(get_version_component_range 1-2)"
  6. DESCRIPTION="A collection of profiles for the AppArmor application security system"
  7. HOMEPAGE="http://apparmor.net/"
  8. SRC_URI="https://launchpad.net/apparmor/${MY_PV}/${MY_PV}/+download/apparmor-${PV}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64"
  12. IUSE="minimal"
  13. RESTRICT="test"
  14. S=${WORKDIR}/apparmor-${PV}/profiles
  15. src_install() {
  16. if use minimal ; then
  17. insinto /etc/apparmor.d
  18. doins -r apparmor.d/{abstractions,tunables}
  19. else
  20. default
  21. fi
  22. }