diff options
Diffstat (limited to 'community/scponly/PKGBUILD')
-rw-r--r-- | community/scponly/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/scponly/PKGBUILD b/community/scponly/PKGBUILD new file mode 100644 index 000000000..e95d7fee6 --- /dev/null +++ b/community/scponly/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 91530 2013-05-23 11:17:11Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Roberto Alsina <ralsina@kde.org> + +pkgname=scponly +pkgver=4.8 +pkgrel=9 +pkgdesc="A limited shell for ssh/scp" +arch=(i686 x86_64) +url="http://sublimation.org/scponly/" +depends=('glibc') +makedepends=('openssh') +license=('custom') +options=(docs) +source=(http://downloads.sourceforge.net/sourceforge/scponly/scponly-$pkgver.tgz + setup_chroot.sh) +md5sums=('139ac9abd7f3b8dbc5c5520745318f8a' + 'a5e26c355cf4f127a1f2fdf2fb1582cc') + +build() { + cd $srcdir/$pkgname-$pkgver + [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc \ + --enable-scp-compat --enable-winscp-compat --enable-chrooted-binary \ + --sbindir=/usr/bin + sed -i 's|^#elif|#else|' helper.c + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + install -D -m0644 COPYING $pkgdir/usr/share/licenses/scponly/COPYING + mv $pkgdir/usr/man $pkgdir/usr/share/ + mkdir -p $pkgdir/usr/share/doc/scponly + cp $srcdir/setup_chroot.sh config.h $pkgdir/usr/share/doc/scponly/ +} |