Subject: [alpine-aports] [PATCH] main/util-linux: add setpriv as sub-package

From: Assaf Gordon <[email-masked]>
Date: Fri, 28 Apr 2017 18:09:52 +0000

---
 main/util-linux/APKBUILD | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/main/util-linux/APKBUILD b/main/util-linux/APKBUILD
index 3f75880..91160fa 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=""
-- 
1.9.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---