Subject: [alpine-aports] [PATCH] testing/singularity: new aport

From: khm <[email-masked]>
Date: Tue, 2 Jan 2018 21:19:23 -0800

Singularity is a container platform focused on "mobility of computing."
It differs from other popular container platforms by not requiring
users to have special privileges or any running daemons to work.

Homepage at http://singularity.lbl.gov/
---
 testing/singularity/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/singularity/APKBUILD

diff --git a/testing/singularity/APKBUILD b/testing/singularity/APKBUILD
new file mode 100644
index 0000000000..315ee5ab95
--- /dev/null
+++ b/testing/singularity/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Kurt H Maier <[email-masked]>
+# Maintainer: Kurt H Maier <[email-masked]>
+pkgname=singularity
+pkgver=2.4.2
+pkgrel=0
+pkgdesc="A container platform focused on supporting 'Mobility of Compute'"
+url="http://singularity.lbl.gov/"
+arch="all"
+license="BSD-3-Clause-LBNL"
+depends="python"
+makedepends="autoconf automake gcc make libtool linux-headers"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/singularityware/singularity/releases/download/$pkgver/singularity-$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver 
+
+build() {
+	cd "$builddir"
+	./configure --prefix=/usr \
+		--sysconfdir=/etc \
+		--localstatedir=/var \
+		--disable-suid \
+		--with-userns
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="2c26af6cd092bc030113cdb2a79430d82d51b7438330a6cd0706e46438296feed4d86b08d57efff0b7df148ca0e08f706b8a214f03439bccd7d196714cd06dbc  singularity-2.4.2.tar.gz"
-- 
2.15.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: khm <[email-masked]>
Date: Wed, 3 Jan 2018 17:30:29 -0800

Changes v1 -> v2:
	- enabled suid tools 

diff --git a/testing/singularity/APKBUILD b/testing/singularity/APKBUILD
new file mode 100644
index 0000000000..df234075bb
--- /dev/null
+++ b/testing/singularity/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Kurt H Maier <[email-masked]>
+# Maintainer: Kurt H Maier <[email-masked]>
+pkgname=singularity
+pkgver=2.4.2
+pkgrel=0
+pkgdesc="A container platform focused on supporting 'Mobility of
Compute'"
+url="http://singularity.lbl.gov/"
+arch="all"
+license="BSD-3-Clause-LBNL"
+depends="python"
+makedepends="autoconf automake gcc make libtool linux-headers"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/singularityware/singularity/releases/download/$pkgver/singularity-$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver 
+options="suid"
+
+build() {
+       cd "$builddir"
+       ./configure --prefix=/usr \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --with-userns
+       make
+}
+
+package() {
+       cd "$builddir"
+       make DESTDIR="$pkgdir" -j1 install 
+}
+
+sha512sums="2c26af6cd092bc030113cdb2a79430d82d51b7438330a6cd0706e46438296feed4d86b08d57efff0b7df148ca0e08f706b8a214f03439bccd7d196714cd06dbc
singularity-2.4.2.tar.gz"
-- 
2.15.1

---