summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2014-10-28 21:23:18 +0100
committerPetr Spacek <pspacek@redhat.com>2014-10-28 21:23:32 +0100
commit0ef878020877de725ff244c4d3f44697b6efd3ab (patch)
tree3d6f38d13a18af5404d952a704f4d6d94b423bee /Makefile
parent603f897997813af626e6855c4f8a8add08a045bb (diff)
add support for DNF package manager
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1ba3ac1..5d19a3e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ PYTHON=python
build: etckeeper.spec
-$(PYTHON) ./etckeeper-bzr/__init__.py build || echo "** bzr support not built"
+ -$(PYTHON) ./etckeeper-dnf/etckeeper.py build || echo "** DNF support not built"
install:
mkdir -p $(DESTDIR)$(etcdir)/etckeeper/ $(DESTDIR)$(vardir)/cache/etckeeper/
@@ -44,6 +45,9 @@ ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),yum)
mkdir -p $(DESTDIR)$(etcdir)/yum/pluginconf.d
$(INSTALL_DATA) yum-etckeeper.conf $(DESTDIR)$(etcdir)/yum/pluginconf.d/etckeeper.conf
endif
+ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),dnf)
+ -$(PYTHON) ./etckeeper-dnf/etckeeper.py install --root=$(DESTDIR) ${PYTHON_INSTALL_OPTS} || echo "** DNF support not installed"
+endif
ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),zypper)
mkdir -p $(DESTDIR)$(prefix)/lib/zypp/plugins/commit
$(INSTALL) zypper-etckeeper.py $(DESTDIR)$(prefix)/lib/zypp/plugins/commit/zypper-etckeeper.py