aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-isns/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-05-25 09:01:16 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-05-25 10:21:11 +0000
commitf876db89859e4ef206cc6adfb6bca2faea90bc39 (patch)
treee3d9a5809155d92929f5b357e0feeee5f5c46e05 /main/open-isns/APKBUILD
parent1b818894b380a14c33fe2eb880d3393a3f9db354 (diff)
downloadaports-f876db89859e4ef206cc6adfb6bca2faea90bc39.tar.gz
aports-f876db89859e4ef206cc6adfb6bca2faea90bc39.tar.bz2
aports-f876db89859e4ef206cc6adfb6bca2faea90bc39.tar.xz
main/open-isns: new aport
iSNS server and client
Diffstat (limited to 'main/open-isns/APKBUILD')
-rw-r--r--main/open-isns/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/open-isns/APKBUILD b/main/open-isns/APKBUILD
new file mode 100644
index 0000000000..caef7a854e
--- /dev/null
+++ b/main/open-isns/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=open-isns
+pkgver=0.97
+pkgrel=0
+pkgdesc="iSNS server and client for Linux"
+url="https://github.com/open-iscsi/open-isns"
+arch="all"
+license="LGPL2"
+makedepends="autoconf automake libressl-dev musl-dev"
+options="!check"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lib"
+source="$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/open-isns/archive/v$pkgver.tar.gz
+ libressl.patch
+ musl-fixes.patch
+ "
+builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ autoconf && autoheader
+}
+
+build() {
+ cd "$builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-shared
+ make all
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install_hdrs
+ make DESTDIR="$pkgdir" install_lib
+ rm -rf "$pkgdir"/usr/lib/systemd
+}
+
+lib() {
+ cd "$builddir"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr
+}
+
+sha512sums="78c934162d5a1d093bccd49449d4ef369b896d34309d76b4963d643a699640617c4fe064388c481c35b9be26e012f19713f3aad378af9ad88fa94c3d300e919d open-isns-0.97.tar.gz
+3a01a78c19114801ce4d80568eca158615f338a27133eb7639258ebb9114afa66cbbf0c0d871f00b7e85a4903f1c2444866daaccc3e3b187d0d4d47d7e86adc2 libressl.patch
+14eb43b8659c4c917fb35f2e33bffb90c7288555c3feb1ba4afd502c3e509bb44d0ad91b6c4ef09c68cd30eb812df11440a1c28720ee9be8cf4af6c0d8d6dc8d musl-fixes.patch"