From 1fa6edfba8d1e31ca1c0d59e8202cd3c62ccf393 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Feb 2012 23:14:50 +0000 Subject: Mon Feb 6 23:14:50 UTC 2012 --- extra/rssh/PKGBUILD | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'extra/rssh') diff --git a/extra/rssh/PKGBUILD b/extra/rssh/PKGBUILD index 131c0ed16..c1d9e08f7 100644 --- a/extra/rssh/PKGBUILD +++ b/extra/rssh/PKGBUILD @@ -1,15 +1,17 @@ -# $Id: PKGBUILD 100737 2010-11-25 18:27:36Z bisson $ -# Maintainer: Judd Vinet +# $Id: PKGBUILD 149042 2012-02-05 15:15:17Z bisson $ +# Contributor: Judd Vinet +# Maintainer: Gaetan Bisson + 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') +pkgrel=3 +pkgdesc='Restricted shell for use with OpenSSH, allowing only scp and/or sftp' 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" +arch=('i686' 'x86_64') +backup=('etc/rssh.conf') +depends=('openssh') +source=("http://downloads.sourceforge.net/sourceforge/rssh/rssh-${pkgver}.tar.gz" 'destdir.patch' 'rsync.patch') sha1sums=('0a6dd80b5e6059e0db12c9f1276121dd966b610a' @@ -17,18 +19,22 @@ sha1sums=('0a6dd80b5e6059e0db12c9f1276121dd966b610a' '41f32f8a77b3a2b924ede6044ab67846e06b5d20') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -p1 -i ../destdir.patch + patch -p1 -i ../rsync.patch # FS#21783, debian patch - 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 \ - ./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 + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/rssh/LICENSE } -- cgit v1.2.3-54-g00ecf