diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-08 10:37:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-08 10:38:22 +0000 |
commit | 4c74291c6d7d5805b868458332db386cb0f79c84 (patch) | |
tree | 678a7b878319c7189520e56ac11370b4b427462b /testing | |
parent | 0b6c443bd50eefe4732e17d8a6481e90cb6bf3f7 (diff) | |
download | aports-4c74291c6d7d5805b868458332db386cb0f79c84.tar.bz2 aports-4c74291c6d7d5805b868458332db386cb0f79c84.tar.xz |
testing/su-exec: new aport
switch user and group id, setgroups and exec
https://github.com/ncopa/su-exec
Diffstat (limited to 'testing')
-rw-r--r-- | testing/su-exec/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/su-exec/APKBUILD b/testing/su-exec/APKBUILD new file mode 100644 index 0000000000..0a15fafed7 --- /dev/null +++ b/testing/su-exec/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=su-exec +pkgver=0.1 +pkgrel=0 +pkgdesc="switch user and group id, setgroups and exec" +url="https://github.com/ncopa/su-exec" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="su-exec-$pkgver.tar.gz::https://github.com/ncopa/su-exec/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/su-exec-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + install -D su-exec "$pkgdir"/sbin/su-exec || return 1 +} + +md5sums="e11784db3e41f769b805d0f284686d72 su-exec-0.1.tar.gz" +sha256sums="dfc18f5ef97d7dfe859643ff5c3a026b368b99a37a3095cb79364f906be922c4 su-exec-0.1.tar.gz" +sha512sums="a67dd4044097c0dead914298358657211a3425353d0f8dd4960a9fb734e6d6499bc0e829a1bb3a21ac6366f199f481413092dfbc9a08b158bf40e3f06df63e49 su-exec-0.1.tar.gz" |