diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-08 15:49:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-08 15:49:16 +0000 |
commit | edba0a1cdbcd5c8944d5eaf930159759926d441a (patch) | |
tree | 3ecb250ac3ebd93198ef6e6520c5a7dcf4593b0a /main/su-exec/APKBUILD | |
parent | 4ce667c78b8914d511474b336de17f2ca6e65fab (diff) | |
download | aports-edba0a1cdbcd5c8944d5eaf930159759926d441a.tar.bz2 aports-edba0a1cdbcd5c8944d5eaf930159759926d441a.tar.xz |
main/su-exec: move from testing
Diffstat (limited to 'main/su-exec/APKBUILD')
-rw-r--r-- | main/su-exec/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/su-exec/APKBUILD b/main/su-exec/APKBUILD new file mode 100644 index 0000000000..0a15fafed7 --- /dev/null +++ b/main/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" |