summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Julien Pivotto <roidelapluie@inuits.eu> 2016-05-21 22:25:12 +0200
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2016-05-26 11:48:59 +0200
commita35c0cd1b4a2a032c47805cc359953e165ec7277 (patch)
tree6023934dd51a0bf7acc26bce4225ad4653ee2af6
parent74d42d92cc6f0687c96c655a5468604fd06e4793 (diff)
downloadselinux-a35c0cd1b4a2a032c47805cc359953e165ec7277.tar.gz
selinux-a35c0cd1b4a2a032c47805cc359953e165ec7277.tar.xz
Add audit
Change-Id: I682f79e30a0095a7202543b8962dc4139ddeb3c3 Reviewed-on: https://galileo.mailstation.de/gerrit/5968 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Wulf C. Krueger <philantrop@exherbo.org>
-rw-r--r--packages/app-admin/audit/audit-2.5.2.exheres-095
1 files changed, 95 insertions, 0 deletions
diff --git a/packages/app-admin/audit/audit-2.5.2.exheres-0 b/packages/app-admin/audit/audit-2.5.2.exheres-0
new file mode 100644
index 0000000..b6c6c09
--- /dev/null
+++ b/packages/app-admin/audit/audit-2.5.2.exheres-0
@@ -0,0 +1,95 @@
+# Copyright 2016 Julien Pivotto <roidelapluie@inuits.eu>
+# Distributed under the terms of the GNU General Public License v2
+# Based in part upon 'libpeas-1.18.0.exheres-0', which is:
+# Copyright 2010 Saleem Abdulrasool <compnerd@compnerd.org>
+
+require systemd-service
+
+SUMMARY="User space tools for kernel auditing"
+DESCRIPTION="The audit package contains the user space utilities for storing
+and searching the audit records generate by the audit subsystem in the Linux
+2.6 kernel."
+HOMEPAGE="http://people.redhat.com/sgrubb/${PN}/"
+DOWNLOADS="${HOMEPAGE}/${PNV}.tar.gz"
+
+BUGS_TO="roidelapluie@inuits.eu"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64"
+
+PYTHON2_SUP="2.7"
+PYTHON3_SUP="3.2 3.3 3.4 3.5"
+PYTHON2_DEP="[>=2.5.2]"
+PYTHON3_DEP="[>=3.2.0]"
+
+MYOPTIONS="
+ libcap-ng
+ python
+ python? (
+ python_abis: ( ${PYTHON2_SUP} ${PYTHON3_SUP} ) [[ number-selected = at-least-one ]]
+ python_abis: ( ${PYTHON2_SUP} ) [[ number-selected = at-most-one ]]
+ python_abis: ( ${PYTHON3_SUP} ) [[ number-selected = at-most-one ]]
+ )
+"
+
+python_dependencies() {
+ for so in ${PYTHON2_SUP}; do
+ echo "python_abis:${so}? ( dev-lang/python:${so}${PYTHON2_DEP} )"
+ done
+ for so in ${PYTHON3_SUP}; do
+ echo "python_abis:${so}? ( dev-lang/python:${so}${PYTHON3_DEP} )"
+ done
+}
+
+DEPENDENCIES="
+ build:
+ dev-lang/swig
+ sys-kernel/linux-headers[>=2.6.30]
+ build+run:
+ net-directory/openldap
+ libcap-ng? ( sys-libs/libcap-ng )
+ python? (
+ $(python_dependencies)
+ )
+"
+
+DEFAULT_SRC_COMPILE_PARAMS=( CC_FOR_BUILD="$(exhost --build)-cc" )
+
+DEFAULT_SRC_INSTALL_PARAMS=( CC_FOR_BUILD="$(exhost --build)-cc" initdir="${SYSTEMDSYSTEMUNITDIR}" )
+
+src_configure(){
+ PYTHON_OPTIONS=()
+ if optionq python; then
+ for so in ${PYTHON2_SUP}; do
+ optionq python_abis:${so} && PYTHON2_SO=${so}
+ done
+ if [[ -n ${PYTHON2_SO} ]]; then
+ PYTHON_OPTIONS+=(
+ '--with-python'
+ "PYTHON=/usr/$(exhost --target)/bin/python${PYTHON2_SO}"
+ )
+ else
+ PYTHON_OPTIONS+=( '--without-python' )
+ fi
+
+ for so in ${PYTHON3_SUP}; do
+ optionq python_abis:${so} && PYTHON3_SO=${so}
+ done
+ if [[ -n ${PYTHON3_SO} ]]; then
+ PYTHON_OPTIONS+=(
+ '--with-python3'
+ "PYTHON3=/usr/$(exhost --target)/bin/python${PYTHON3_SO}"
+ )
+ else
+ PYTHON_OPTIONS+=( '--without-python3' )
+ fi
+ else
+ PYTHON_OPTIONS+=( '--without-python3' '--without-python' )
+ fi
+
+ CC_FOR_BUILD="$(exhost --build)-cc" econf --enable-systemd \
+ $(option_with libcap-ng) \
+ "${PYTHON_OPTIONS[@]}"
+}
+