1
Desription: do not download data files from the internet when building.
2
Author: Jordan Metzmeier <jordan@linuxgen.com>
3
Index: ntop/Makefile.am
4
===================================================================
5
--- ntop.orig/Makefile.am 2010-12-09 23:24:13.122729218 -0800
6
+++ ntop/Makefile.am 2010-12-09 23:24:17.065699319 -0800
11
- @echo -n "Preparing "
12
- @if test -f oui.txt; then \
15
- @if test -f oui.txt.gz.old; then \
16
- rm -rf oui.txt.gz.old; \
18
- @mv oui.txt.gz oui.txt.gz.old
19
- @echo "(old oui.txt.gz file is now oui.txt.gz.old)"
21
- @wget -c http://standards.ieee.org/regauth/oui/oui.txt
25
- @echo -n "Old file lines were: "
26
- @gunzip -c oui.txt.gz.old | wc -l
27
- @echo -n "New file lines are: "
28
- @gunzip -c oui.txt.gz | wc -l
31
- @echo "New file is:"
33
+ @echo -n "Nothing to do here "
35
# download the Novell SAP Protocol information table
44
- @if test -f $(ETTER_PASSIVE).old; then \
45
- echo "...Deleting prior file, $(ETTER_PASSIVE).old..."; \
46
- rm -rf $(ETTER_PASSIVE).old; \
48
- @if test -f $(ETTER_PASSIVE); then \
49
- echo "...Moving current $(ETTER_PASSIVE) to $(ETTER_PASSIVE).old"; \
50
- mv $(ETTER_PASSIVE) $(ETTER_PASSIVE).old; \
52
- @for file in $(ETTER_PASSIVE) $(ETTER_PASSIVE).gz \
53
- $(ETTER_PASSIVE_FILE) $(ETTER_PASSIVE_FILE).gz; do \
54
- if test -f $$file; then \
55
- echo "...Deleting prior file, $$file..."; \
60
- @echo "...Downloading new file..."
61
- @wget -O $(ETTER_PASSIVE_FILE) \
62
- $(ETTER_PASSIVE_DOWNLOAD_FROM)/$(ETTER_PASSIVE_FILE)?$(ETTER_PASSIVE_DOWNLOAD_PARMS)
64
- @echo "gziping downloaded file..."
65
- @gzip $(ETTER_PASSIVE_FILE)
68
- @if test -f $(ETTER_PASSIVE).old; then \
69
- echo -n "Old file lines were: "; \
70
- gunzip -c $(ETTER_PASSIVE).old | wc -l; \
72
- @echo -n "New file lines are: "
73
- @gunzip -c $(ETTER_PASSIVE) | wc -l
75
+ @echo "Nothing to do here "
77
- @echo "New file is:"
78
- @ls -l $(ETTER_PASSIVE)
82
Index: ntop/autogen.sh
83
===================================================================
84
--- ntop.orig/autogen.sh 2010-12-09 23:24:13.138699544 -0800
85
+++ ntop/autogen.sh 2010-12-09 23:24:17.065699319 -0800
90
-WGET=`find_command 'wget*'`
91
-($WGET --version) < /dev/null > /dev/null 2>&1 ||
94
- echo "You must have wget installed to compile $progname."
95
- echo "Download the appropriate package for your distribution, or get the"
96
- echo "source tarball from ftp://ftp.gnu.org/pub/gnu/wget"
100
if test "$GNU_OR_DIE" -eq 0; then
103
Index: ntop/configure.in
104
===================================================================
105
--- ntop.orig/configure.in 2010-12-09 23:24:13.146708593 -0800
106
+++ ntop/configure.in 2010-12-09 23:24:17.093712450 -0800
107
@@ -1830,7 +1830,7 @@
108
if test -f "3rd_party/GeoLiteCity.dat.gz"; then
109
cp 3rd_party/GeoLiteCity.dat.gz .
111
- wget http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
112
+ echo 'GeoLiteCity.dat.gz: file not found'
115
gunzip GeoLiteCity.dat.gz
116
@@ -1844,7 +1844,7 @@
117
if test -f "3rd_party/GeoIPASNum.dat.gz"; then
118
cp 3rd_party/GeoIPASNum.dat.gz .
120
- wget http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
121
+ echo 'GeoIPASNum.dat.gz: file not found'
124
gunzip GeoIPASNum.dat.gz