mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
40 lines
2.1 KiB
Diff
40 lines
2.1 KiB
Diff
--- zfs-auto-snapshot-upstream-1.2.4/Makefile
|
|
+++ zfs-auto-snapshot-upstream-1.2.4-alpine/Makefile
|
|
@@ -3,16 +3,16 @@
|
|
all:
|
|
|
|
install:
|
|
- install -d $(DESTDIR)/etc/cron.d
|
|
- install -d $(DESTDIR)/etc/cron.daily
|
|
- install -d $(DESTDIR)/etc/cron.hourly
|
|
- install -d $(DESTDIR)/etc/cron.weekly
|
|
- install -d $(DESTDIR)/etc/cron.monthly
|
|
- install -m 0644 etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)/etc/cron.d/zfs-auto-snapshot
|
|
- install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot
|
|
- install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot
|
|
- install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot
|
|
- install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot
|
|
+ install -d $(DESTDIR)/etc/periodic/15min
|
|
+ install -d $(DESTDIR)/etc/periodic/daily
|
|
+ install -d $(DESTDIR)/etc/periodic/hourly
|
|
+ install -d $(DESTDIR)/etc/periodic/weekly
|
|
+ install -d $(DESTDIR)/etc/periodic/monthly
|
|
+ install -m 0755 etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)/etc/periodic/15min/zfs-auto-snapshot
|
|
+ install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)/etc/periodic/hourly/zfs-auto-snapshot
|
|
+ install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/periodic/daily/zfs-auto-snapshot
|
|
+ install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/periodic/weekly/zfs-auto-snapshot
|
|
+ install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/periodic/monthly/zfs-auto-snapshot
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
|
|
install -d $(DESTDIR)$(PREFIX)/sbin
|
|
--- zfs-auto-snapshot-upstream-1.2.4/etc/zfs-auto-snapshot.cron.frequent
|
|
+++ zfs-auto-snapshot-upstream-1.2.4-alpine/etc/zfs-auto-snapshot.cron.frequent
|
|
@@ -1,3 +1,6 @@
|
|
-PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
|
|
+#!/bin/sh
|
|
|
|
-*/15 * * * * root which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //
|
|
+# Only call zfs-auto-snapshot if it's available
|
|
+which zfs-auto-snapshot > /dev/null || exit 0
|
|
+
|
|
+exec zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //
|