PKGBUILDs/aur/dropbear/PKGBUILD

46 lines
1.4 KiB
Bash
Raw Normal View History

2013-03-17 21:07:51 +00:00
# Maintainer: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
# 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
2012-03-13 00:10:15 +00:00
pkgver=2012.55
2013-03-17 21:07:51 +00:00
pkgrel=2
2012-03-12 21:08:16 +00:00
pkgdesc="Lightweight replacement for sshd"
arch=('i686' 'x86_64')
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)
2012-03-12 21:08:16 +00:00
sha256sums=('04982af2a10b220fa940f9f72f276d612c9bb643cfbb5ee1416e5a0f00de9b0f'
2013-03-17 21:07:51 +00:00
'f0158ba3c98e9b26ca0ef1f5a1047d72677ba5011f2e2d2014a12e48c2af09bf')
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
2012-03-12 21:08:16 +00:00
./configure --prefix=/usr
LIBS="-lcrypt" make
2011-06-01 22:57:11 +00:00
}
package() {
cd ${srcdir}/$pkgname-$pkgver
make prefix=${pkgdir}/usr install
2013-03-17 21:07:51 +00:00
#man pages
2011-06-01 22:57:11 +00:00
install -D -m644 dbclient.1 ${pkgdir}/usr/share/man/man1/dbclient.1
install -D -m644 $pkgname.8 ${pkgdir}/usr/share/man/man8/$pkgname.8
install -D -m644 dropbearkey.8 ${pkgdir}/usr/share/man/man8/dropbearkey.8
2013-03-17 21:07:51 +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-03-17 21:07:51 +00:00
#license file
2011-06-01 22:57:11 +00:00
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}