From f1f37b2d37e3b233ec0f1c7a1545ecb9c033e49a Mon Sep 17 00:00:00 2001 From: Gabriel Francisco Date: Fri, 20 Nov 2020 01:47:38 +0000 Subject: [PATCH] add mars-tools package --- debian/control | 13 ++++++++++++- debian/mars-tools.cron.d | 10 ++++++++++ debian/mars-tools.install | 1 + debian/mars-tools.manpages | 1 + 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 debian/mars-tools.cron.d create mode 100644 debian/mars-tools.install create mode 100644 debian/mars-tools.manpages diff --git a/debian/control b/debian/control index db379af8..baa593fa 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Homepage: http://schoebel.github.io/mars/ Package: mars-dkms Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${misc:Depends}, ${perl:Depends} Description: mars kernel module. MARS Light is a block-level storage replication solution implemented in the form of a Linux kernel module. @@ -18,3 +18,14 @@ Description: mars kernel module. It's almost a drop-in replacement for DRBD but it works asynchronously and over arbitrary distances using a technology similar to transaction logging of database systems. + +Package: mars-tools +Architecture: any +Depends: ${misc:Depends}, ${perl:Depends} +Description: mars userspace tools. + MARS Light is a block-level storage replication solution implemented + in the form of a Linux kernel module. + . + It's almost a drop-in replacement for DRBD but it works + asynchronously and over arbitrary distances using a technology + similar to transaction logging of database systems. diff --git a/debian/mars-tools.cron.d b/debian/mars-tools.cron.d new file mode 100644 index 00000000..31c0f5c7 --- /dev/null +++ b/debian/mars-tools.cron.d @@ -0,0 +1,10 @@ +# Regular cron jobs for MARS +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +# MARS transaction logfile rotation + deletion every x minutes + +*/10 * * * * root if [ -L /mars/uuid ] ; then marsadm cron ; fi > /dev/null 2>&1 +*/5,15,25,35,45,55 * * * * root if [ -L /mars/uuid ] ; then marsadm log-delete-all all ; fi > /dev/null 2>&1 + diff --git a/debian/mars-tools.install b/debian/mars-tools.install new file mode 100644 index 00000000..2fd820d1 --- /dev/null +++ b/debian/mars-tools.install @@ -0,0 +1 @@ +userspace/marsadm usr/bin diff --git a/debian/mars-tools.manpages b/debian/mars-tools.manpages new file mode 100644 index 00000000..ab2e42b9 --- /dev/null +++ b/debian/mars-tools.manpages @@ -0,0 +1 @@ +userspace/marsadm.8