From e72b3a36119ef531f3326864c7c89e4301920c09 Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Thu, 13 May 2021 17:49:40 +0100 Subject: First working version of spamprox --- makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..f0f8073 --- /dev/null +++ b/makefile @@ -0,0 +1,16 @@ + +PREFIX ?= /usr/local + +.PHONY: default +default: + @echo Nothing to build! + @echo Run \"make install\" to install. + @echo Or e.g. \"make install PREFIX=/opt\" to install to a non-default location \($(PREFIX)\) + +.PHONY: install +install: + install --owner=mail --group=mail --mode=700 -d /var/spool/spamprox + install -D -t $(PREFIX)/sbin/ spamprox + install -D -t $(PREFIX)/lib/systemd/system/ spamprox.socket spamprox@.service + @which systemctl >/dev/null && systemctl daemon-reload + -- cgit v1.2.1