Commit 04be7f0f authored by Dmitry's avatar Dmitry Committed by Thomas Petazzoni
Browse files

Add package linux-pam

parent 80b43964
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@ source "package/libnspr/Config.in"
source "package/libsigc/Config.in"
source "package/libtpl/Config.in"
source "package/liburcu/Config.in"
source "package/linux-pam/Config.in"
source "package/lttng-libust/Config.in"
source "package/orc/Config.in"
source "package/poco/Config.in"
+15 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LINUX_PAM
	bool "linux-pam"
	select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
	select BR2_PACKAGE_FLEX
	select BR2_PACKAGE_FLEX_LIBFL
	depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
	help
	  A Security Framework that Provides Authentication for Applications

	  http://linux-pam.org

comment "linux-pam requires a toolchain with WCHAR and locale support"
	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+20 −0
Original line number Diff line number Diff line
Add check for ruserok

ruserok is not available/functional in uclibc, provide conditions for compilation
where needed.

Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>

Index: linux-pam-1.1.4/configure.in
============================================================================
--- linux-pam-1.1.4/configure.in	2011-06-24 06:46:33.000000000 -0400
+++ linux-pam-1.1.4/configure.in	2012-08-09 21:14:11.000000000 -0400
@@ -522,7 +522,7 @@
 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)
-AC_CHECK_FUNCS(inet_ntop inet_pton innetgr ruserok_af)
+AC_CHECK_FUNCS(inet_ntop inet_pton innetgr ruserok_af ruserok)
 
 AC_CHECK_FUNCS(unshare, [UNSHARE=yes], [UNSHARE=no])
 AM_CONDITIONAL([HAVE_UNSHARE], [test "$UNSHARE" = yes])
+33 −0
Original line number Diff line number Diff line
Disable generation of documentation

Generation of documentation is not necessary in Buildroot, disable it completely.

Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>

Index: linux-pam-1.1.4/doc/Makefile.am
============================================================================
--- linux-pam-1.1.4/doc/Makefile.am	2011-06-21 05:04:56.000000000 -0400
+++ linux-pam-1.1.4/doc/Makefile.am	2012-08-09 05:59:23.000000000 -0400
@@ -2,8 +2,6 @@
 # Copyright (c) 2005, 2006 Thorsten Kukuk <kukuk@suse.de>
 #
 
-SUBDIRS = man specs sag adg mwg
-
 CLEANFILES = *~
 
 dist_html_DATA = index.html
@@ -11,12 +9,4 @@
 #######################################################
 
 releasedocs: all
-	$(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/specs
-	cp -av specs/draft-morgan-pam-current.txt \
-		$(top_builddir)/Linux-PAM-$(VERSION)/doc/specs/
-	cp -av $(srcdir)/specs/rfc86.0.txt \
-		$(top_builddir)/Linux-PAM-$(VERSION)/doc/specs/
-	make -C sag releasedocs
-	make -C adg releasedocs
-	make -C mwg releasedocs
-	
+	/bin/true
+26 −0
Original line number Diff line number Diff line
Conditionally compile per innetgr availability

innetgr is not available/functional in uclibc, provide conditions for compilation.

Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>

Index: linux-pam-1.1.4/modules/pam_group/pam_group.c
============================================================================
--- linux-pam-1.1.4/modules/pam_group/pam_group.c	2011-06-21 05:04:56.000000000 -0400
+++ linux-pam-1.1.4/modules/pam_group/pam_group.c	2012-08-09 21:35:06.000000000 -0400
@@ -655,8 +655,14 @@
 	    continue;
 	}
 	/* If buffer starts with @, we are using netgroups */
-	if (buffer[0] == '@')
+	if (buffer[0] == '@') {
+#ifdef HAVE_INNETGR
 	  good &= innetgr (&buffer[1], NULL, user, NULL);
+#else
+	  good = 0;
+	  pam_syslog (pamh, LOG_ERR, "pam_group does not have netgroup support");
+#endif  /* HAVE_INNETGR */
+	}
 	/* otherwise, if the buffer starts with %, it's a UNIX group */
 	else if (buffer[0] == '%')
           good &= pam_modutil_user_in_group_nam_nam(pamh, user, &buffer[1]);
Loading