1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/sysutils/su2/files/patch-aa
Masafumi Max NAKANE cfc860b374 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>
1996-12-19 12:10:06 +00:00

42 lines
954 B
Plaintext

--- 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: