diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-05-10 17:44:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-16 14:22:32 +0000 |
commit | cae1b7f6034e316f3035ee238c9cdde6e4bd0637 (patch) | |
tree | 6d41a2e2d296e3984db1b7a0cc02caebad90ce86 /testing | |
parent | cfc03c74ba058a81dff67495bc1283606bf7f141 (diff) | |
download | aports-cae1b7f6034e316f3035ee238c9cdde6e4bd0637.tar.bz2 aports-cae1b7f6034e316f3035ee238c9cdde6e4bd0637.tar.xz |
testing/firejail: new aport
https://firejail.wordpress.com/
Firejail is a SUID program that reduces the risk of security breaches
by restricting the running environment of untrusted applications using
Linux namespaces and seccomp-bpf. It allows a process and all its descendants
to have their own private view of the globally shared kernel resources, such as
the network stack, process table, mount table.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/firejail/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/firejail/APKBUILD b/testing/firejail/APKBUILD new file mode 100644 index 0000000000..886a02b5e5 --- /dev/null +++ b/testing/firejail/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=firejail +pkgver=0.9.40_rc1 +_pkgver=${pkgver//_/-} +pkgrel=0 +pkgdesc="Linux namespaces and seccomp-bpf sandbox" +url="https://firejail.wordpress.com/" +arch="all" +license="GPL2" +depends="bash" +depends_dev="" +makedepends="$depends_dev linux-headers" +install="" +options="suid" +subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp" +source="$pkgname-$pkgver.tar.gz::https://github.com/netblue30/$pkgname/archive/$_pkgver.tar.gz" + +builddir="$srcdir"/$pkgname-$_pkgver +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash" + arch="noarch" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/share "$subpkgdir"/usr/ +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="2350813ed6bdb9c237edc8a84b84992a firejail-0.9.40_rc1.tar.gz" +sha256sums="c78146cd615c494074dd25d6ddd6befe543ab48b234fa97485e435e1d0abc89e firejail-0.9.40_rc1.tar.gz" +sha512sums="bd31e9ee81e2060a9e9c80c3fcdfb01470b5e3f3ce99616089866ee43dc4d858cd24b7067cfe356b48d3d160c876c8fb7d32660e2d315756244c1f1047e27c1f firejail-0.9.40_rc1.tar.gz" |