PKGBUILDs/aur/dropbear/PKGBUILD
2013-06-04 08:49:47 -04:00

47 lines
1.6 KiB
Bash

# Maintainer: Simon Perry <aur [at] sanxion [dot] net>
# Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Jason Pierce <`echo 'moc tod liamg ta nosaj tod ecreip' | rev`>
# Contributor: Jeremy Cowgar <jeremy@cowgar.com>
# Contributor: Simon Perry <aur [at] sanxion [dot] net>
pkgname=dropbear
pkgver=2013.58
pkgrel=4
pkgdesc="Lightweight replacement for sshd"
arch=('i686' 'x86_64')
url="http://matt.ucc.asn.au/dropbear/dropbear.html"
install=${pkgname}.install
license=('MIT')
depends=('zlib')
source=(http://matt.ucc.asn.au/$pkgname/releases/$pkgname-$pkgver.tar.bz2
$pkgname.service)
sha256sums=('d866189b1d14e15353aeb4feb616f6132a63ea7c25ca8aa12b63a3a397822e55'
'1920dc2d9a1dd86b3137ae4348196f9b95142d6eee484ee536bc7dfed7f0def0')
build() {
cd ${srcdir}/$pkgname-$pkgver
sed -i 's|usr/libexec/sftp|usr/lib/ssh/sftp|' options.h
./configure --prefix=/usr --sbindir=/usr/bin
LIBS="-lcrypt" make
}
package() {
cd ${srcdir}/$pkgname-$pkgver
make prefix=${pkgdir}/usr sbindir=${pkgdir}/usr/bin install
#man pages
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
#configuration files
install -d ${pkgdir}/etc/$pkgname
install -D -m644 ${srcdir}/$pkgname.service ${pkgdir}/usr/lib/systemd/system/$pkgname.service
#license file
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}