summaryrefslogtreecommitdiff
path: root/net/rwhoisd/files/patch-aa
blob: bcb60067f64994246f6ed9b95d5fe82e0c8fd421 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
--- Makefile.in.orig	Thu Aug  8 20:37:37 1996
+++ Makefile.in	Fri May 23 03:06:12 1997
@@ -2,7 +2,7 @@
 @SET_MAKE@
 
 # set install program
-INSTALL = @INSTALL@
+INSTALL = /usr/bin/install -c -s -o bin -g bin
 
 # set prefix values
 prefix      = @prefix@
@@ -25,12 +25,12 @@
 PARSER_DIR  = $(TOOLS_DIR)/rwhoisparse
 LIBWRAP_DIR = tools/tcpd_wrapper
 CLIENT_DIR  = client
-SAMPLE_DATA_DIR = @SAMPLE_DATA_DIR@
+SAMPLE_DATA_DIR = ${RWHOIS_ROOT_DIR}
 LIBRWHOIS   = librwhois.a
 LIBMKDB     = libmkdb.a
 LIBWRAP     = libwrap.a
 
-all: librwhois libmkdb libwrap make-server indexer parser make-client
+all: librwhois libmkdb make-server indexer parser make-client
 
 librwhois:
 	@echo "Making $(LIBRWHOIS)"
@@ -77,7 +77,7 @@
 
 install-chroot:
 	@echo "Setup chroot stuff"
-	chroot.sh $(RWHOIS_ROOT_DIR)
+	./chroot.sh $(RWHOIS_ROOT_DIR)
 
 install-client:
 	@echo "Installing RWhois Client"
@@ -86,21 +86,13 @@
 install-sample-data: sample-data-install
 
 sample-data-install:
-	@echo "Setting up for quickie install with sample data"
-	@echo "This is located in `pwd`/sample.data"
-	@echo "Setting up RWhois default data directory (data will reside here)"
+	if [ -d ${.CURDIR}/sample.data/bin ]; then rm -r ${.CURDIR}/sample.data/bin; fi 
+	if [ -d ${.CURDIR}/sample.data/etc ]; then rm -r ${.CURDIR}/sample.data/etc; fi
+	cp -r ${.CURDIR}/sample.data/ ${SAMPLE_DATA_DIR}
 	(sh tools/install/setup_rwhois_conf $(SAMPLE_DATA_DIR))
-	@echo "Setting up index scripts"
 	(sh tools/install/setup_index_scripts $(SAMPLE_DATA_DIR))
-	@echo "Copying the indexer into the sample data area"
-	if [ $(SAMPLE_DATA_DIR) != $(RWHOIS_ROOT_DIR) ]; then \
-		if [ ! -d $(SAMPLE_DATA_DIR)/bin ]; then \
-			mkdir $(SAMPLE_DATA_DIR)/bin; \
-        fi; \
-		cp $(RWHOIS_ROOT_DIR)/bin/rmkdbindex $(SAMPLE_DATA_DIR)/bin; \
-	fi
-	@echo "Running index scripts"
 	(sh tools/install/run_index_scripts $(SAMPLE_DATA_DIR))
+	/usr/sbin/chown -R nobody ${SAMPLE_DATA_DIR}/data ${SAMPLE_DATA_DIR}/rwhois.log
 
 clean:
 	@echo "Cleaning Server"
@@ -109,8 +101,6 @@
 	(cd $(COMMON_DIR); $(MAKE) clean)
 	@echo "Cleaning MKDB"
 	(cd $(MKDB_DIR); $(MAKE) clean)
-	@echo "Cleaning TCPD stuff"
-	(cd $(LIBWRAP_DIR); $(MAKE) clean)
 	@echo "Cleaning RWhois Indexer"
 	(cd $(INDEXER_DIR); $(MAKE) clean)
 	@echo "Cleaning RWhois Parser"
@@ -133,7 +123,6 @@
 	(cd $(MKDB_DIR); $(MAKE) distclean)
 	(cd $(INDEXER_DIR); $(MAKE) distclean)
 	(cd $(PARSER_DIR); $(MAKE) distclean)
-	(cd $(LIBWRAP_DIR); $(MAKE) clean)
 	(cd $(CLIENT_DIR); $(MAKE) distclean)
 
 dist: