aboutsummaryrefslogblamecommitdiffstats
path: root/main/dropbear/APKBUILD
blob: 6253458cfc52aacc041a8c73e66d5d741cbec53d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                                   
                
             
        

                                                                          
          
             
        

                                                                             




                                              
 


                                                          
           
                       




                                                                        
 

         




                                                   
 













                                                                            

 
                                                                  
                                                
                                                

                                                                        
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dropbear
pkgver=0.53.1
pkgrel=2
pkgdesc="small SSH 2 client/server designed for small memory environments"
url="http://matt.ucc.asn.au/dropbear/dropbear.html"
arch="all"
license='MIT'
depends=
makedepends="zlib-dev"
source="http://matt.ucc.asn.au/dropbear/releases/${pkgname}-${pkgver}.tar.bz2
	dropbear.initd
	dropbear.confd
	dropbear-0.53.1-static_build_fix.patch
	after-free-fix.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
_progs="dropbear dbclient dropbearkey dropbearconvert scp"

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		|| return 1
	make PROGRAMS="$_progs" MULTI=1 || 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
d181e2234f34ae5b1e45f8ebf5f14e07  dropbear.initd
af73c487e2be37d65d0e8bf80489357e  dropbear.confd
d33de2027d5dc851762b65b276f1ac83  dropbear-0.53.1-static_build_fix.patch
4f23b4a4214f98b7dd5c1c1727a9c0b4  after-free-fix.patch"