diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..11291f7 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin +LIBEXECDIR = $(PREFIX)/libexec +MANDIR = $(PREFIX)/man/man8 + +install: + install -d $(BINDIR) $(LIBEXECDIR) $(MANDIR) + install -m 0755 bin/portzap $(BINDIR) + install -m 0755 -d libexec/portzap $(LIBEXECDIR) + install -m 0644 man/man8/portzap.8 $(MANDIR) + +deinstall: + rm -rf $(LIBEXECDIR)/portzap + rm -f $(BINDIR)/portzap + rm -f $(MANDIR)/portzap.8 diff --git a/README.md b/README.md index 24db00b..32c794c 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,11 @@ portzap is a utility that manages a local copy of the ## Install -``` -$ git clone https://github.com/0x1eef/portzap.git -$ cd portzap -# cp -R bin /usr/local/ -# cp -R libexec /usr/local/ -# portzap adduser -# pw groupmod -n _portzap -m -``` + $ git clone https://github.com/0x1eef/portzap.git + $ cd portzap + # make install + # portzap adduser + # pw groupmod -n _portzap -m ## Sources