Merge pull request #4537 from crater2150/pam_ssh

New package: pam_ssh-2.1_1
This commit is contained in:
Toyam Cox 2016-08-02 09:30:26 -04:00 committed by GitHub
commit 8c5aa5107d
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,39 @@
The configure script contains checks that cannot run when cross-compiling. This
patch disables them
diff -Naur configure.orig configure
--- configure.orig 2016-08-01 15:39:25.194784834 +0200
+++ configure 2016-08-01 15:40:38.914790397 +0200
@@ -11621,10 +11621,6 @@
# Basic test to check for compatible version and correct linking
# *does not* test for RSA - that comes later.
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -11710,10 +11706,6 @@
LIBS="$saved_LIBS -lRSAglue -lrsaref"
fi
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -11789,10 +11781,6 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

24
srcpkgs/pam_ssh/template Normal file
View File

@ -0,0 +1,24 @@
# Template file for 'pam_ssh'
pkgname=pam_ssh
version=2.1
revision=1
build_style=gnu-configure
short_desc="PAM module providing single sign-on behavior for SSH"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="2-clause-BSD"
homepage="http://pam-ssh.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/pam-ssh/${pkgname}-${version}.tar.xz"
configure_args="--with-pam-dir=/usr/lib/security
--includedir=${XBPS_CROSS_BASE}/usr/include
--libdir=${XBPS_CROSS_BASE}/lib"
makedepends="libressl-devel pam-devel"
hostmakedepends="openssh"
checksum=55fbe8488d59cff05a77523b4afc2e2a8d1ba35d93546f1828ec48e20e2600cb
if [ "$CROSS_BUILD" ]; then
configure_args+=" ac_cv_openssldir=/usr"
fi
post_install() {
vlicense COPYING
}