Browse Source

[sys-process/audit] fix my last commit

master
Robert Förster 5 years ago
parent
commit
48ccdd04f0
  1. 9
      sys-process/audit/audit-2.7.1.ebuild

9
sys-process/audit/audit-2.7.1.ebuild

@ -15,6 +15,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="apparmor gssapi ldap python static-libs tcpd"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
# Testcases are pretty useless as they are built for RedHat users/groups and kernels.
RESTRICT="test"
@ -22,15 +23,13 @@ RDEPEND="apparmor? ( sys-apps/apparmor )
gssapi? ( virtual/krb5 )
ldap? ( net-nds/openldap )
tcpd? ( sys-apps/tcp-wrappers )
sys-libs/libcap-ng"
python? ( ${PYTHON_DEPS} )
sys-libs/libcap-ng
python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}
>=sys-kernel/linux-headers-2.6.34
python? ( dev-lang/swig:0 )"
# Do not use os-headers as this is linux specific
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
CONFIG_CHECK="~AUDIT"
pkg_setup() {
@ -227,7 +226,7 @@ pkg_postinst() {
lockdown_perms() {
# Upstream wants these to have restrictive perms.
# should not || die, as not all paths may exist.
# Should not || die as not all paths may exist.
local basedir="$1"
chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null
chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null

Loading…
Cancel
Save