Commit c1d36980 authored by J0WI's avatar J0WI Committed by Natanael Copa

main/su-exec: modernize

parent 374127aa
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=su-exec
pkgver=0.2
pkgrel=0
pkgrel=1
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
}
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/ncopa/su-exec/archive/v$pkgver.tar.gz"
build() {
cd "$_builddir"
make || return 1
make
}
package() {
cd "$_builddir"
install -D su-exec "$pkgdir"/sbin/su-exec || return 1
}
md5sums="675206c03074a1b998719fae4d28812f su-exec-0.2.tar.gz"
sha256sums="ec4acbd8cde6ceeb2be67eda1f46c709758af6db35cacbcde41baac349855e25 su-exec-0.2.tar.gz"
sha512sums="68155a06c716b362aee1214f22cd325b3e934c05b653d3b084a720458fb04207c0681d218b72adfd5ae8fab0262f7ab90e49eb2e218d1b0d7d7af7911715d4e1 su-exec-0.2.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment