commit | author | age
|
3a37e6
|
1 |
# vilain - anti-bruteforce for OpenBSD |
T |
2 |
# See LICENSE file for copyright and license details. |
|
3 |
# |
|
4 |
# vilain version |
b8b614
|
5 |
VERSION = 0.7 |
3a37e6
|
6 |
|
T |
7 |
# Customize below to fit your system |
|
8 |
# paths |
|
9 |
PREFIX = /usr/local |
|
10 |
MANPREFIX = ${PREFIX}/man/man1/ |
|
11 |
|
8f00aa
|
12 |
install: |
3a37e6
|
13 |
@echo installing executable file to ${DESTDIR}${PREFIX}/bin |
T |
14 |
@mkdir -p ${DESTDIR}${PREFIX}/bin |
|
15 |
@cp -f vilain ${DESTDIR}${PREFIX}/bin |
b8b614
|
16 |
@cp -f vilainreport ${DESTDIR}${PREFIX}/bin |
3a37e6
|
17 |
@echo installing script file to ${DESTDIR}${PREFIX}/sbin |
T |
18 |
@cp -f vilain.py ${DESTDIR}${PREFIX}/sbin |
b8b614
|
19 |
@cp -f vilainreport.py ${DESTDIR}${PREFIX}/sbin |
3a37e6
|
20 |
@chmod 755 ${DESTDIR}${PREFIX}/bin/vilain |
b8b614
|
21 |
@chmod 755 ${DESTDIR}${PREFIX}/bin/vilainreport |
3a37e6
|
22 |
@chmod 644 ${DESTDIR}${PREFIX}/sbin/vilain.py |
b8b614
|
23 |
@chmod 644 ${DESTDIR}${PREFIX}/sbin/vilainreport.py |
6bbbca
|
24 |
@echo installing sample config file |
T |
25 |
@cp -f vilain.conf /etc/vilain.conf |
|
26 |
@chmod 644 /etc/vilain.conf |
3a37e6
|
27 |
@echo installing init script in /etc/rc.d |
T |
28 |
@cp -f vilain.rc /etc/rc.d/vilain |
|
29 |
@chmod 755 /etc/rc.d/vilain |
|
30 |
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
|
31 |
@mkdir -p ${DESTDIR}${MANPREFIX}/ |
|
32 |
@cp -f vilain.1 ${DESTDIR}${MANPREFIX}/vilain.1 |
|
33 |
@chmod 644 ${DESTDIR}${MANPREFIX}/vilain.1 |
|
34 |
|
|
35 |
|
|
36 |
uninstall: |
|
37 |
@echo removing executable file from ${DESTDIR}${PREFIX}/bin |
|
38 |
@rm -f ${DESTDIR}${PREFIX}/bin/vilain |
b8b614
|
39 |
@rm -f ${DESTDIR}${PREFIX}/bin/vilainreport |
3a37e6
|
40 |
@rm -f ${DESTDIR}${PREFIX}/sbin/vilain.py |
b8b614
|
41 |
@rm -f ${DESTDIR}${PREFIX}/sbin/vilainreport.py |
3a37e6
|
42 |
@echo removing manual page to ${DESTDIR}${MANPREFIX}/ |
T |
43 |
@rm -f ${DESTDIR}${MANPREFIX}/vilain.1 |
6bbbca
|
44 |
@echo Remove configuration file manually if you want, located at /etc/vilain.conf |
3a37e6
|
45 |
|
8f00aa
|
46 |
.PHONY: install uninstall |