summaryrefslogtreecommitdiff
path: root/sysutils/su2
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1996-12-19 12:10:06 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1996-12-19 12:10:06 +0000
commitcfc860b3744fda8de97cba64330338040bae989f (patch)
tree1eba2f85be00a91f8bfce01f774e60be0f4fed0a /sysutils/su2
parentCreate pixmap directory before attempting to install there. (diff)
New port: su2.
An enhanced su, allows user to su with own password, etc. Reviewed by: max Submitted by: John-Mark Gurney <gurney_j@efn.org>
Notes
Notes: svn path=/head/; revision=5037
Diffstat (limited to 'sysutils/su2')
-rw-r--r--sysutils/su2/Makefile18
-rw-r--r--sysutils/su2/distinfo1
-rw-r--r--sysutils/su2/files/patch-aa41
-rw-r--r--sysutils/su2/files/patch-ab38
-rw-r--r--sysutils/su2/pkg-comment1
-rw-r--r--sysutils/su2/pkg-descr21
-rw-r--r--sysutils/su2/pkg-plist2
7 files changed, 122 insertions, 0 deletions
diff --git a/sysutils/su2/Makefile b/sysutils/su2/Makefile
new file mode 100644
index 000000000000..d50e6a1d6d06
--- /dev/null
+++ b/sysutils/su2/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: su2
+# Version required: 1.3
+# Date created: 12 Sep 1996
+# Whom: gurney_j@efn.org
+#
+# $Id$
+#
+
+DISTNAME= su2-1.3
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.ccs.neu.edu/pub/sysadmin/
+
+MAINTAINER= gurney_j@efn.org
+
+NO_CDROM= "Don't sell for profit"
+MAN1= su2.1
+
+.include <bsd.port.mk>
diff --git a/sysutils/su2/distinfo b/sysutils/su2/distinfo
new file mode 100644
index 000000000000..b0daea84d66a
--- /dev/null
+++ b/sysutils/su2/distinfo
@@ -0,0 +1 @@
+MD5 (su2-1.3.tar.gz) = 5cdecd54e0a7ecb0469e3881ed245518
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
+
diff --git a/sysutils/su2/pkg-comment b/sysutils/su2/pkg-comment
new file mode 100644
index 000000000000..6d7c6b1a06ab
--- /dev/null
+++ b/sysutils/su2/pkg-comment
@@ -0,0 +1 @@
+an enhanced su, allows users to su with own password + more
diff --git a/sysutils/su2/pkg-descr b/sysutils/su2/pkg-descr
new file mode 100644
index 000000000000..4bef78c5daac
--- /dev/null
+++ b/sysutils/su2/pkg-descr
@@ -0,0 +1,21 @@
+From the README:
+
+ su2 is a great program for anyone that has anything to do with
+system adiministration. su2 gives you the ability to masquerade with
+the UID of other users. You use own password to switch. Probably the
+biggest benefit of su2 is that you retain your own customized shell
+environment.
+
+ For the most part, this program is used by system administrators to
+become root, but su2 has been written to enable much more flexibility
+than this. Regular users can put a .su2rc file in their home
+directory to enable other users to become them. While this may sound
+odd, it is sometimes useful to allow a number of users to masquerade
+around with the uid of restricted accounts. One such example of this
+is a 'www' account which is a common occurance with the proliferation
+of the web. While the www user's password may be starred out to
+disable direct logins, root could put a set of usernames into
+~www/.su2rc to enable these users to 'become' www and do Web
+adiministration. [This feature can be disabled if you are worried
+about 'account sharing.']
+
diff --git a/sysutils/su2/pkg-plist b/sysutils/su2/pkg-plist
new file mode 100644
index 000000000000..a583436b8551
--- /dev/null
+++ b/sysutils/su2/pkg-plist
@@ -0,0 +1,2 @@
+bin/su2
+man/man1/su2.1.gz