diff options
| author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
|---|---|---|
| committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
| commit | 7792c21583f7131ad63a9cb6e25b7ef38652d3a7 (patch) | |
| tree | 35ae86a1ec3a303f6ac7c0146111c635eff41fb4 /sysutils/su2/files/patch-Makefile | |
| parent | - Switch databases/libmemcache to USES=libtool, drop .la files (diff) | |
Rename sysutils/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'sysutils/su2/files/patch-Makefile')
| -rw-r--r-- | sysutils/su2/files/patch-Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/su2/files/patch-Makefile b/sysutils/su2/files/patch-Makefile new file mode 100644 index 000000000000..8181b496d4a2 --- /dev/null +++ b/sysutils/su2/files/patch-Makefile @@ -0,0 +1,41 @@ +--- Makefile.orig Sun Mar 2 20:17:14 1997 ++++ Makefile Sun Mar 2 20:24:15 1997 +@@ -8,16 +8,17 @@ + # /etc/super-users and /usr/adm/sulog that are defined + # separately. + # +-DEST=/usr/local ++PREFIX?=/usr/local ++DEST=${DESTDIR}${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,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 su2 $(BINDIR)/su2 + install -c su2.man $(MANDIR)/su2.1 + + clean: |
