[PATCH 2/2] Honour installation directories passed to configure

Jānis Rukšāns <[email protected]>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <[email protected]>
---
 Makefile.am        |    7 +++++--
 capi20/Makefile.am |   11 +++++++----
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 56bd574..7a0a185 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,6 +38,9 @@ ChangeLog: $(srcdir)/.git/objects
 endif
 
 install-data-local:
-	install -d $(DESTDIR)/etc/udev/rules.d
-	install -m 644 45-misdn.rules $(DESTDIR)/etc/udev/rules.d/45-misdn.rules
+	install -d $(DESTDIR)$(sysconfdir)/udev/rules.d
+	install -m 644 45-misdn.rules $(DESTDIR)$(sysconfdir)/udev/rules.d/45-misdn.rules
+
+distuninstallcheck_listfiles = \
+	find . -type f -print | grep -v '45-misdn.rules'
 
diff --git a/capi20/Makefile.am b/capi20/Makefile.am
index c76eb0f..1b46eb3 100644
--- a/capi20/Makefile.am
+++ b/capi20/Makefile.am
@@ -20,12 +20,15 @@ EXTRA_DIST = capi20.conf.sample
 
 CLEANFILES = *~
 
-MISDN_SOCKET_DIR = /var/run/mISDNcapid
+MISDN_SOCKET_DIR = $(localstatedir)/run/mISDNcapid
 
 install-exec-hook:
 	install  -d $(DESTDIR)$(MISDN_SOCKET_DIR)
 
 install-data-local:
-	install -d $(DESTDIR)/etc/
-	install -m 644 capi20.conf.sample $(DESTDIR)/etc/capi20.conf
-                
\ No newline at end of file
+	install -d $(DESTDIR)$(sysconfdir)
+	install -m 644 capi20.conf.sample $(DESTDIR)$(sysconfdir)/capi20.conf
+
+distuninstallcheck_listfiles = \
+	find . -type f -print | grep -v 'capi20.conf'
+
-- 
1.7.10.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.