From 875afe974f0124841e2da99f3070d2d7daa14dc4 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Mon, 9 Jul 2001 17:37:52 +0000 Subject: [PATCH] Provide a WANT_INSECURE_OPIE compile-time option, which is useful if you encrypt all traffic routinely, and is also useful for debugging. Also, (properly) set SUID bit on relevant apps - opieinfo and opiepasswd, which need it to mess with /etc/opiekeys. --- usr.bin/opieinfo/Makefile | 6 ++++++ usr.bin/opiekey/Makefile | 4 ++++ usr.bin/opiepasswd/Makefile | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/usr.bin/opieinfo/Makefile b/usr.bin/opieinfo/Makefile index 182659538685..e0789b80162c 100644 --- a/usr.bin/opieinfo/Makefile +++ b/usr.bin/opieinfo/Makefile @@ -6,9 +6,15 @@ PROG= opieinfo CFLAGS+=-I${OPIE_DIST} +.if defined(WANT_INSECURE_OPIE) && ${WANT_INSECURE_OPIE} == true +CFLAGS+=-DINSECURE_OVERRIDE +.endif + DPADD= ${LIBOPIE} ${LIBMD} LDADD= -lopie -lmd + BINMODE=4555 +INSTALLFLAGS=-fschg .PATH: ${OPIE_DIST} diff --git a/usr.bin/opiekey/Makefile b/usr.bin/opiekey/Makefile index 116ca7ed03a0..9de68557d4b9 100644 --- a/usr.bin/opiekey/Makefile +++ b/usr.bin/opiekey/Makefile @@ -6,6 +6,10 @@ PROG= opiekey CFLAGS+= -I${OPIE_DIST} +.if defined(WANT_INSECURE_OPIE) && ${WANT_INSECURE_OPIE} == true +CFLAGS+=-DINSECURE_OVERRIDE +.endif + DPADD= ${LIBOPIE} ${LIBMD} LDADD= -lopie -lmd diff --git a/usr.bin/opiepasswd/Makefile b/usr.bin/opiepasswd/Makefile index c0bfca269a0e..e7e494266248 100644 --- a/usr.bin/opiepasswd/Makefile +++ b/usr.bin/opiepasswd/Makefile @@ -6,9 +6,16 @@ PROG= opiepasswd CFLAGS+=-I${OPIE_DIST} +.if defined(WANT_INSECURE_OPIE) && ${WANT_INSECURE_OPIE} == true +CFLAGS+=-DINSECURE_OVERRIDE +.endif + DPADD= ${LIBOPIE} ${LIBMD} LDADD= -lopie -lmd +BINMODE=4555 +INSTALLFLAGS=-fschg + .PATH: ${OPIE_DIST} .include