Auto start stayrtr on debian flavors, create missing directories

Now you can actually install stayrtr from the deb/rpm's made by
the Makefile, and they work!

Tag: https://github.com/bgp/stayrtr/issues/58
This commit is contained in:
Ben Cartwright-Cox
2023-01-23 14:58:00 +00:00
parent 0e541d3cec
commit 7944d8f2d5
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -75,6 +75,8 @@ package-deb-stayrtr: prepare
--architecture $(ARCH) \
--license "$(LICENSE)" \
--package $(DIST_DIR) \
--after-install package/after-install-debian.sh \
package/.keep=/usr/share/stayrtr/.keep \
$(OUTPUT_STAYRTR)=/usr/bin/stayrtr \
package/stayrtr.service=/lib/systemd/system/stayrtr.service \
package/stayrtr.env=/etc/default/stayrtr \
@@ -90,6 +92,7 @@ package-rpm-stayrtr: prepare
--license "$(LICENSE) "\
--package $(DIST_DIR) \
$(OUTPUT_STAYRTR)=/usr/bin/stayrtr \
package/.keep=/usr/share/stayrtr/.keep \
package/stayrtr.service=/lib/systemd/system/stayrtr.service \
package/stayrtr.env=/etc/default/stayrtr \
$(OUTPUT_RTRDUMP)=/usr/bin/rtrdump \
View File
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Debian convention is to auto start software
systemctl daemon-reload
systemctl enable stayrtr
systemctl start stayrtr