diff --git a/srcpkgs/pam_ssh/patches/fix-cross-compile-openssl-feature-checks.patch b/srcpkgs/pam_ssh/patches/fix-cross-compile-openssl-feature-checks.patch new file mode 100644 index 0000000000..90573970f7 --- /dev/null +++ b/srcpkgs/pam_ssh/patches/fix-cross-compile-openssl-feature-checks.patch @@ -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. */ diff --git a/srcpkgs/pam_ssh/template b/srcpkgs/pam_ssh/template new file mode 100644 index 0000000000..158f45c465 --- /dev/null +++ b/srcpkgs/pam_ssh/template @@ -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 " +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 +}