libpam: fix build.
authorYousong Zhou <redacted>
Thu, 18 Jun 2015 09:57:03 +0000 (17:57 +0800)
committerYousong Zhou <redacted>
Thu, 18 Jun 2015 10:07:01 +0000 (18:07 +0800)
 - Update PKG_MD5SUM.
 - Update PKG_RELEASE.
 - Update patch 0001- to always use /lib directory.
 - Refresh other patches.

Signed-off-by: Yousong Zhou <redacted>
libs/libpam/Makefile
libs/libpam/patches/0001-build-always-use-lib-instead-of-lib64.patch [new file with mode: 0644]
libs/libpam/patches/0001-build-use-host_cpu-for-lib64-directory-handling.patch [deleted file]
libs/libpam/patches/0002-build-ignore-pam_rhosts-if-neither-ruserok-nor-ruser.patch
libs/libpam/patches/0003-build-ignore-pam_lastlog-when-logwtmp-is-not-availab.patch
libs/libpam/patches/0004-build-fix-build-when-crypt-is-not-part-of-crypt_libs.patch
libs/libpam/patches/0005-build-fix-doc-build.patch
libs/libpam/patches/0006-pam_unix-fix-compilation-in-case-rpc-rpc.h-is-missin.patch
libs/libpam/patches/0007-Check-if-innetgr-is-available-at-compile-time.patch

index 10e74589add297ebfec530556f2b00765f6bdcd7..ee9ecc659440ab217931b0c4a4d250f0f31d6ce3 100644 (file)
@@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libpam
 PKG_VERSION:=1.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.linux-pam.org/library/
-PKG_MD5SUM:=35b6091af95981b1b2cd60d813b5e4ee
+PKG_MD5SUM:=ee4a480d77b341c99e8b1375f8f180c0
 PKG_INSTALL:=1
 PKG_FIXUP:=autoreconf
 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
diff --git a/libs/libpam/patches/0001-build-always-use-lib-instead-of-lib64.patch b/libs/libpam/patches/0001-build-always-use-lib-instead-of-lib64.patch
new file mode 100644 (file)
index 0000000..25d9a4a
--- /dev/null
@@ -0,0 +1,36 @@
+From 1948dd03d69c1a50e92d7e8868b7d6eabd4873c1 Mon Sep 17 00:00:00 2001
+From: Yousong Zhou <yszhou4tech@gmail.com>
+Date: Wed, 17 Jun 2015 16:11:31 +0800
+Subject: [PATCH 1/7] build: always use /lib instead of /lib64.
+
+* configure.ac: OpenWrt does not use /lib64.
+
+Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
+---
+ configure.ac |   10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fd0e310..306b6e2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,15 +25,7 @@ dnl If we use /usr as prefix, use /etc for config files
+         then
+                 sysconfdir="/etc"
+         fi
+-      if test ${libdir} = '${exec_prefix}/lib'
+-      then
+-              case "`uname -m`" in
+-                  x86_64|ppc64|s390x|sparc64)
+-                      libdir="/lib64" ;;
+-                  *)
+-                      libdir="/lib" ;;
+-              esac
+-      fi
++      libdir="/lib"
+       if test ${sbindir} = '${exec_prefix}/sbin'
+         then
+                 sbindir="/sbin"
+-- 
+1.7.10.4
+
diff --git a/libs/libpam/patches/0001-build-use-host_cpu-for-lib64-directory-handling.patch b/libs/libpam/patches/0001-build-use-host_cpu-for-lib64-directory-handling.patch
deleted file mode 100644 (file)
index 038b214..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-From ee916fd0ec70eb37a97da29f6ec0c26bef7cf6f2 Mon Sep 17 00:00:00 2001
-From: Yousong Zhou <yszhou4tech@gmail.com>
-Date: Wed, 17 Jun 2015 16:11:31 +0800
-Subject: [PATCH 1/7] build: use $host_cpu for lib64 directory handling.
-
-* configure.ac: use $host_cpu for lib64 directory handling.
-
-Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
----
- configure.ac |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index fd0e310..1bc2591 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -27,7 +27,7 @@ dnl If we use /usr as prefix, use /etc for config files
-         fi
-       if test ${libdir} = '${exec_prefix}/lib'
-       then
--              case "`uname -m`" in
-+              case "$host_cpu" in
-                   x86_64|ppc64|s390x|sparc64)
-                       libdir="/lib64" ;;
-                   *)
--- 
-1.7.10.4
-
index c3eda415544fe26d0d5124802a2a9917b8469a4d..abafcbb24332ea37af26b95d54340ca7496189c7 100644 (file)
@@ -1,4 +1,4 @@
-From e985c1ef2c739a597b2d7a2efc3c310c02e40c1f Mon Sep 17 00:00:00 2001
+From 1a2e6c979118dce5e79604e88c008c7879d1e4e6 Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <yszhou4tech@gmail.com>
 Date: Wed, 17 Jun 2015 18:19:23 +0800
 Subject: [PATCH 2/7] build: ignore pam_rhosts if neither ruserok nor
