Skip to content
Snippets Groups Projects
Commit c8e66939 authored by Mike Crute's avatar Mike Crute Committed by Rasmus Thomsen
Browse files

main/util-linux: build runuser

parent 31d8dc02
No related branches found
No related tags found
3 merge requests!11958community/rclone: upgrade to 1.52.3,!9763[3.12] community/znc: upgrade to 1.8.1,!8675main/util-linux: build runuser
...@@ -9,14 +9,14 @@ case $pkgver in ...@@ -9,14 +9,14 @@ case $pkgver in
*.*) _v=$pkgver;; *.*) _v=$pkgver;;
esac esac
pkgrel=0 pkgrel=1
pkgdesc="Random collection of Linux utilities" pkgdesc="Random collection of Linux utilities"
url="https://git.kernel.org/cgit/utils/util-linux/util-linux.git" url="https://git.kernel.org/cgit/utils/util-linux/util-linux.git"
arch="all" arch="all"
license="GPL-2.0 GPL-2.0-or-later LGPL-2.0-or-later BSD Public-Domain" license="GPL-2.0 GPL-2.0-or-later LGPL-2.0-or-later BSD Public-Domain"
depends="blkid setpriv findmnt mcookie hexdump lsblk sfdisk cfdisk" depends="blkid setpriv findmnt mcookie hexdump lsblk sfdisk cfdisk"
makedepends_build="autoconf automake libtool" makedepends_build="autoconf automake libtool"
makedepends_host="zlib-dev ncurses-dev linux-headers libcap-ng-dev" makedepends_host="zlib-dev ncurses-dev linux-headers libcap-ng-dev linux-pam-dev"
options="suid" options="suid"
source="https://www.kernel.org/pub/linux/utils/util-linux/v$_v/util-linux-$pkgver.tar.xz source="https://www.kernel.org/pub/linux/utils/util-linux/v$_v/util-linux-$pkgver.tar.xz
ttydefaults.h ttydefaults.h
...@@ -36,6 +36,7 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp:noarch ...@@ -36,6 +36,7 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp:noarch
mcookie:_mv_bin mcookie:_mv_bin
setpriv:_mv_bin setpriv:_mv_bin
sfdisk:_mv_bin sfdisk:_mv_bin
runuser:_mv_bin
" "
if [ -z "$BOOTSTRAP" ]; then if [ -z "$BOOTSTRAP" ]; then
makedepends_host="$makedepends_host python3-dev" makedepends_host="$makedepends_host python3-dev"
...@@ -60,6 +61,8 @@ build() { ...@@ -60,6 +61,8 @@ build() {
--host=$CHOST \ --host=$CHOST \
--with-sysroot=$CBUILDROOT \ --with-sysroot=$CBUILDROOT \
--prefix=/usr \ --prefix=/usr \
--enable-runuser \
--disable-chfn-chsh \
--enable-raw \ --enable-raw \
--disable-uuidd \ --disable-uuidd \
--disable-nls \ --disable-nls \
...@@ -88,6 +91,7 @@ _mv_bin() { ...@@ -88,6 +91,7 @@ _mv_bin() {
sfdisk) pkgdesc="Partition table manipulator from util-linux";; sfdisk) pkgdesc="Partition table manipulator from util-linux";;
cfdisk) pkgdesc="Curses based partition table manipulator from util-linux";; cfdisk) pkgdesc="Curses based partition table manipulator from util-linux";;
setpriv) pkgdesc="Run a program with different Linux privilege settings";; setpriv) pkgdesc="Run a program with different Linux privilege settings";;
runuser) pkgdesc="Run a program with substitute user and group ID";;
*);; *);;
esac esac
local _path; for _path in usr/bin usr/sbin bin sbin; do local _path; for _path in usr/bin usr/sbin bin sbin; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment