From 0ef878020877de725ff244c4d3f44697b6efd3ab Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Tue, 28 Oct 2014 21:23:18 +0100 Subject: add support for DNF package manager --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3