-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
30 lines (29 loc) · 1.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
install:
install -o root -g wheel -m 755 managedb swArpMon /usr/local/bin
install -o root -g wheel -m 644 swArpMon.conf /usr/local/etc
mkdir -p /usr/local/share/swArpMon
@echo ""
@echo "+-------------------------------------+"
@echo "| swArpMon - Switch ARP Monitor |"
@echo "| EnderUNIX SDT @ Turkey |"
@echo "+-------------------------------------+"
@echo "| Please Edit Configuration File: |"
@echo "| /usr/local/etc/swArpMon.conf |"
@echo "+-------------------------------------+"
@echo "| Add following lines to crontab: |"
@echo "| */5 * * * * /usr/local/bin/swArpMon |"
@echo "+-------------------------------------+"
@echo "| To Manage Switch Database, run: |"
@echo "| /usr/local/bin/managedb |"
@echo "+-------------------------------------+"
@echo ""
uninstall:
rm /usr/local/bin/swArpMon /usr/local/bin/managedb /usr/local/etc/swArpMon.conf
@echo "+----------------------------------------+"
@echo "| swArpMon - Switch ARP Monitor |"
@echo "| EnderUNIX SDT @ Turkey |"
@echo "+----------------------------------------+"
@echo "| /usr/local/share/swArpMon not removed. |"
@echo "| Please remove it manually. |"
@echo "+----------------------------------------+"
@echo ""