1
1
mirror of https://github.com/jrbrtsn/ban2fail synced 2024-06-16 11:58:01 +00:00

Touch ups

This commit is contained in:
john 2019-12-03 22:08:14 -05:00
parent 5549c4d188
commit 6993617dba
3 changed files with 21 additions and 2 deletions

@ -3,7 +3,7 @@ libsDir := $(baseDir)/libs
projectName := ban2fail projectName := ban2fail
versions := debug release versions := debug release
cc_exe := ban2fail fsckdns cc_exe := ban2fail fsckdns
install_dir := /usr/local/bin #install_dir := /usr/local/bin
######################################## ########################################
# Set up sources & libraries here. # # Set up sources & libraries here. #

@ -3,7 +3,7 @@ libsDir := $(baseDir)/libs
projectName := ban2fail projectName := ban2fail
versions := debug release versions := debug release
cc_exe := ban2fail fsckdns cc_exe := ban2fail fsckdns
install_dir := /usr/local/bin #install_dir := /usr/local/bin
######################################## ########################################
# Set up sources & libraries here. # # Set up sources & libraries here. #
@ -32,6 +32,8 @@ src := \
pdns.c \ pdns.c \
ptrvec.c \ ptrvec.c \
str.c \ str.c \
target.c \
timestamp.c \
util.c \ util.c \
libs := z crypto GeoIP pthread db libs := z crypto GeoIP pthread db

17
install.sh Executable file

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