PKGBUILDs/community/dropbear/PKGBUILD

49 lines
1.4 KiB
Bash
Raw Normal View History

2014-10-02 00:25:26 +00:00
# $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: 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
2014-10-02 00:25:26 +00:00
# Remove when bumped upstream
2011-06-01 22:57:11 +00:00
pkgname=dropbear
2014-08-10 20:45:52 +00:00
pkgver=2014.65
2013-10-11 17:15:47 +00:00
pkgrel=1
2012-03-12 21:08:16 +00:00
pkgdesc="Lightweight replacement for sshd"
2014-10-02 00:25:26 +00:00
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)
2014-08-10 20:45:52 +00:00
sha256sums=('e20057aa7db0f9ea4efdcbfc6fc6b73a648b47b6ab6a01659472142b06f5f56c'
2013-06-04 12:49:47 +00:00
'1920dc2d9a1dd86b3137ae4348196f9b95142d6eee484ee536bc7dfed7f0def0')
2011-06-01 22:57:11 +00:00
2014-10-02 00:25:26 +00:00
prepare() {
sed -i 's|usr/libexec/sftp|usr/lib/ssh/sftp|' $pkgname-$pkgver/options.h
}
2011-06-01 22:57:11 +00:00
2014-10-02 00:25:26 +00:00
build() {
cd $pkgname-$pkgver
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() {
2014-10-02 00:25:26 +00:00
cd $pkgname-$pkgver
2011-06-01 22:57:11 +00:00
2014-10-02 00:25:26 +00:00
make install DESTDIR="${pkgdir}/"
2011-06-01 22:57:11 +00:00
2013-10-11 17:15:47 +00:00
# Configuration files
2014-10-02 00:25:26 +00:00
install -d "${pkgdir}/etc/$pkgname"
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
2014-10-02 00:25:26 +00:00
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
2011-06-01 22:57:11 +00:00
}
2013-10-11 17:15:47 +00:00