PKGBUILDs/aur/dropbear/PKGBUILD

48 lines
1.6 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
2013-06-04 12:49:47 +00:00
pkgver=2013.58
pkgrel=4
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-06-04 12:49:47 +00:00
install=${pkgname}.install
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)
2013-06-04 12:49:47 +00:00
sha256sums=('d866189b1d14e15353aeb4feb616f6132a63ea7c25ca8aa12b63a3a397822e55'
'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-06-04 12:49:47 +00:00
./configure --prefix=/usr --sbindir=/usr/bin
2012-03-12 21:08:16 +00:00
LIBS="-lcrypt" make
2011-06-01 22:57:11 +00:00
}
package() {
cd ${srcdir}/$pkgname-$pkgver
2013-06-04 12:49:47 +00:00
make prefix=${pkgdir}/usr sbindir=${pkgdir}/usr/bin install
2011-06-01 22:57:11 +00:00
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
}