From 8c9fc87bf43b770eddfa2548963663f1bd35c4f7 Mon Sep 17 00:00:00 2001 From: "Jason D. McCormick" Date: Sat, 24 Sep 2022 11:43:15 -0400 Subject: add --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..78b2d3b --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +INSTALLABLES = \ + $(DESTDIR)/usr/local/sbin/firehol2nft \ + $(DESTDIR)/usr/local/sbin/firehol2nft-load \ + $(DESTDIR)/etc/cron.d/firehol2nft + +install: dirs $(INSTALLABLES) + +dirs: + mkdir -p -m 0755 $(DESTDIR)/usr/local/sbin + mkdir -p -m 0755 $(DESTDIR)/etc/cron.d + +clean: + rm -rf ./tmasd + +$(DESTDIR)/usr/local/sbin/%: % + install -m 0755 -o 0 -g 0 $< $@ + +$(DESTDIR)/etc/cron.d/firehol2nft: firehol2nft.cron + install -m 0640 -o 0 -g 0 $< $@ -- cgit v1.2.3