summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/security/policycoreutils/policycoreutils-2.6.exheres-056
1 files changed, 56 insertions, 0 deletions
diff --git a/packages/security/policycoreutils/policycoreutils-2.6.exheres-0 b/packages/security/policycoreutils/policycoreutils-2.6.exheres-0
new file mode 100644
index 0000000..d11c8e5
--- /dev/null
+++ b/packages/security/policycoreutils/policycoreutils-2.6.exheres-0
@@ -0,0 +1,56 @@
+# Copyright 2016 Julien Pivotto <roidelapluie@inuits.eu>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ user=SELinuxProject tag="${PNV}" pn=selinux ]
+require python [ blacklist=none multibuild=false ]
+
+SUMMARY="Core utilities required to operate a SElinux Linux system and its policies"
+DESCRIPTION="This package includes tools like load_policy to load policies, setfiles,
+newrole and other essential SELinux tools."
+
+BUGS_TO="roidelapluie@inuits.eu"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS=""
+
+DEPENDENCIES="
+ build+run:
+ app-admin/audit
+ dev-libs/dbus-glib:1
+ dev-libs/glib:2
+ security/libselinux[~${PV}][python][python_abis:*(-)?]
+ security/libsemanage[~${PV}]
+ security/libsepol[~${PV}]
+ security/setools:3
+ sys-apps/dbus
+ sys-libs/libcap-ng
+ sys-libs/pam
+"
+
+DEFAULT_SRC_INSTALL_PARAMS=(
+ PREFIX="${IMAGE}/usr/$(exhost --target)"
+ LIBDIR="${IMAGE}/usr/$(exhost --target)/lib"
+ SBINDIR="${IMAGE}/usr/$(exhost --target)/bin"
+ USRSBINDIR="${IMAGE}/usr/$(exhost --target)/bin"
+ BINDIR="${IMAGE}/usr/$(exhost --target)/bin"
+ BINDIR="${IMAGE}/usr/$(exhost --target)/libexec"
+ DATADIR="${IMAGE}/usr/share"
+ MANDIR="${IMAGE}/usr/share/man"
+ SHAREDIR="${IMAGE}/usr/share/sandbox"
+ SYSTEMDDIR="${IMAGE}/usr/$(exhost --target)/lib/systemd"
+)
+
+WORK="${WORKBASE}/selinux-${PNV}/${PN}"
+
+src_install(){
+ default
+
+ edo rm "${IMAGE}"/etc/sysconfig/sandbox
+ edo rmdir "${IMAGE}"/etc/sysconfig
+ edo rm "${IMAGE}"/etc/rc.d/init.d/restorecond
+ edo rmdir "${IMAGE}"/etc/rc.d/init.d
+ edo rmdir "${IMAGE}"/etc/rc.d
+}
+