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 |
3a37e6
|
24 |
@echo installing init script in /etc/rc.d |
T |
25 |
@cp -f vilain.rc /etc/rc.d/vilain |
|
26 |
@chmod 755 /etc/rc.d/vilain |
|
27 |
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
|
28 |
@mkdir -p ${DESTDIR}${MANPREFIX}/ |
|
29 |
@cp -f vilain.1 ${DESTDIR}${MANPREFIX}/vilain.1 |
|
30 |
@chmod 644 ${DESTDIR}${MANPREFIX}/vilain.1 |
|
31 |
|
|
32 |
|
|
33 |
uninstall: |
|
34 |
@echo removing executable file from ${DESTDIR}${PREFIX}/bin |
|
35 |
@rm -f ${DESTDIR}${PREFIX}/bin/vilain |
b8b614
|
36 |
@rm -f ${DESTDIR}${PREFIX}/bin/vilainreport |
3a37e6
|
37 |
@rm -f ${DESTDIR}${PREFIX}/sbin/vilain.py |
b8b614
|
38 |
@rm -f ${DESTDIR}${PREFIX}/sbin/vilainreport.py |
3a37e6
|
39 |
@echo removing manual page to ${DESTDIR}${MANPREFIX}/ |
T |
40 |
@rm -f ${DESTDIR}${MANPREFIX}/vilain.1 |
|
41 |
|
8f00aa
|
42 |
.PHONY: install uninstall |