From ef61aa5a9cead170fa18dba44609c32bbf18306a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 5 May 2011 19:02:44 +0000 Subject: Thu May 5 19:02:44 UTC 2011 --- community/scponly/PKGBUILD | 24 ++++++++++++------------ community/scponly/setup_chroot.sh | 7 ++++++- 2 files changed, 18 insertions(+), 13 deletions(-) (limited to 'community/scponly') diff --git a/community/scponly/PKGBUILD b/community/scponly/PKGBUILD index cb4e89b14..96d07c175 100644 --- a/community/scponly/PKGBUILD +++ b/community/scponly/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 3564 2009-10-06 07:22:09Z spupykin $ +# $Id: PKGBUILD 46261 2011-05-04 11:37:35Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Roberto Alsina pkgname=scponly pkgver=4.8 -pkgrel=6 +pkgrel=7 pkgdesc="A limited shell for ssh/scp" arch=(i686 x86_64) url="http://www.sublimation.org/scponly/" @@ -14,22 +14,22 @@ options=(docs) source=(http://downloads.sourceforge.net/sourceforge/scponly/scponly-$pkgver.tgz setup_chroot.sh) md5sums=('139ac9abd7f3b8dbc5c5520745318f8a' - '3318e648c106b1e7ed7826296c296d1a') + 'a5e26c355cf4f127a1f2fdf2fb1582cc') build() { - cd $startdir/src/$pkgname-$pkgver + cd $srcdir/$pkgname-$pkgver [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc \ --enable-scp-compat --enable-winscp-compat --enable-chrooted-binary - sed -i 's|^#elif|#else|' helper.c + make +} - make || return 1 - make DESTDIR=$startdir/pkg install || return 1 - - install -D -m0644 COPYING $startdir/pkg/usr/share/licenses/scponly/COPYING && \ - mv $pkgdir/usr/man $pkgdir/usr/share/ || return 1 - - mkdir -p $pkgdir/usr/share/doc/scponly && \ +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/ } diff --git a/community/scponly/setup_chroot.sh b/community/scponly/setup_chroot.sh index cd1a260eb..1af9807e0 100755 --- a/community/scponly/setup_chroot.sh +++ b/community/scponly/setup_chroot.sh @@ -79,7 +79,7 @@ fi # # we also need to add some form of ld.so, here are some good guesses. # -LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib64/ld-linux-x86-64.so.2 /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1" +LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib64/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2 /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1" for lib in $LDSO_LIST; do if [ -f $lib ]; then LDSOFOUND=1; @@ -95,6 +95,11 @@ if [ $? -eq 0 ]; then LIB_LIST="$LIB_LIST /lib/libnss_compat*" fi +ls /lib/libnss_files* > /dev/null 2>&1 +if [ $? -eq 0 ]; then + LIB_LIST="$LIB_LIST /lib/libnss_files*" +fi + # check that the configure options are correct for chrooted operation: if [ x/usr/sbin/useradd = x ]; then -- cgit v1.2.3-54-g00ecf