From e61b0919164053482dacea248f1b0e21129ed9b6 Mon Sep 17 00:00:00 2001 From: "Jason D. McCormick" Date: Wed, 20 Dec 2023 20:33:15 -0500 Subject: add crons --- Makefile | 3 ++- debian/control | 4 ++-- doc/Makefile | 13 +++++++++++++ doc/ddns-update-rfc2136.cron | 3 +++ doc/mf-backup.cron | 1 + 5 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 doc/Makefile create mode 100644 doc/ddns-update-rfc2136.cron create mode 100644 doc/mf-backup.cron diff --git a/Makefile b/Makefile index 181a4d9..59ce166 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ RELVER = 1.0 DEBVER = 1 BUILDABLES = \ - bin + bin \ + doc instconf ?= yes ifeq ($(instconf),yes) diff --git a/debian/control b/debian/control index 47778bb..d168a2a 100644 --- a/debian/control +++ b/debian/control @@ -1,5 +1,5 @@ Source: mfamily-scripts -Section: hamradio +Section: Utilities Priority: optional Maintainer: Jason McCormick Build-Depends: debhelper-compat (= 13) @@ -11,5 +11,5 @@ Rules-Requires-Root: binary-targets Package: mfamily-scripts Architecture: all -Depends: ${misc:Depends}, python3-netifaces +Depends: ${misc:Depends}, python3-netifaces, cron Description: MFamily Scripts diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..57e12f1 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,13 @@ +prefix ?= /usr +docdir ?= $(prefix)/share/doc/mfamily-scripts + +DOC_FILES = $(filter-out Makefile, $(wildcard *)) +DOC_INSTALLABLES = $(patsubst %, $(DESTDIR)$(docdir)/%, $(DOC_FILES)) + +INSTALLABLES = $(DOC_INSTALLABLES) + +.PHONY: install +install: $(INSTALLABLES) + +$(DESTDIR)$(docdir)/%: % + install -D -m 0644 $< $@ diff --git a/doc/ddns-update-rfc2136.cron b/doc/ddns-update-rfc2136.cron new file mode 100644 index 0000000..6412e6d --- /dev/null +++ b/doc/ddns-update-rfc2136.cron @@ -0,0 +1,3 @@ +#!/usr/bin/bash +/usr/bin/ddns-update-rfc2136 enp1s0 copper.mfamily.org mfamily.org 172.17.16.16 +/usr/bin/ddns-update-rfc2136 enp1s0 ros-copper.mfamily.org mfamily.org 172.17.16.16 diff --git a/doc/mf-backup.cron b/doc/mf-backup.cron new file mode 100644 index 0000000..448497a --- /dev/null +++ b/doc/mf-backup.cron @@ -0,0 +1 @@ +5 3 * * * root /usr/bin/mf-backup -- cgit v1.2.3