From f5eb3c5b008c044a253c0be753e9573e215d1f6c Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 2 Nov 2019 05:19:02 -0400 Subject: Add calico rc script --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 62cf6b0..5000038 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,11 @@ CFLAGS += -I${LIBRESSL_PREFIX}/include LDFLAGS += -L${LIBRESSL_PREFIX}/lib LDLIBS = -ltls --include config.mk - BINS = calico pounce MANS = ${BINS:=.1} +RCS = ${BINS:%=rc.d/%} + +-include config.mk OBJS += bounce.o OBJS += client.o @@ -37,16 +38,16 @@ tags: *.c *.h clean: rm -f tags ${BINS} ${OBJS} dispatch.o -install: ${BINS} ${MANS} rc.pounce +install: ${BINS} ${MANS} ${RCS} install -d ${PREFIX}/bin ${MANDIR}/man1 ${ETCDIR}/rc.d install ${BINS} ${PREFIX}/bin install -m 644 ${MANS} ${MANDIR}/man1 - install rc.pounce ${ETCDIR}/rc.d/pounce + install ${RCS} ${ETCDIR}/rc.d uninstall: rm -f ${BINS:%=${PREFIX}/bin/%} rm -f ${MANS:%=${MANDIR}/man1/%} - rm -f ${ETCDIR}/rc.d/pounce + rm -f ${RCS:%=${ETCDIR}/%} localhost.crt: printf "[dn]\nCN=localhost\n[req]\ndistinguished_name=dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" \ -- cgit 1.4.1