mirror of
https://github.com/jrbrtsn/ban2fail
synced 2024-06-16 03:48:03 +00:00
Touch ups
This commit is contained in:
parent
5549c4d188
commit
6993617dba
@ -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. #
|
||||||
|
4
Makefile
4
Makefile
@ -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
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
|
Loading…
Reference in New Issue
Block a user