From 177b42d951e5d23222a62f9500ae67557073c7f3 Mon Sep 17 00:00:00 2001 From: Udo Seidel Date: Thu, 10 Apr 2014 22:23:00 +0200 Subject: [PATCH] adapted Makefile.inc contrib/Makefile and SPEC file for dracut modules --- Makefile.inc | 1 + contrib/Makefile | 2 -- contrib/kpatch.spec | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index 3a721d2..930c8fc 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -10,6 +10,7 @@ MODULESDIR = $(DESTDIR)$(PREFIX)/lib/modules LIBEXECDIR = $(DESTDIR)$(PREFIX)/libexec/kpatch DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1 +DRACUTDIR = $(DESTDIR)$(PREFIX)/lib/dracut/modules.d/99kpatch .PHONY: all install clean .DEFAULT: all diff --git a/contrib/Makefile b/contrib/Makefile index 912a3ee..1d72d6d 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,7 +1,5 @@ include ../Makefile.inc -DRACUTDIR=/usr/lib/dracut/modules.d/99kpatch - all: install: all diff --git a/contrib/kpatch.spec b/contrib/kpatch.spec index 59966f7..74a0d6b 100644 --- a/contrib/kpatch.spec +++ b/contrib/kpatch.spec @@ -4,7 +4,7 @@ Version: 0.0.1 License: GPLv2 Group: System Environment/Kernel URL: http://github.com/dynup/kpatch -Release: 2%{?dist} +Release: 3%{?dist} Source0: %{name}-%{version}.tar.gz Requires: kmod bash @@ -80,6 +80,8 @@ rm -rf %{buildroot} %doc COPYING README.md %{_sbindir}/kpatch %{_mandir}/man1/kpatch.1* +%{_usr}/lib/dracut/modules.d/99%{name}/* + %files %{KVER} %defattr(-,root,root,-)