From 6993617dba2cfe9b8591426e2f63c9971803985a Mon Sep 17 00:00:00 2001 From: john Date: Tue, 3 Dec 2019 22:08:14 -0500 Subject: [PATCH] Touch ups --- Jmakefile | 2 +- Makefile | 4 +++- install.sh | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100755 install.sh diff --git a/Jmakefile b/Jmakefile index 30e215a..9bb9324 100644 --- a/Jmakefile +++ b/Jmakefile @@ -3,7 +3,7 @@ libsDir := $(baseDir)/libs projectName := ban2fail versions := debug release cc_exe := ban2fail fsckdns -install_dir := /usr/local/bin +#install_dir := /usr/local/bin ######################################## # Set up sources & libraries here. # diff --git a/Makefile b/Makefile index 01121f9..d1dbd65 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ libsDir := $(baseDir)/libs projectName := ban2fail versions := debug release cc_exe := ban2fail fsckdns -install_dir := /usr/local/bin +#install_dir := /usr/local/bin ######################################## # Set up sources & libraries here. # @@ -32,6 +32,8 @@ src := \ pdns.c \ ptrvec.c \ str.c \ + target.c \ + timestamp.c \ util.c \ libs := z crypto GeoIP pthread db diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..ab00087 --- /dev/null +++ b/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash -e + +BINDIR=/usr/local/bin +B2F=ban2fail +DST=$BINDIR/$B2F + +echo $0 $@ +env | grep INSTALL +strip release/$B2F +sudo cp release/$B2F $DST +sudo chown .adm $DST +sudo chmod 4750 $DST + +# TODO: create user, group, yadda yadda + + +exit 0