aboutsummaryrefslogtreecommitdiff
path: root/security/pwauth/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/pwauth/files')
-rw-r--r--security/pwauth/files/patch-Makefile22
-rw-r--r--security/pwauth/files/patch-config.c34
-rw-r--r--security/pwauth/files/patch-pwauth.c11
3 files changed, 67 insertions, 0 deletions
diff --git a/security/pwauth/files/patch-Makefile b/security/pwauth/files/patch-Makefile
new file mode 100644
index 000000000000..d9a6b56dbb52
--- /dev/null
+++ b/security/pwauth/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Thu Oct 14 10:01:13 2004
++++ Makefile Thu Oct 14 10:09:38 2004
+@@ -6,9 +6,7 @@
+ # LOCALFLAGS= compiler flags. Usually -g, -O, and stuff like that.
+
+ # Settings for author's system (Redhat 6.1)
+-CC=gcc
+-LIB= -lcrypt
+-LOCALFLAGS= -g
++LIB= -lcrypt -lpam
+
+ # For PAM on Redhat Linux
+ # LIB=-lpam -ldl
+@@ -18,7 +16,7 @@
+
+ # -------------------- No User Servicable Parts Below -----------------------
+
+-CFLAGS= $(LOCALFLAGS)
++all: pwauth
+
+ pwauth: pwauth.o
+ $(CC) -o pwauth $(CFLAGS) pwauth.o $(LIB)
diff --git a/security/pwauth/files/patch-config.c b/security/pwauth/files/patch-config.c
new file mode 100644
index 000000000000..f92d8c739107
--- /dev/null
+++ b/security/pwauth/files/patch-config.c
@@ -0,0 +1,34 @@
+--- config.h.orig Thu Oct 14 10:18:19 2004
++++ config.h Thu Oct 14 10:17:07 2004
+@@ -93,11 +93,11 @@
+
+ /* #define SHADOW_NONE /**/
+ /* #define SHADOW_BSD /**/
+-#define SHADOW_SUN /**/
++/* #define SHADOW_SUN /**/
+ /* #define SHADOW_JFH /**/
+ /* #define SHADOW_MDW /**/
+ /* #define SHADOW_AIX /**/
+-/* #define PAM /**/
++#define PAM /**/
+ /* #define PAM_SOLARIS_26 /**/
+
+
+@@ -145,7 +145,7 @@
+ * last).
+ */
+
+-#define SERVER_UIDS 99 /* user "nobody" */
++#define SERVER_UIDS %%UIDS%% /* user "nobody" */
+
+
+ /* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than
+@@ -156,7 +156,7 @@
+ * given value will be accepted).
+ */
+
+-#define MIN_UNIX_UID 500 /**/
++#define MIN_UNIX_UID %%MINUID%% /**/
+
+
+ /* On failed authentications, pwauth will sleep for SLEEP_TIME seconds, using
diff --git a/security/pwauth/files/patch-pwauth.c b/security/pwauth/files/patch-pwauth.c
new file mode 100644
index 000000000000..669ad82fa182
--- /dev/null
+++ b/security/pwauth/files/patch-pwauth.c
@@ -0,0 +1,11 @@
+--- pwauth.c.orig Thu Oct 14 10:23:59 2004
++++ pwauth.c Thu Oct 14 10:24:11 2004
+@@ -141,7 +141,7 @@
+ #ifdef UNIX_LASTLOG
+ #define NEED_UID
+ #include <utmp.h>
+-#include <lastlog.h>
++//#include <lastlog.h>
+ #ifndef UT_LINESIZE
+ #define UT_LINESIZE 8
+ #endif