summaryrefslogtreecommitdiff
path: root/net-misc/rwhoisd/files/rwhoisd-destdir-1.5.9.5.patch
blob: 6cd6b28f2e510485d85b757d60187ea03691906a (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
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/tools/rwhois_repack/Makefile.in
+++ b/tools/rwhois_repack/Makefile.in
@@ -52,9 +52,9 @@
 # procedural
 
 install:
-	if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
-	if [ ! -d $(bindir) ]; then mkdir $(bindir); fi
-	$(INSTALL) rwhois_repack $(bindir)
+	if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir $(DESTDIR)$(exec_prefix); fi
+	if [ ! -d $(DESTDIR)$(bindir) ]; then mkdir $(DESTDIR)$(bindir); fi
+	$(INSTALL) rwhois_repack $(DESTDIR)$(bindir)
 
 uninstall:
	$(RM) $(bindir)/rwhois_repack

--- a/sample.data/Makefile.in
+++ b/sample.data/Makefile.in
@@ -10,7 +10,7 @@
 prefix      = @prefix@
 exec_prefix = @exec_prefix@
 bindir      = $(exec_prefix)/bin
-etcdir      = $(exec_prefix)/etc
+etcdir      = /etc
 
 srcdir	    = @srcdir@
 VPATH       = @srcdir@

--- a/sample.data/Makefile.in
+++ b/sample.data/Makefile.in
@@ -17,7 +17,7 @@
 
 DESTDIR =
 
-RWHOIS_ROOT_DIR = $(DESTDIR)$(etcdir)/rwhoisd/samples
+RWHOIS_ROOT_DIR = $(DESTDIR)/var/rwhoisd/samples
 
 FILES = \
         a.com \