aboutsummaryrefslogtreecommitdiff
path: root/lib/libopie/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libopie/Makefile')
-rw-r--r--lib/libopie/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libopie/Makefile b/lib/libopie/Makefile
new file mode 100644
index 000000000000..e386f69ada8a
--- /dev/null
+++ b/lib/libopie/Makefile
@@ -0,0 +1,30 @@
+# Makefile for libopie
+#
+# $Id: Makefile,v 1.4 1997/09/29 10:49:21 ache Exp $
+#
+OPIE_DIST?= ${.CURDIR}/../../contrib/opie
+DIST_DIR= ${OPIE_DIST}/${.CURDIR:T}
+
+KEYFILE?= \"/etc/opiekeys\"
+
+.PATH: ${DIST_DIR} ${OPIE_DIST}/libmissing
+
+LIB= opie
+SRCS= atob8.c btoa8.c btoh.c challenge.c getsequence.c hash.c hashlen.c \
+ keycrunch.c lock.c lookup.c newseed.c parsechallenge.c passcheck.c \
+ passwd.c randomchallenge.c readpass.c unlock.c verify.c version.c \
+ btoe.c accessfile.c generator.c insecure.c getutmpentry.c \
+ readrec.c writerec.c login.c open.c logwtmp.c \
+ getutline.c pututline.c endutent.c # from libmissing
+
+CFLAGS+=-I${.CURDIR} -I${OPIE_DIST} -I${DIST_DIR} \
+ -DKEY_FILE=${KEYFILE}
+
+MAN4= ${OPIE_DIST}/opie.4
+MAN5= ${OPIE_DIST}/opiekeys.5 ${OPIE_DIST}/opieaccess.5
+
+beforeinstall:
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${OPIE_DIST}/opie.h \
+ ${DESTDIR}/usr/include
+
+.include <bsd.lib.mk>