diff options
author | Adam Spragg <adam@spra.gg> | 2021-05-13 17:49:40 +0100 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2021-05-13 17:49:40 +0100 |
commit | e72b3a36119ef531f3326864c7c89e4301920c09 (patch) | |
tree | 65622f4a309a5444f7342a599d9a9e7739986d1b /makefile |
First working version of spamprox
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 + |