diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2017-04-28 18:09:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-11 01:56:05 +0000 |
commit | 5fafd50b76e9a7302e9a576c3f6c654fe370ac42 (patch) | |
tree | fa48978b1ce9d03839f8d9d2fb2bd9fbc2787ac2 /main/util-linux | |
parent | 3204f81df925cb920e5eec0d661a7b853701667a (diff) | |
download | aports-5fafd50b76e9a7302e9a576c3f6c654fe370ac42.tar.bz2 aports-5fafd50b76e9a7302e9a576c3f6c654fe370ac42.tar.xz |
main/util-linux: add setpriv as sub-package
Diffstat (limited to 'main/util-linux')
-rw-r--r-- | main/util-linux/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/main/util-linux/APKBUILD b/main/util-linux/APKBUILD index 3f75880b99..91160fafdc 100644 --- a/main/util-linux/APKBUILD +++ b/main/util-linux/APKBUILD @@ -17,7 +17,7 @@ license="GPL2 GPL2+ LGPL2+ BSD Public Domain" depends="findmnt" # use GNU sed til bb sed is fixed. Also GNU tar is needed makedepends_build="sed tar autoconf automake libtool" -makedepends_host="zlib-dev ncurses-dev linux-headers" +makedepends_host="zlib-dev ncurses-dev linux-headers libcap-ng-dev" install= options="suid" source="http://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.tar.xz @@ -26,7 +26,7 @@ source="http://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.t " subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp:noarch libuuid libblkid libmount libsmartcols libfdisk sfdisk cfdisk - findmnt:_findmnt mcookie blkid" + findmnt:_findmnt mcookie blkid setpriv" if [ -z "$BOOTSTRAP" ]; then makedepends_host="$makedepends_host ncurses-dev python2-dev" subpackages="$subpackages py-libmount:_py" @@ -155,6 +155,13 @@ mcookie() { mv "$pkgdir"/usr/bin/mcookie "$subpkgdir"/usr/bin/ } +setpriv() { + pkgdesc="Run a program with different Linux privilege settings" + replaces="util-linux-ng" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/setpriv "$subpkgdir"/usr/bin/ +} + _findmnt() { pkgdesc="findmnt from util-linux" replaces="" |