summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tokeninit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tokeninit/Makefile')
-rw-r--r--usr.sbin/tokeninit/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/usr.sbin/tokeninit/Makefile b/usr.sbin/tokeninit/Makefile
new file mode 100644
index 00000000000..431e9a9bf52
--- /dev/null
+++ b/usr.sbin/tokeninit/Makefile
@@ -0,0 +1,27 @@
+# $OpenBSD: Makefile,v 1.1 2000/12/20 02:08:09 millert Exp $
+
+PROG= tokeninit
+SRCS= tokeninit.c init.c token.c tokendb.c
+MAN= tokeninit.8
+LDADD+= -ldes
+DPADD= ${LIBDES}
+
+CFLAGS+=-I${.CURDIR}/../../libexec/login_token
+.PATH: ${.CURDIR}/../../libexec/login_token
+
+TOKENS= activ crypto snk
+
+MLINKS= tokeninit.8 activinit.8
+MLINKS+=tokeninit.8 cryptoinit.8
+MLINKS+=tokeninit.8 snkinit.8
+
+BINMODE=500
+
+afterinstall:
+ for i in ${TOKENS} ; do \
+ cd ${DESTDIR}/${BINDIR} && \
+ rm -f $${i}init && \
+ ln ${PROG} $${i}init ; \
+ done
+
+.include <bsd.prog.mk>