From: Kay Sievers <[email protected]>
Subject: [PATCH] replace /etc with $(sysconfdir) to pass 'make distcheck'

Distcheck checks for correct use of DESTDIR and prefix. We need to
include a path that contains prefix instead of plain /etc.

Signed-Off-By: Kay Sievers <[email protected]>
---

diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index a0fe691..c6fbcda 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -1,6 +1,6 @@
 EXTRA_DIST = init.d/cgconfig.in init.d/cgred.in
 
-INITSCRIPTDIR=$(DESTDIR)/etc/rc.d/init.d
+INITSCRIPTDIR=$(DESTDIR)$(sysconfdir)/rc.d/init.d
 install-exec-hook:
        mkdir -p $(INITSCRIPTDIR)
        cp init.d/cgconfig init.d/cgred $(INITSCRIPTDIR)



------------------------------------------------------------------------------

_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to