Add install, deinstall Makefile targets

Fix #12
This commit is contained in:
0x1eef 2024-04-02 03:45:07 -03:00
parent 9ed5d20f21
commit c0a305579e
2 changed files with 20 additions and 8 deletions

15
Makefile Normal file
View file

@ -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

View file

@ -31,14 +31,11 @@ portzap is a utility that manages a local copy of the
## Install ## Install
``` $ git clone https://github.com/0x1eef/portzap.git
$ git clone https://github.com/0x1eef/portzap.git $ cd portzap
$ cd portzap # make install
# cp -R bin /usr/local/ # portzap adduser
# cp -R libexec /usr/local/ # pw groupmod -n _portzap -m <user>
# portzap adduser
# pw groupmod -n _portzap -m <user>
```
## Sources ## Sources