mirror of https://github.com/digint/btrbk
Makefile: added systemd service unit installation; removed version string on /usr/share/doc
parent
725191583e
commit
52ef08e1d4
11
Makefile
11
Makefile
|
@ -1,12 +1,12 @@
|
||||||
PN = btrbk
|
PN = btrbk
|
||||||
VERSION = 0.17.1
|
|
||||||
|
|
||||||
PREFIX ?= /usr
|
PREFIX ?= /usr
|
||||||
CONFDIR = /etc
|
CONFDIR = /etc
|
||||||
CRONDIR = /etc/cron.daily
|
CRONDIR = /etc/cron.daily
|
||||||
BINDIR = $(PREFIX)/sbin
|
BINDIR = $(PREFIX)/sbin
|
||||||
DOCDIR = $(PREFIX)/share/doc/$(PN)-$(VERSION)
|
DOCDIR = $(PREFIX)/share/doc/$(PN)
|
||||||
SCRIPTDIR = $(PREFIX)/share/$(PN)/scripts
|
SCRIPTDIR = $(PREFIX)/share/$(PN)/scripts
|
||||||
|
SYSTEMDDIR = $(PREFIX)/lib/systemd/system
|
||||||
MAN1DIR = $(PREFIX)/share/man/man1
|
MAN1DIR = $(PREFIX)/share/man/man1
|
||||||
MAN5DIR = $(PREFIX)/share/man/man5
|
MAN5DIR = $(PREFIX)/share/man/man5
|
||||||
|
|
||||||
|
@ -18,6 +18,11 @@ install-bin:
|
||||||
install -Dm644 btrbk.conf.example "$(DESTDIR)$(CONFDIR)/btrbk/btrbk.conf.example"
|
install -Dm644 btrbk.conf.example "$(DESTDIR)$(CONFDIR)/btrbk/btrbk.conf.example"
|
||||||
install -Dm755 $(PN) "$(DESTDIR)$(BINDIR)/$(PN)"
|
install -Dm755 $(PN) "$(DESTDIR)$(BINDIR)/$(PN)"
|
||||||
|
|
||||||
|
install-systemd:
|
||||||
|
@echo 'installing systemd service units...'
|
||||||
|
install -Dm644 contrib/systemd/btrbk.service "$(DESTDIR)$(SYSTEMDDIR)/btrbk.service"
|
||||||
|
install -Dm644 contrib/systemd/btrbk.timer "$(DESTDIR)$(SYSTEMDDIR)/btrbk.timer"
|
||||||
|
|
||||||
install-share:
|
install-share:
|
||||||
@echo 'installing auxiliary scripts...'
|
@echo 'installing auxiliary scripts...'
|
||||||
install -Dm644 ssh_filter_btrbk.sh "$(DESTDIR)$(SCRIPTDIR)/ssh_filter_btrbk.sh"
|
install -Dm644 ssh_filter_btrbk.sh "$(DESTDIR)$(SCRIPTDIR)/ssh_filter_btrbk.sh"
|
||||||
|
@ -34,4 +39,4 @@ install-doc:
|
||||||
install -Dm644 README.md "$(DESTDIR)$(DOCDIR)/README.md"
|
install -Dm644 README.md "$(DESTDIR)$(DOCDIR)/README.md"
|
||||||
gzip -9 "$(DESTDIR)$(DOCDIR)/README.md"
|
gzip -9 "$(DESTDIR)$(DOCDIR)/README.md"
|
||||||
|
|
||||||
install: install-bin install-share install-man install-doc
|
install: install-bin install-systemd install-share install-man install-doc
|
||||||
|
|
Loading…
Reference in New Issue