diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-14 07:39:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-14 07:40:25 +0000 |
commit | 076eb565968c1dc98e75038bb3d9baa41249a1b5 (patch) | |
tree | 29fb56baec627ee8c1b966bf417e5343559b14ed /main | |
parent | 1fba2a7f9b9a08661c54b107291bda0a223182f0 (diff) | |
download | aports-076eb565968c1dc98e75038bb3d9baa41249a1b5.tar.bz2 aports-076eb565968c1dc98e75038bb3d9baa41249a1b5.tar.xz |
main/dropbear: cleanup apkbuild
Diffstat (limited to 'main')
-rw-r--r-- | main/dropbear/APKBUILD | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/main/dropbear/APKBUILD b/main/dropbear/APKBUILD index e083d6eca..ecd4c4614 100644 --- a/main/dropbear/APKBUILD +++ b/main/dropbear/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=dropbear pkgver=0.53.1 -pkgrel=0 +pkgrel=1 pkgdesc="small SSH 2 client/server designed for small memory environments" url="http://matt.ucc.asn.au/dropbear/dropbear.html" arch="all" @@ -14,30 +14,35 @@ dropbear.initd dropbear.confd dropbear-0.53.1-static_build_fix.patch" +_builddir="$srcdir"/$pkgname-$pkgver +_progs="dropbear dbclient dropbearkey dropbearconvert scp" + prepare() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" patch -p1 -i "$srcdir"/dropbear-0.53.1-static_build_fix.patch } build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" + ./configure --prefix=/usr \ + || return 1 + make PROGRAMS="$_progs" MULTI=1 || return 1 +} - ./configure --prefix=/usr \ - --disable-lastlog - progs="dbclient dropbearkey dropbearconvert scp" - make PROGRAMS="dropbear ${progs}" MULTI=1 || return 1 - install -Dm755 "$srcdir/$pkgname-$pkgver"/dropbearmulti "$pkgdir"/usr/bin/dropbearmulti || return 1 - cd "$pkgdir/usr/bin" || return 1 - for i in ${progs}; do - msg "linking ${i##*/}" - ln -s dropbearmulti $i || return 1 - done - msg "linking dropbear" - mkdir -p "$pkgdir"/usr/sbin || return 1 - cd "$pkgdir/usr/sbin" || return 1 - ln -s ../bin/dropbearmulti dropbear || return 1 - install -D -m755 "$srcdir"/dropbear.initd "$pkgdir"/etc/init.d/dropbear || return 1 - install -D -m644 "$srcdir"/dropbear.confd "$pkgdir"/etc/conf.d/dropbear || return 1 +package() { + cd "$_builddir" + make MULTI=1 DESTDIR="$pkgdir" install || return 1 + mkdir "$pkgdir"/usr/sbin/ + for i in $_progs; do + case $i in + dropbear) ln -s ../bin/dropbearmulti "$pkgdir"/usr/sbin/$i;; + *) ln -s dropbearmulti "$pkgdir"/usr/bin/$i;; + esac + done + install -D -m755 "$srcdir"/dropbear.initd \ + "$pkgdir"/etc/init.d/dropbear || return 1 + install -D -m644 "$srcdir"/dropbear.confd \ + "$pkgdir"/etc/conf.d/dropbear || return 1 } md5sums="0284ea239083f04c8b874e08e1aca243 dropbear-0.53.1.tar.bz2 |