aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ssh-getkey-ldap
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-05-01 23:21:33 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-02 15:34:54 +0200
commite2207f9276d616ba2ba2c70781c6e28ba49eca4a (patch)
tree85661d1b8513f7c0250a64d89ab9227002d9ecaf /testing/ssh-getkey-ldap
parent31cbc49d5cfc3950a7a401cac799c7797ec887dc (diff)
downloadaports-e2207f9276d616ba2ba2c70781c6e28ba49eca4a.tar.bz2
aports-e2207f9276d616ba2ba2c70781c6e28ba49eca4a.tar.xz
testing/ssh-getkey-ldap: improve abuild
Diffstat (limited to 'testing/ssh-getkey-ldap')
-rw-r--r--testing/ssh-getkey-ldap/APKBUILD15
-rw-r--r--testing/ssh-getkey-ldap/ssh-getkey-ldap.post-install2
2 files changed, 6 insertions, 11 deletions
diff --git a/testing/ssh-getkey-ldap/APKBUILD b/testing/ssh-getkey-ldap/APKBUILD
index dcb012f608..5d00dba6ec 100644
--- a/testing/ssh-getkey-ldap/APKBUILD
+++ b/testing/ssh-getkey-ldap/APKBUILD
@@ -2,27 +2,24 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ssh-getkey-ldap
pkgver=0.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="A simple script to be used as AuthorizedKeysCommand in OpenSSH server to look up user's public keys in LDAP."
url="https://github.com/jirutka/ssh-getkey-ldap"
arch="noarch"
license="MIT"
depends="lua-ldap"
-depends_dev=""
makedepends=""
install="$pkgname.post-install"
-subpackages=""
-source="saveas-http://github.com/jirutka/${pkgname}/archive/v${pkgver}.tar.gz/${pkgname}-${pkgver}.tar.gz"
-
-_builddir="$srcdir/$pkgname-$pkgver"
+source="$pkgname-$pkgver.tar.gz::http://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ exit 0
}
package() {
- cd "$_builddir"
- DESTDIR="$pkgdir" PREFIX="/usr" ./install || return 1
+ cd "$builddir"
+ DESTDIR="$pkgdir" PREFIX="/usr" ./install
}
md5sums="5eb480083707e16ce05df7e5692092bb ssh-getkey-ldap-0.1.0.tar.gz"
diff --git a/testing/ssh-getkey-ldap/ssh-getkey-ldap.post-install b/testing/ssh-getkey-ldap/ssh-getkey-ldap.post-install
index 9b03cb3c54..e5183e1d88 100644
--- a/testing/ssh-getkey-ldap/ssh-getkey-ldap.post-install
+++ b/testing/ssh-getkey-ldap/ssh-getkey-ldap.post-install
@@ -9,5 +9,3 @@ cat <<EOF 1>&2
* AuthorizedKeysCommandUser nobody
*
EOF
-
-exit 0