freebsd-ports/security/vlock/files/patch-aa
Trevor Johnson 1a71f31ac4 new port of vlock 1.3, a utility to lock a console until a password
is entered

PR:		21834
Submitted by:	George Reid <services@nevernet.net>
2000-10-22 15:36:25 +00:00

37 lines
868 B
Plaintext

--- Makefile.orig Sun Oct 8 18:03:19 2000
+++ Makefile Sun Oct 8 18:03:24 2000
@@ -1,24 +1,19 @@
# vlock makefile
-CC = gcc
-# remove the -DUSE_PAM, -ldl, and -lpam if you aren't using PAM
-RPM_OPT_FLAGS=-O2
-CFLAGS = $(RPM_OPT_FLAGS) -DUSE_PAM
-LDFLAGS = -ldl -lpam -lpam_misc
+CFLAGS += -DUSE_PAM
+LDFLAGS = -lpam
OBJS = vlock.o signals.o help.o terminal.o input.o
-vlock: $(OBJS)
+all: vlock
-vlock.man: vlock.1
- groff -man -Tascii vlock.1 > vlock.man
+vlock: $(OBJS)
+ cc $(OBJS) $(LDFLAGS) -o vlock
-vlock.o: vlock.h version.h
-signals.o: vlock.h
-help.o: vlock.h
-terminal.o: vlock.h
-input.o: vlock.h
+install:
+ /usr/bin/install -c -s -o root -g wheel -m 4555 vlock /usr/local/bin/vlock
+ /usr/bin/install -c -o root -g wheel -m 444 vlock.1 /usr/local/man/man1
clean:
- rm -f $(OBJS) vlock core core.vlock
+ rm -f $(OBJS) vlock vlock.core