@@ -16,10 +16,10 @@ Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  3 files changed, 13 insertions(+), 4 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 1bc2591..3c4d8bb 100644
+index 306b6e2..084071a 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -542,7 +542,10 @@ AC_CHECK_FUNCS(fseeko getdomainname gethostname gettimeofday lckpwdf mkdir selec
+@@ -534,7 +534,10 @@ AC_CHECK_FUNCS(fseeko getdomainname gethostname gettimeofday lckpwdf mkdir selec
  AC_CHECK_FUNCS(strcspn strdup strspn strstr strtol uname)
  AC_CHECK_FUNCS(getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r)
  AC_CHECK_FUNCS(getgrouplist getline getdelim)
index ddcb66228a22d49381d31367907c5495dafe2853..2f3f19cb33bc9c58bf19d27499062106c14a54bc 100644 (file)
@@ -1,4 +1,4 @@
-From 173164996ca7daf3fa705f2a0bb2991b0d5d2083 Mon Sep 17 00:00:00 2001
+From bac1ee3033cf22e31730fe3e77ca82bd5ebba692 Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <yszhou4tech@gmail.com>
 Date: Wed, 17 Jun 2015 21:18:05 +0800
 Subject: [PATCH 3/7] build: ignore pam_lastlog when logwtmp is not available.
@@ -13,10 +13,10 @@ Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  2 files changed, 8 insertions(+), 2 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 3c4d8bb..8de6edf 100644
+index 084071a..ca4bf5b 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -544,8 +544,10 @@ AC_CHECK_FUNCS(getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r
+@@ -536,8 +536,10 @@ AC_CHECK_FUNCS(getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r
  AC_CHECK_FUNCS(getgrouplist getline getdelim)
  AC_CHECK_FUNCS(inet_ntop inet_pton innetgr)
  AC_CHECK_FUNCS([ruserok_af ruserok], [break])
index ee319d11b89a439739930958cc4af025d5209e65..04e617326d4fbf14b24061a172db694de6cd04c6 100644 (file)
@@ -1,4 +1,4 @@
-From 20e5efe4b2a8471bc52e480e53cff68a4de19c56 Mon Sep 17 00:00:00 2001
+From a35daea1b8be768d1b0be6eae157fbf3e5380f92 Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <yszhou4tech@gmail.com>
 Date: Wed, 17 Jun 2015 18:22:31 +0800
 Subject: [PATCH 4/7] build: fix build when crypt() is not part of crypt_libs.
@@ -11,10 +11,10 @@ Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/configure.ac b/configure.ac
-index 8de6edf..c15441b 100644
+index ca4bf5b..6553c78 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -416,7 +416,7 @@ AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"],
+@@ -408,7 +408,7 @@ AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"],
    [crypt_libs="crypt"])
  
  BACKUP_LIBS=$LIBS
index 1320124392783ae26d3b48181069c30274ed167b..cd9b0a80237285b17608ced608cdc79ce9b39680 100644 (file)
@@ -1,4 +1,4 @@
-From df7abf333d19aefd166f613b696345732ae4c9c8 Mon Sep 17 00:00:00 2001
+From 1563e57ea8ab9d123f765129a6840929ef58ff7a Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <yszhou4tech@gmail.com>
 Date: Wed, 17 Jun 2015 20:38:41 +0800
 Subject: [PATCH 5/7] build: fix doc build.
index bfdfd8b4c05685722d3db657d37212277ae3aa8c..014684f296ee924e92a7754bbcb212c584e47e47 100644 (file)
@@ -1,4 +1,4 @@
-From 596797ab7f46fb4d0338e75db7c0d1019cd4df87 Mon Sep 17 00:00:00 2001
+From 2e3ed4c6fb09f84fede589047d37d11783202d34 Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <yszhou4tech@gmail.com>
 Date: Wed, 17 Jun 2015 18:16:18 +0800
 Subject: [PATCH 6/7] pam_unix: fix compilation in case rpc/rpc.h is missing.
index 7108b6bed4af8c0ca8cc01b113497dc261a4b5f0..f79b01aeb5f8ae6c7d4be0a996b0429037bc6e3a 100644 (file)
@@ -1,4 +1,4 @@
-From 9e2fa22891a87592c1a04801623fea5be40cb581 Mon Sep 17 00:00:00 2001
+From c681bd104627139eac2f40fe303e1f67676233e8 Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <yszhou4tech@gmail.com>
 Date: Wed, 17 Jun 2015 15:33:43 +0800
 Subject: [PATCH 7/7] Check if innetgr is available at compile time.
git clone https://git.99rst.org/PROJECT