summaryrefslogtreecommitdiff
path: root/net/ntop/files/patch-Makefile.am
blob: 552d2070ad055790a9528a02da7e910cd632849f (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
--- Makefile.am.orig	2012-08-02 04:39:52.000000000 -0300
+++ Makefile.am	2013-01-08 10:43:54.000000000 -0200
@@ -61,8 +61,6 @@
 
 ETTER_PASSIVE_FILE = etter.finger.os
 ETTER_PASSIVE = $(ETTER_PASSIVE_FILE).gz
-ETTER_PASSIVE_DOWNLOAD_FROM = "http://ettercap.cvs.sourceforge.net/ettercap/ettercap_ng/share"
-ETTER_PASSIVE_DOWNLOAD_PARMS = "rev=HEAD"
 
 NTOPDATA = ntop-cert.pem \
            $(ETTER_PASSIVE) \
@@ -308,16 +306,13 @@
 	  echo "  WARNING: This install created a directory for the ntop"; \
 	  echo "           files and databases:"; \
 	  echo ""; \
-	  echo "             $(DESTDIR)$(datadir)/ntop"; \
+	  echo "             $(CFG_DBFILE_DIR)"; \
 	  echo ""; \
 	  echo "           This directory MUST be owned by the user"; \
 	  echo "           which you are going to use to run ntop."; \
 	  echo ""; \
 	  echo "           The command you must issue is something like:"; \
 	  echo ""; \
-	  echo "           chown -R ntop.ntop $(DESTDIR)$(datadir)/ntop"; \
-	  echo "     or    chown -R ntop:users $(DESTDIR)$(datadir)/ntop"; \
-	  echo ""; \
 	  echo "           man chown to check the syntax for YOUR system"; \
 	  echo ""; \
 	  echo "************************************************************"; \
@@ -334,7 +329,6 @@
 	chcon -t textrel_shlib_t $(DESTDIR)$(libdir)/*ntop*.so
 
 install-data-local: ntop.txt ntop.html faq.html
-	@$(top_srcdir)/mkinstalldirs $(DESTDIR)/$(libdir)/plugins;
 	@if ! test -d $(DESTDIR)$(datadir)/ntop; then \
 	  $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/ntop; \
 	  touch $(DESTDIR)$(datadir)/ntop/warnuser; \
@@ -370,21 +364,6 @@
 	@echo ""
 	@echo ""
 	@echo -n "Preparing "
-	@if test -f oui.txt; then \
-	  rm -rf oui.txt; \
-	fi
-	@if test -f oui.txt.gz.old; then \
-	  rm -rf oui.txt.gz.old; \
-	fi;
-	@mv oui.txt.gz oui.txt.gz.old
-	@echo "(old oui.txt.gz file is now oui.txt.gz.old)"
-	@echo ""
-	@wget -c http://standards.ieee.org/regauth/oui/oui.txt
-	@gzip oui.txt
-	@echo ""
-	@echo ""
-	@echo -n "Old file lines were: "
-	@gunzip -c oui.txt.gz.old | wc -l
 	@echo -n "New file lines are:  "
 	@gunzip -c oui.txt.gz | wc -l
 	@echo ""
@@ -402,35 +381,6 @@
 	@echo ""
 	@echo "Preparing "
 	@echo ""
-
-	@if test -f $(ETTER_PASSIVE).old; then \
-	  echo "...Deleting prior file, $(ETTER_PASSIVE).old..."; \
-	  rm -rf $(ETTER_PASSIVE).old; \
-	fi;
-	@if test -f $(ETTER_PASSIVE); then \
-	  echo "...Moving current $(ETTER_PASSIVE) to $(ETTER_PASSIVE).old"; \
-	  mv $(ETTER_PASSIVE) $(ETTER_PASSIVE).old; \
-	fi;
-	@for file in $(ETTER_PASSIVE) $(ETTER_PASSIVE).gz \
-		$(ETTER_PASSIVE_FILE) $(ETTER_PASSIVE_FILE).gz; do \
-          if test -f $$file; then \
-	     echo "...Deleting prior file, $$file..."; \
-             rm -rf $$file; \
-          fi; \
-        done
-	@echo ""
-	@echo "...Downloading new file..."
-	@wget -O $(ETTER_PASSIVE_FILE) \
-		$(ETTER_PASSIVE_DOWNLOAD_FROM)/$(ETTER_PASSIVE_FILE)?$(ETTER_PASSIVE_DOWNLOAD_PARMS)
-	@echo ""
-	@echo "gziping downloaded file..."
-	@gzip $(ETTER_PASSIVE_FILE)
-	@echo ""
-	@echo ""
-	@if test -f $(ETTER_PASSIVE).old; then \
-	  echo -n "Old file lines were: "; \
-	  gunzip -c $(ETTER_PASSIVE).old | wc -l; \
-	fi;
 	@echo -n "New file lines are:  "
 	@gunzip -c $(ETTER_PASSIVE) | wc -l
 	@echo ""