-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
36 lines (34 loc) · 1.11 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
31
32
33
34
35
36
#makefile for ax25systemd
.PHONY prerequisites:
prerequisites:
@apt -y install ax25-tools ax25-apps
.PHONY install:
install: prerequisites
@/bin/cp -f "ax25.service" "/lib/systemd/system/"
@/bin/cp -f "axup" "/usr/sbin/"
@/bin/chmod +x "/usr/sbin/axup"
@/bin/cp -f "axdown" "/usr/sbin"
@/bin/chmod +x "/usr/sbin/axdown"
@/bin/cp "ax25.default" "/etc/default/ax25"
@/bin/mkdir -p "/usr/share/kissinit"
@/bin/cp "kissinit/nordlink_1k2" "/usr/share/kissinit/"
@/bin/chmod +x "/usr/share/kissinit/nordlink_1k2"
@/bin/cp "kissinit/ej50u" "/usr/share/kissinit/"
@/bin/chmod +x "/usr/share/kissinit/ej50u"
@#
@systemctl daemon-reload
@systemctl enable ax25
@echo " "
@echo "Installed. Edit /etc/default/ax25 and /etc/ax25/axports if needed. When done editing those files, run \"service ax25 start\" to start the service"
.PHONY uninstall:
uninstall:
@service ax25 stop
@systemctl disable ax25
@systemctl daemon-reload
@/bin/rm "/lib/systemd/system/ax25.service"
@/bin/rm "/usr/sbin/axup"
@/bin/rm "/usr/sbin/axdown"
@/bin/rm "/etc/default/ax25"
@/bin/rm -rf "/usr/share/kissinit/"
@echo " "
@echo "Uninstalled !"