diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-04-19 16:07:30 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-04-19 16:20:15 +0200 |
commit | 3938c00030d1b6e4074e55a4dd880bd44851f2dc (patch) | |
tree | 5975ef912a77f273919d6b09133c9ef3acaa309d /pcr/selinux-python | |
parent | 6330364772571bf94ed137d23c3d5d8efc224372 (diff) | |
download | abslibre-3938c00030d1b6e4074e55a4dd880bd44851f2dc.tar.gz abslibre-3938c00030d1b6e4074e55a4dd880bd44851f2dc.tar.bz2 abslibre-3938c00030d1b6e4074e55a4dd880bd44851f2dc.zip |
pcr: Add selinux-python from Aur
This finally brings the 'audit2allow' command to Parabola.
That command is commonly used to work with selinux policies.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/selinux-python')
-rw-r--r-- | pcr/selinux-python/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/selinux-python/PKGBUILD b/pcr/selinux-python/PKGBUILD new file mode 100644 index 000000000..0489d5573 --- /dev/null +++ b/pcr/selinux-python/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer (AUR): Nicolas Iooss (nicolas <dot> iooss <at> m4x <dot> org) + +# parabola changes and rationale: +# - Added armv7h + +pkgname=selinux-python +pkgver=3.2 +pkgrel=1 +pkgdesc="SELinux python tools and libraries" +groups=('selinux') +arch=('i686' 'x86_64') +arch+=('armv7h') +url='https://github.com/SELinuxProject/selinux/wiki' +license=('GPL2') +depends=('python' 'python-audit' 'python-ipy' 'libsemanage>=3.2' 'setools>=4.4.0') +conflicts=('sepolgen<2.7' 'policycoreutils<2.7') +provides=("sepolgen=${pkgver}-${pkgrel}") +source=("https://github.com/SELinuxProject/selinux/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('770855ea8120ef23007fdb9db94b1ed6e8cd77917b584ed8877bbee9c16e74fb') + +build() { + cd "${pkgbase}-${pkgver}" + make PYTHON=/usr/bin/python3 +} + +package() { + cd "${pkgbase}-${pkgver}" + make PYTHON=/usr/bin/python3 DESTDIR="${pkgdir}" SBINDIR=/usr/bin install + /usr/bin/python3 -m compileall "${pkgdir}/$(/usr/bin/python3 -c 'import site; print(site.getsitepackages()[0])')" +} |