summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorfhajny <fhajny>2016-04-12 13:15:14 +0000
committerfhajny <fhajny>2016-04-12 13:15:14 +0000
commitcb54e8e63265c32da8ad4917c1d84b628795402a (patch)
treec8d6c09a6276dbb5ed46f6e1725ac6a1846a634f /security
parent480c882a10bcdc75914c07d7a605e879655e72b4 (diff)
downloadpkgsrc-cb54e8e63265c32da8ad4917c1d84b628795402a.tar.gz
Fix build on SunOS. Fix pkglint warnings while at it.
Problem isolated and solution provided by @Kurlon https://github.com/joyent/pkgsrc/pull/350
Diffstat (limited to 'security')
-rw-r--r--security/pam-radius/Makefile5
-rw-r--r--security/pam-radius/distinfo4
-rw-r--r--security/pam-radius/patches/patch-configure23
3 files changed, 25 insertions, 7 deletions
diff --git a/security/pam-radius/Makefile b/security/pam-radius/Makefile
index d8393cda277..34545962bad 100644
--- a/security/pam-radius/Makefile
+++ b/security/pam-radius/Makefile
@@ -1,13 +1,14 @@
-# $NetBSD: Makefile,v 1.6 2015/09/26 20:58:06 bsiegert Exp $
+# $NetBSD: Makefile,v 1.7 2016/04/12 13:15:14 fhajny Exp $
-PKGNAME= ${DISTNAME:S/_/-/}
DISTNAME= pam_radius-1.4.0
+PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= security
MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.freeradius.org/pam_radius_auth/
COMMENT= PAM module for authentication against a RADIUS server
+LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
diff --git a/security/pam-radius/distinfo b/security/pam-radius/distinfo
index a3e8f8958bb..89023568f16 100644
--- a/security/pam-radius/distinfo
+++ b/security/pam-radius/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.6 2015/12/24 23:40:27 dholland Exp $
+$NetBSD: distinfo,v 1.7 2016/04/12 13:15:14 fhajny Exp $
SHA1 (pam_radius-1.4.0.tar.gz) = 161af24355b79736bb63ba1cf9e627f9ca6e1671
RMD160 (pam_radius-1.4.0.tar.gz) = 765bf1d81243504b6fccbab4032baba424dd8d33
SHA512 (pam_radius-1.4.0.tar.gz) = 3505e3de6777c4129a36d2dbd1ae1dbdc5fe46d752c58a6f2a325f77d6f41f7bd999b886f830c0631e51112f756a16e699f29daa428c2befc79cfab5e5b58624
Size (pam_radius-1.4.0.tar.gz) = 179458 bytes
-SHA1 (patch-configure) = 50cdf0f778d3b48e8c06f9871dcf3ef0efa4cdee
+SHA1 (patch-configure) = 88f71bec092c9f9df95fe9de665ba4b37a440af0
SHA1 (patch-src_pam__radius__auth.h) = e17931e1789636f6bccf80e51d2f875d36ed7681
diff --git a/security/pam-radius/patches/patch-configure b/security/pam-radius/patches/patch-configure
index 8c3692cd350..ccaceba91d8 100644
--- a/security/pam-radius/patches/patch-configure
+++ b/security/pam-radius/patches/patch-configure
@@ -1,10 +1,27 @@
-$NetBSD: patch-configure,v 1.1 2015/12/24 23:40:27 dholland Exp $
+$NetBSD: patch-configure,v 1.2 2016/04/12 13:15:15 fhajny Exp $
Fix shell conditional.
+Backport SunOS fix from upstream:
+ https://github.com/FreeRADIUS/pam_radius/commit/f6e2fb9a2dd04e23e7ca16350e6c3a8ccbd52d33
---- configure~ 2014-12-17 22:00:59.000000000 +0000
+--- configure.orig 2014-12-17 22:00:59.000000000 +0000
+++ configure
-@@ -5261,7 +5261,7 @@ fi
+@@ -4540,7 +4540,13 @@ done
+ for ac_header in security/pam_modules.h pam/pam_modules.h
+ do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
++ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
++ #ifdef HAVE_SECURITY_PAM_APPL_H
++ # include <security/pam_appl.h>
++ #endif
++
++
++"
+ if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+ #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+@@ -5261,7 +5267,7 @@ fi
HOSTINFO=$host