summaryrefslogtreecommitdiff
path: root/sysutils/su2/patches
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/su2/patches')
-rw-r--r--sysutils/su2/patches/patch-aa48
-rw-r--r--sysutils/su2/patches/patch-ab25
-rw-r--r--sysutils/su2/patches/patch-ac55
3 files changed, 128 insertions, 0 deletions
diff --git a/sysutils/su2/patches/patch-aa b/sysutils/su2/patches/patch-aa
new file mode 100644
index 00000000000..2877c1df301
--- /dev/null
+++ b/sysutils/su2/patches/patch-aa
@@ -0,0 +1,48 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $
+
+--- Makefile.orig Thu Sep 7 13:50:58 1995
++++ Makefile
+@@ -8,16 +8,16 @@
+ # /etc/super-users and /usr/adm/sulog that are defined
+ # separately.
+ #
+-DEST=/usr/local
++DEST=${PREFIX}
+ BINDIR=$(DEST)/bin
+-MANDIR=$(DEST)/man
++MANDIR=$(DEST)/man/man1
+
+ # OPTIONS:
+ # There are a number of DEFINES that can be used to configure su2. Please
+ # see the source to su2.c for a full listing of all of the available options.
+
+ # Standard
+-OPTIONS=-DFULLPATH
++OPTIONS=-DSU2LOGFILE="\"/var/log/su2.log\"" -DSUPERUSERS="\"$(PREFIX)/etc/super-users\"" -DBROKENCUSERID
+
+ # m88k
+ # OPTIONS=-DFULLPATH -DNOVFORK
+@@ -31,13 +31,19 @@
+ # Shadow Passwords (Solaris)
+ # OPTIONS=-DFULLPATH -DUSE_SHADOW
+
+-CFLAGS=-O $(OPTIONS)
++CFLAGS+= $(OPTIONS)
++LDLIBS=-lcrypt -lcompat
+
+ su2: su2.c
+
+-install: su2
+- install -c -m 4711 -o root su2 $(BINDIR)/su2
+- install -c su2.man $(MANDIR)/su2.1
++su2.1:
++ sed 's,/etc/super,${PREFIX}/etc/super,g' <su2.man >su2.1
++
++all: su2 su2.1
++
++install: su2 su2.1
++ install -c -s -m 4711 -o root su2 $(BINDIR)/su2
++ install -c su2.1 $(MANDIR)/su2.1
+
+ clean:
+ rm -f su2 *.o *.a
diff --git a/sysutils/su2/patches/patch-ab b/sysutils/su2/patches/patch-ab
new file mode 100644
index 00000000000..be3c610ec7a
--- /dev/null
+++ b/sysutils/su2/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $
+
+--- su2.c.orig Thu Sep 7 13:10:11 1995
++++ su2.c
+@@ -113,9 +113,9 @@
+ #ifndef NOSU2RC
+ char *UsersNameFile = ".su2rc";
+ #endif NOSU2RC
+-char *SULog = "/usr/adm/sulog";
++char *SULog = SU2LOGFILE;
+
+-char *UtmpFile = "/etc/utmp";
++char *UtmpFile = "/var/run/utmp";
+
+ #ifndef PATH
+ # ifdef BSD
+@@ -188,7 +188,7 @@
+ void setpwent ();
+ #endif
+
+-#ifndef sgi
++#if !defined(sgi) && !defined(__NetBSD__)
+ struct passwd *getpwuid ();
+ struct passwd *getpwnam ();
+ void endpwent ();
diff --git a/sysutils/su2/patches/patch-ac b/sysutils/su2/patches/patch-ac
new file mode 100644
index 00000000000..ceea31829d3
--- /dev/null
+++ b/sysutils/su2/patches/patch-ac
@@ -0,0 +1,55 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $
+
+--- su2.man.orig Tue Oct 2 22:09:48 2001
++++ su2.man
+@@ -84,7 +84,7 @@
+ .I Su2\^
+ logs all attempts to
+ .I su2\^
+-in /usr/adm/sulog, including failures. Successful attempts are flagged
++in /var/log/sulog, including failures. Successful attempts are flagged
+ with "+", failures with "-".
+ .LP
+ The file
+@@ -110,7 +110,7 @@
+ .B \-u
+ is used to specify a user against whom to check authorization and password.
+ The default value is obtained from
+-.I /etc/utmp.
++.I /var/run/utmp.
+ .TP
+ .B \-x
+ when specified will cause
+@@ -118,7 +118,7 @@
+ to exec the shell without first forking a new process. This option should
+ only be used when the system is out of process slots. When it is used
+ su2 will neither clean up the
+-.I /etc/utmp
++.I /var/run/utmp
+ entry nor reset the ownership and mode of the current
+ .IR /dev/tty?? .
+ Both may be reset with the
+@@ -127,12 +127,12 @@
+ .TP
+ .B \-s
+ will change the current
+-.I /etc/utmp
++.I /var/run/utmp
+ entry to reflect the new user name.
+ .TP
+ .B \-r
+ is used to replace the username in
+-.I /etc/utmp
++.I /var/run/utmp
+ and the mode and ownership of
+ .I /dev/tty??
+ with that associated with the current process userid.
+@@ -178,7 +178,7 @@
+ $HOME/.su2rc
+ list of users authorized to change to a specific user.
+ .TP
+-/usr/adm/sulog
++/var/log/su2.log
+ log of
+ .I su2
+ and