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

View File

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

View File

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

17
install.sh Executable file
View 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