summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTimothée Ravier2014-01-16 00:22:14 +0100
committerTimothée Ravier2014-01-16 00:24:44 +0100
commit110c5c57896556a3c6c60040994c918d2230e001 (patch)
tree29c00a1218755d25c81438ade67f2dfec4b69bab /PKGBUILD
parent85960094fb2834312bfa2c30ce1803c9195d518a (diff)
downloadaur-110c5c57896556a3c6c60040994c918d2230e001.tar.gz
libselinux 2.2.2-1 update
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 32 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e87dcbc57bb..12c3a8eb726 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,35 @@
# Contributor: Sergej Pupykin (pupykin <dot> s+arch <at> gmail <dot> com)
pkgname=libselinux
-pkgver=2.2
+pkgver=2.2.2
pkgrel=1
pkgdesc="SELinux library and simple utilities"
arch=('i686' 'x86_64')
url='http://userspace.selinuxproject.org'
license=('GPL')
groups=('selinux')
-depends=('libsepol>=2.2' 'python2' 'python' 'swig' 'ruby')
+makedepends=('python2' 'python' 'ruby' 'xz' 'pcre')
+depends=('libsepol')
+optdepends=('python2: python2 bindings'
+ 'python: python bindings'
+ 'ruby: ruby bindings')
conflicts=("selinux-usr-${pkgname}")
provides=("selinux-usr-${pkgname}=${pkgver}-${pkgrel}")
options=(!emptydirs)
-source=("http://userspace.selinuxproject.org/releases/20131030/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('e9dc64216543a7283d786f623ac28e8867f8794138e7deba474a3aa8d02dce33')
+source=("http://userspace.selinuxproject.org/releases/20131030/${pkgname}-${pkgver}.tar.gz"
+ "http://pkgs.fedoraproject.org/cgit/libselinux.git/plain/libselinux-rhat.patch"
+ "http://pkgs.fedoraproject.org/cgit/libselinux.git/plain/selinuxdefcon.8"
+ "http://pkgs.fedoraproject.org/cgit/libselinux.git/plain/selinuxconlist.8"
+ "libselinux.tmpfiles.d")
+sha256sums=('30ab363416806da907b86b97f1d31c252473e3200358bb1570f563c8312b5a3e'
+ 'd60265f59b7fca51724e401f0ff4d1bbb9ad790ba9595ed4534942b286a7a1e4'
+ 'ddfbbc31f2eb107b12d2c949612b997ff7dc86aff78019493b0a3a894ff65e29'
+ 'df5e0b3258df0953242b19bf1712e0c9bee53badfcab9a91071c915d3edd2098'
+ 'afe23890fb2e12e6756e5d81bad3c3da33f38a95d072731c0422fbeb0b1fa1fc')
prepare() {
cd ${pkgname}-${pkgver}
+ patch -p2 < ../libselinux-rhat.patch
sed -i 's|pkg-config --cflags ruby|pkg-config --cflags ruby-2.0|' src/Makefile
sed -i 's|site_ruby|vendor_ruby|' src/Makefile
}
@@ -39,6 +52,21 @@ package(){
make DESTDIR="${pkgdir}" LIBDIR="${pkgdir}"/usr/lib SHLIBDIR="${pkgdir}"/usr/lib PYTHON=python3 install-pywrap
make DESTDIR="${pkgdir}" LIBDIR="${pkgdir}"/usr/lib SHLIBDIR="${pkgdir}"/usr/lib install-rubywrap
+ install -Dm 0644 "${srcdir}"/libselinux.tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/libselinux.conf
+ install -dm 0755 "${pkgdir}"/usr/share/man/man8/
+ install -m 0644 "${srcdir}"/selinux{defcon,conlist}.8 "${pkgdir}"/usr/share/man/man8/
+
+ # Rename those to match Fedora's names
+ cd "${pkgdir}"/usr/sbin/
+ mv getdefaultcon selinuxdefcon
+ mv getconlist selinuxconlist
+
+ # Those are removed in Fedora
+ cd "${pkgdir}"/usr/sbin/
+ rm compute_* getfilecon getpidcon policyvers setfilecon togglesebool \
+ selinux_check_securetty_context
+ rm "${pkgdir}"/usr/share/man/man8/togglesebool.8
+
# /usr/lib/libselinux.so fix
cd "${pkgdir}"/usr/lib
rm libselinux.so