2019-01-24 19:50:18 +01:00
|
|
|
prefix = /usr/local
|
|
|
|
|
|
|
|
install:
|
2019-01-24 20:00:13 +01:00
|
|
|
mkdir -p $(DESTDIR)$(prefix)/sbin
|
|
|
|
mkdir -p $(DESTDIR)$(prefix)/etc/proxmox-routing
|
|
|
|
mkdir -p $(DESTDIR)/etc/systemd/system/
|
|
|
|
mkdir -p $(DESTDIR)/etc/logrotate.d/
|
2019-01-24 19:50:18 +01:00
|
|
|
|
2019-01-24 20:00:13 +01:00
|
|
|
cp creationRoutesVM.sh $(DESTDIR)$(prefix)/sbin/creationRoutesVM
|
|
|
|
cp inotify-triggered-vm-route-creation.sh $(DESTDIR)$(prefix)/sbin/
|
|
|
|
cp send-icmp.py $(DESTDIR)$(prefix)/sbin/
|
2019-01-24 19:50:18 +01:00
|
|
|
|
2019-01-25 09:58:21 +01:00
|
|
|
cp creds.example $(DESTDIR)$(prefix)/etc/proxmox-routing/
|
2019-01-24 19:50:18 +01:00
|
|
|
|
2019-01-24 20:34:45 +01:00
|
|
|
cp vm-routes-creation.service $(DESTDIR)/etc/systemd/system/
|
|
|
|
cp vm-routes-creation.logrotate $(DESTDIR)/etc/logrotate.d/vm-routes-creation.conf
|
2019-01-24 20:39:53 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -r $(DESTDIR)$(prefix)/sbin/creationRoutesVM
|
|
|
|
rm -r $(DESTDIR)$(prefix)/sbin/inotify-triggered-vm-route-creation.sh
|
|
|
|
rm -r $(DESTDIR)$(prefix)/sbin/send-icmp.py
|
|
|
|
rm -r $(DESTDIR)$(prefix)/etc/proxmox-routing/
|
|
|
|
rm -r $(DESTDIR)/etc/systemd/system/vm-routes-creation.service
|
|
|
|
rm -r $(DESTDIR)/etc/logrotate.d/vm-routes-creation.conf
|