summaryrefslogtreecommitdiff
path: root/sysutils/su2/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/su2/files')
-rw-r--r--sysutils/su2/files/patch-aa41
-rw-r--r--sysutils/su2/files/patch-ab38
2 files changed, 79 insertions, 0 deletions
diff --git a/sysutils/su2/files/patch-aa b/sysutils/su2/files/patch-aa
new file mode 100644
index 000000000000..93a4b61a961b
--- /dev/null
+++ b/sysutils/su2/files/patch-aa
@@ -0,0 +1,41 @@
+--- Makefile.orig Thu Dec 19 20:41:49 1996
++++ Makefile Thu Dec 19 20:47:14 1996
+@@ -8,16 +8,17 @@
+ # /etc/super-users and /usr/adm/sulog that are defined
+ # separately.
+ #
+-DEST=/usr/local
++PREFIX?=/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\"" -DBROKENCUSERID
+
+ # m88k
+ # OPTIONS=-DFULLPATH -DNOVFORK
+@@ -31,12 +32,15 @@
+ # Shadow Passwords (Solaris)
+ # OPTIONS=-DFULLPATH -DUSE_SHADOW
+
+-CFLAGS=-O $(OPTIONS)
++CFLAGS+= $(OPTIONS)
++LDLIBS=-lcrypt -lcompat
+
+ su2: su2.c
+
++all: su2
++
+ install: su2
+- install -c -m 4711 -o root su2 $(BINDIR)/su2
++ install -c -s -m 4711 -o root su2 $(BINDIR)/su2
+ install -c su2.man $(MANDIR)/su2.1
+
+ clean:
diff --git a/sysutils/su2/files/patch-ab b/sysutils/su2/files/patch-ab
new file mode 100644
index 000000000000..1f610274a319
--- /dev/null
+++ b/sysutils/su2/files/patch-ab
@@ -0,0 +1,38 @@
+--- su2.c.orig Thu Dec 19 20:41:50 1996
++++ su2.c Thu Dec 19 20:41:50 1996
+@@ -113,7 +113,7 @@
+ #ifndef NOSU2RC
+ char *UsersNameFile = ".su2rc";
+ #endif NOSU2RC
+-char *SULog = "/usr/adm/sulog";
++char *SULog = SU2LOGFILE;
+
+ char *UtmpFile = "/etc/utmp";
+
+@@ -182,13 +182,15 @@
+
+ char *malloc ();
+
++#if !(defined(BSD) && (BSD >= 199306))
+ #ifdef OSF
+ int setpwent ();
+-#else
++#elseif !(defined(BSD) && (BSD >= 199306))
+ void setpwent ();
+ #endif
++#endif
+
+-#ifndef sgi
++#if !defined(sgi) && !(defined(BSD) && (BSD >= 199306))
+ struct passwd *getpwuid ();
+ struct passwd *getpwnam ();
+ void endpwent ();
+@@ -570,7 +572,7 @@
+ }
+ }
+
+-#ifndef sgi
++#if !(defined(sgi) && (defined(BSD) && (BSD >= 199306)))
+ setpwent ();
+ #endif
+