Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 349411 | Differences between
and this patch

Collapse All | Expand All

(-)pwauth-2.3.8.orig/config.h (-4 / +4 lines)
Lines 112-118 Link Here
112
112
113
/* #define SHADOW_NONE		/**/
113
/* #define SHADOW_NONE		/**/
114
/* #define SHADOW_BSD		/* FreeBSD, NetBSD, OpenBSD, BSDI, OS X */
114
/* #define SHADOW_BSD		/* FreeBSD, NetBSD, OpenBSD, BSDI, OS X */
115
#define SHADOW_SUN		/* Linux, Solaris, IRIX */
115
/* #define SHADOW_SUN		/* Linux, Solaris, IRIX */
116
/* #define SHADOW_JFH		/**/
116
/* #define SHADOW_JFH		/**/
117
/* #define SHADOW_MDW		/**/
117
/* #define SHADOW_MDW		/**/
118
/* #define SHADOW_AIX		/* AIX */
118
/* #define SHADOW_AIX		/* AIX */
Lines 264-270 Link Here
264
 * to change the uid list.
264
 * to change the uid list.
265
 */
265
 */
266
266
267
#define SERVER_UIDS 72		/* user "nobody" */
267
/* #define SERVER_UIDS 81		/* user "apache" */
268
268
269
269
270
/* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than
270
/* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than
Lines 276-282 Link Here
276
 * given value will be accepted).
276
 * given value will be accepted).
277
 */
277
 */
278
278
279
#define MIN_UNIX_UID 500	/**/
279
/* #define MIN_UNIX_UID 500	/**/
280
280
281
281
282
/* If IGNORE_CASE is defined, the login given is checked in two different
282
/* If IGNORE_CASE is defined, the login given is checked in two different
Lines 304-310 Link Here
304
 * SLEEP_LOCK.  SLEEP_TIME defaults to 2 seconds if not defined.
304
 * SLEEP_LOCK.  SLEEP_TIME defaults to 2 seconds if not defined.
305
 */
305
 */
306
306
307
#define SLEEP_LOCK "/var/run/pwauth.lock"
307
#define SLEEP_LOCK "/var/lock/pwauth"
308
308
309
309
310
/* If ENV_METHOD is defined, pwauth expects mod_auth_external to be configured
310
/* If ENV_METHOD is defined, pwauth expects mod_auth_external to be configured
(-)pwauth-2.3.8.orig/Makefile (-17 / +3 lines)
Lines 2-33 Link Here
2
# system.  Most of the configurable stuff is in config.h
2
# system.  Most of the configurable stuff is in config.h
3
#
3
#
4
#   CC=       an ansi-C compiler.  If "cc" doesn't work, try "gcc".
4
#   CC=       an ansi-C compiler.  If "cc" doesn't work, try "gcc".
5
#   LIB=      libraries to link in.  -lcrypt, -lshadow, -lpam sometimes needed.
5
#   LDFLAGS=  libraries to link in.  -lcrypt, -lshadow, -lpam sometimes needed.
6
#   LOCALFLAGS=   compiler flags.  Usually -g, -O, and stuff like that.
7
8
# Settings for author's system (Redhat 6.1)
9
CC=gcc
10
LIB= -lcrypt
11
LOCALFLAGS= -g 
12
13
# For PAM on Redhat Linux
14
# LIB=-lpam -ldl
15
16
# For PAM on Solaris or OS X
17
# LIB=-lpam
18
6
19
# -------------------- No User Servicable Parts Below -----------------------
7
# -------------------- No User Servicable Parts Below -----------------------
20
8
21
CFLAGS= $(LOCALFLAGS)
22
23
pwauth: main.o auth_aix.o auth_bsd.o auth_hpux.o auth_mdw.o auth_openbsd.o \
9
pwauth: main.o auth_aix.o auth_bsd.o auth_hpux.o auth_mdw.o auth_openbsd.o \
24
	auth_pam.o auth_sun.o fail_log.o lastlog.o nologin.o snooze.o
10
	auth_pam.o auth_sun.o fail_log.o lastlog.o nologin.o snooze.o
25
	$(CC) -o pwauth $(CFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \
11
	$(CC) -o pwauth $(CFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \
26
		auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \
12
		auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \
27
		lastlog.o nologin.o snooze.o $(LIB)
13
		lastlog.o nologin.o snooze.o $(LDFLAGS)
28
14
29
checkfaillog: checkfaillog.o fail_check.o
15
checkfaillog: checkfaillog.o fail_check.o
30
	$(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LIB)
16
	$(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LDFLAGS)
31
17
32
main.o: main.c config.h pwauth.h fail_log.h
18
main.o: main.c config.h pwauth.h fail_log.h
33
auth_aix.o: auth_aix.c config.h pwauth.h
19
auth_aix.o: auth_aix.c config.h pwauth.h

Return to bug 349411