summaryrefslogtreecommitdiff
path: root/extra/rssh/PKGBUILD
blob: cda6c45e4023867b93c4bf40a68543abf6d34e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 100737 2010-11-25 18:27:36Z bisson $
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
pkgname=rssh
pkgver=2.3.3
pkgrel=2
pkgdesc='A restricted shell for use with OpenSSH, allowing only scp and/or sftp'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.pizzashack.org/rssh/'
depends=('openssh' 'glibc')
backup=('etc/rssh.conf')
license=('custom:rssh')
source=("http://downloads.sourceforge.net/sourceforge/rssh/rssh-$pkgver.tar.gz"
        'destdir.patch'
        'rsync.patch')
sha1sums=('0a6dd80b5e6059e0db12c9f1276121dd966b610a'
          '85bd1694decae5872cbeeafd578b147eb13313c6'
          '41f32f8a77b3a2b924ede6044ab67846e06b5d20')

build() {
	cd "$srcdir/$pkgname-$pkgver"

	patch -p1 < ../destdir.patch
	patch -p1 < ../rsync.patch # FS#21783, debian patch

	./configure --prefix=/usr --libexecdir=/usr/lib/rssh \
		--mandir=/usr/share/man --sysconfdir=/etc
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/rssh/LICENSE
}