summaryrefslogtreecommitdiff
path: root/sys-block/mbuffer/files/mbuffer-20180410-sysconfdir.patch
blob: 560f4c516df86f54b4fa9fa4b69abf5dea22e5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/Makefile.in
+++ b/Makefile.in
@@ -12,6 +12,7 @@ OBJDUMP		= @OBJDUMP@
 VPATH		= @srcdir@
 prefix		= @prefix@
 exec_prefix     = @exec_prefix@
+sysconfdir      = @sysconfdir@
 datarootdir	= @datarootdir@
 bindir          = @bindir@
 mandir		= @mandir@/man1
@@ -46,11 +47,11 @@ distclean: clean
 	-$(RM) $(TARGET) config.h config.log \
 	config.status Makefile mbuffer.1 core
 
-$(DESTDIR)$(etcdir)/mbuffer.rc:
-	-$(INSTALL) -d -m 755 $(DESTDIR)$(etcdir)
-	$(INSTALL) -m 644 mbuffer.rc $(DESTDIR)$(etcdir)
+$(DESTDIR)$(sysconfdir)/mbuffer.rc:
+	-$(INSTALL) -d -m 755 $(DESTDIR)$(sysconfdir)
+	$(INSTALL) -m 644 mbuffer.rc $(DESTDIR)$(sysconfdir)/
 
-install: $(TARGET) $(DESTDIR)$(etcdir)/mbuffer.rc
+install: $(TARGET) $(DESTDIR)$(sysconfdir)/mbuffer.rc
 	-$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
 	$(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(bindir)/
 	-$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)