forked from mustafirus/zfs-auto-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (22 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX := /usr/local
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/zfs-auto-snapshot
install -m 700 --backup=t etc/zfs-auto-snapshot-pre.sh $(DESTDIR)/etc/zfs-auto-snapshot/pre
install -m 700 --backup=t etc/zfs-auto-snapshot-send.sh $(DESTDIR)/etc/zfs-auto-snapshot/send
install -m 700 --backup=t etc/zfs-auto-snapshot.conf $(DESTDIR)/etc/zfs-auto-snapshot/zfs-auto-snapshot.conf
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
install src/zfs-auto-snapshot.sh $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot
install src/send2remote.sh $(DESTDIR)$(PREFIX)/sbin/send2remote