mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/proot: take over maintainership
obtained permission via email, the previous maintainer has stopped using Alpine, so i've also taken over e2tools and libusrsctp in the previous 2 commits
This commit is contained in:
parent
de1c27c1ca
commit
73c202b2ad
@ -1,13 +1,12 @@
|
|||||||
# Contributor: Daniel Santana <daniel@santana.tech>
|
# Contributor: Daniel Santana <daniel@santana.tech>
|
||||||
# Maintainer: Daniel Santana <daniel@santana.tech>
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
pkgname=proot
|
pkgname=proot
|
||||||
pkgver=5.4.0
|
pkgver=5.4.0
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="User-space implementation of chroot, mount --bind, and binfmt_misc"
|
pkgdesc="User-space implementation of chroot, mount --bind, and binfmt_misc"
|
||||||
url="https://proot-me.github.io"
|
url="https://proot-me.github.io"
|
||||||
arch="aarch64 armhf armv7 x86 x86_64"
|
arch="aarch64 armhf armv7 x86 x86_64"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
checkdepends="bash coreutils grep lzop mcookie python3 strace"
|
|
||||||
makedepends="
|
makedepends="
|
||||||
bsd-compat-headers
|
bsd-compat-headers
|
||||||
libarchive-dev
|
libarchive-dev
|
||||||
@ -17,8 +16,18 @@ makedepends="
|
|||||||
talloc-static
|
talloc-static
|
||||||
uthash-dev
|
uthash-dev
|
||||||
"
|
"
|
||||||
|
checkdepends="
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
grep
|
||||||
|
lzop
|
||||||
|
mcookie
|
||||||
|
python3
|
||||||
|
strace
|
||||||
|
"
|
||||||
subpackages="$pkgname-doc $pkgname-static"
|
subpackages="$pkgname-doc $pkgname-static"
|
||||||
source="https://github.com/proot-me/proot/archive/v$pkgver/proot-$pkgver.tar.gz
|
source="https://github.com/proot-me/proot/archive/v$pkgver/proot-$pkgver.tar.gz
|
||||||
|
fix-basename.patch
|
||||||
tests-musl-compat.patch
|
tests-musl-compat.patch
|
||||||
"
|
"
|
||||||
options="!check" # FIXME: several tests are failing
|
options="!check" # FIXME: several tests are failing
|
||||||
@ -30,7 +39,8 @@ prepare() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
make -C src proot VERSION=$pkgver
|
make -C src proot VERSION=$pkgver
|
||||||
make -C src-static proot VERSION=$pkgver LDFLAGS="$LDFLAGS -static -ltalloc"
|
make -C src-static proot VERSION=$pkgver \
|
||||||
|
LDFLAGS="$LDFLAGS -static -ltalloc"
|
||||||
make -C doc proot/man.1
|
make -C doc proot/man.1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,17 +50,22 @@ check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -Dm 0755 ./src/proot "$pkgdir"/usr/bin/proot
|
install -Dvm755 ./src/proot \
|
||||||
install -Dm 0644 ./doc/proot/man.1 "$pkgdir"/usr/share/man/man1/proot.1
|
-t "$pkgdir"/usr/bin/
|
||||||
|
install -Dvm755 ./src-static/proot \
|
||||||
|
"$pkgdir"/usr/bin/proot.static
|
||||||
|
install -Dvm644 ./doc/proot/man.1 \
|
||||||
|
"$pkgdir"/usr/share/man/man1/proot.1
|
||||||
}
|
}
|
||||||
|
|
||||||
static() {
|
static() {
|
||||||
pkgdesc="$pkgdesc (built as static binary)"
|
pkgdesc="$pkgdesc (static binary)"
|
||||||
|
|
||||||
install -Dm 0755 "$builddir"/src-static/proot "$subpkgdir"/usr/bin/proot.static
|
amove usr/bin/proot.static
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
c4d7b7428758c0d8f6a89ecaa01d1d7d5d9663a84b7e730e8160bc2a2385a7e278589f5dd86f5cd4f8e0736f09b3097b9efea7814096fd2d28e6032435b9ee63 proot-5.4.0.tar.gz
|
c4d7b7428758c0d8f6a89ecaa01d1d7d5d9663a84b7e730e8160bc2a2385a7e278589f5dd86f5cd4f8e0736f09b3097b9efea7814096fd2d28e6032435b9ee63 proot-5.4.0.tar.gz
|
||||||
|
86dba073aacfb61a22115042956a4ee8e8d14d99617642976c90b7cd1ee26a72ee6fdee44c8fbac4b774d12ac5f0bded0e8dab38f6bb9c961c680f843636d169 fix-basename.patch
|
||||||
d09de6d776072e9991abd04e294e6d36bd1634b9e972294a112526ebf3f63e919d01755de1ecd7253d614b41b07fe6882df8787c638b8576bcf2555abcafa466 tests-musl-compat.patch
|
d09de6d776072e9991abd04e294e6d36bd1634b9e972294a112526ebf3f63e919d01755de1ecd7253d614b41b07fe6882df8787c638b8576bcf2555abcafa466 tests-musl-compat.patch
|
||||||
"
|
"
|
||||||
|
12
testing/proot/fix-basename.patch
Normal file
12
testing/proot/fix-basename.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/src/cli/cli.c
|
||||||
|
+++ b/src/cli/cli.c
|
||||||
|
@@ -49,6 +49,9 @@
|
||||||
|
|
||||||
|
#include "build.h"
|
||||||
|
|
||||||
|
+#define basename(path) \
|
||||||
|
+ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
|
||||||
|
+
|
||||||
|
/**
|
||||||
|
* Print a (@detailed) usage of PRoot.
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user