PKGBUILDs/aur/dropbear/PKGBUILD

43 lines
1.3 KiB
Bash
Raw Normal View History

2013-03-30 23:59:10 +00:00
# Maintainer: Simon Perry <aur [at] sanxion [dot] net>
2013-06-04 12:49:47 +00:00
# Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
2013-03-17 21:07:51 +00:00
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2011-06-01 22:57:11 +00:00
# Contributor: Jason Pierce <`echo 'moc tod liamg ta nosaj tod ecreip' | rev`>
# Contributor: Jeremy Cowgar <jeremy@cowgar.com>
2013-03-17 21:07:51 +00:00
# Contributor: Simon Perry <aur [at] sanxion [dot] net>
2012-03-12 23:43:33 +00:00
2011-06-01 22:57:11 +00:00
pkgname=dropbear
2014-01-01 17:27:38 +00:00
pkgver=2013.62
2013-10-11 17:15:47 +00:00
pkgrel=1
2012-03-12 21:08:16 +00:00
pkgdesc="Lightweight replacement for sshd"
2013-11-16 18:40:58 +00:00
arch=('i686' 'x86_64' 'armv6h')
2011-06-01 22:57:11 +00:00
url="http://matt.ucc.asn.au/dropbear/dropbear.html"
2013-03-17 21:07:51 +00:00
license=('MIT')
2011-06-01 22:57:11 +00:00
depends=('zlib')
2013-03-17 21:07:51 +00:00
source=(http://matt.ucc.asn.au/$pkgname/releases/$pkgname-$pkgver.tar.bz2
$pkgname.service)
2014-01-01 17:27:38 +00:00
sha256sums=('c6656302bbcc54b0a9c361f505822f6994039117ec32d2897ead3364da079ffa'
2013-06-04 12:49:47 +00:00
'1920dc2d9a1dd86b3137ae4348196f9b95142d6eee484ee536bc7dfed7f0def0')
2011-06-01 22:57:11 +00:00
build() {
cd ${srcdir}/$pkgname-$pkgver
2013-03-17 21:07:51 +00:00
sed -i 's|usr/libexec/sftp|usr/lib/ssh/sftp|' options.h
2011-06-01 22:57:11 +00:00
2013-10-11 17:15:47 +00:00
./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin
make
2011-06-01 22:57:11 +00:00
}
package() {
cd ${srcdir}/$pkgname-$pkgver
2013-10-11 17:15:47 +00:00
DESTDIR=${pkgdir} make install
2011-06-01 22:57:11 +00:00
2013-10-11 17:15:47 +00:00
# Configuration files
2011-06-01 22:57:11 +00:00
install -d ${pkgdir}/etc/$pkgname
2013-03-17 21:07:51 +00:00
install -D -m644 ${srcdir}/$pkgname.service ${pkgdir}/usr/lib/systemd/system/$pkgname.service
2011-06-01 22:57:11 +00:00
2013-10-11 17:15:47 +00:00
# License file
2011-06-01 22:57:11 +00:00
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}
2013-10-11 17:15:47 +00:00