diff options
author | Adrian Perez de Castro | 2016-12-08 15:48:04 +0200 |
---|---|---|
committer | Adrian Perez de Castro | 2016-12-08 15:48:04 +0200 |
commit | d2f6b19887f2b86e6c61df65ebed58f96eff66bd (patch) | |
tree | 43fb98ab158e8618bb385a55cb9b0302ec2a896a /PKGBUILD | |
parent | c4e33f66b1120f218c99d65be8e96bc0b3d81360 (diff) | |
download | aur-d2f6b19887f2b86e6c61df65ebed58f96eff66bd.tar.gz |
Always make the binary setuid root
The capabilities mode has been removed upstream, see:
https://github.com/projectatomic/bubblewrap/commit/aedd6136b7bc1165c164330d02e729e0a95d2487
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -2,8 +2,8 @@ pkgname='bubblewrap-git' pkgdesc='Unprivileged sandboxing tool' url='https://github.com/projectatomic/bubblewrap' license=('LGPL') -pkgver=0.1.2.r1.g169db04 -pkgrel=3 +pkgver=v0.1.4.r7.ga188753 +pkgrel=1 arch=('x86_64' 'i686') makedepends=('autoconf' 'automake' 'libxslt') conflicts=('bubblewrap') @@ -12,16 +12,6 @@ source=("${pkgname}::git+${url}") sha512sums=('SKIP') install='bubblewrap.install' -_privmode='setuid' -_set_privmode () { - if [[ -r /proc/config.gz ]] ; then - eval "$(zgrep '^CONFIG_USER_NS=' /proc/config.gz)" - if [[ -n ${CONFIG_USER_NS} && ${CONFIG_USER_NS} != n ]] ; then - _privmode='caps' - fi - fi -} - pkgver () { cd "${pkgname}" ( @@ -37,14 +27,12 @@ prepare () { } build () { - _set_privmode cd "${pkgname}" - ./configure --prefix=/usr --with-bash-completion-dir=/usr/share/bash-completion --with-priv-mode=${_privmode} + ./configure --prefix=/usr --with-bash-completion-dir=/usr/share/bash-completion --with-priv-mode=setuid make } package () { - _set_privmode cd "${pkgname}" make install DESTDIR="${pkgdir}" } |