From 196ef89aca3c662e4b38bb1f891a0f636964a36a Mon Sep 17 00:00:00 2001 From: Michael Tatarinov Date: Fri, 28 Jul 2017 11:35:26 +0400 Subject: [PATCH] Cleanup after removed internal webserver code. Fixes: 52464b97c18da1737487f17d7791293aefd48113 --- Makefile | 4 ---- debian-wheezy/rules | 2 +- debian/rules | 2 +- dump1090.c | 4 ---- dump1090.h | 5 ----- 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 9479ec2..4c77d21 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,6 @@ BLADERF ?= yes CPPFLAGS += -DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\" -DMODES_DUMP1090_VARIANT=\"dump1090-fa\" -ifneq ($(HTMLPATH),"") - CPPFLAGS += -DHTMLPATH=\"$(HTMLPATH)\" -endif - DIALECT = -std=c11 CFLAGS += $(DIALECT) -O2 -g -Wall -Werror -W -D_DEFAULT_SOURCE LIBS = -lpthread -lm -lrt diff --git a/debian-wheezy/rules b/debian-wheezy/rules index 944454c..9b0a773 100755 --- a/debian-wheezy/rules +++ b/debian-wheezy/rules @@ -22,7 +22,7 @@ install_rtlsdr: cd rtl-sdr-build && cmake ../rtl-sdr -DCMAKE_INSTALL_PREFIX=./install && make install override_dh_auto_build: install_rtlsdr - dh_auto_build -- RTLSDR=yes BLADERF=no DIALECT=-std=gnu1x HTMLPATH=/usr/share/$(SRCNAME)/html DUMP1090_VERSION=$(DUMP1090_VERSION) STATIC=yes RTLSDR_PREFIX=rtl-sdr-build/install + dh_auto_build -- RTLSDR=yes BLADERF=no DIALECT=-std=gnu1x DUMP1090_VERSION=$(DUMP1090_VERSION) STATIC=yes RTLSDR_PREFIX=rtl-sdr-build/install override_dh_auto_test: dh_auto_test -- DIALECT=-std=gnu1x diff --git a/debian/rules b/debian/rules index e8279ea..b97cd02 100755 --- a/debian/rules +++ b/debian/rules @@ -20,7 +20,7 @@ ifeq ($(DEB_HOST_ARCH),armhf) endif override_dh_auto_build: - dh_auto_build -- RTLSDR=yes BLADERF=yes HTMLPATH=/usr/share/$(DEB_SOURCE)/html DUMP1090_VERSION=$(DEB_VERSION) + dh_auto_build -- RTLSDR=yes BLADERF=yes DUMP1090_VERSION=$(DEB_VERSION) override_dh_install: dh_install diff --git a/dump1090.c b/dump1090.c index 82eda50..234fcc4 100644 --- a/dump1090.c +++ b/dump1090.c @@ -117,7 +117,6 @@ void modesInitConfig(void) { Modes.net_input_beast_ports = strdup("30004,30104"); Modes.net_output_beast_ports = strdup("30005"); Modes.interactive_display_ttl = MODES_INTERACTIVE_DISPLAY_TTL; - Modes.html_dir = HTMLPATH; Modes.json_interval = 1000; Modes.json_location_accuracy = 1; Modes.maxRange = 1852 * 300; // 300NM default max range @@ -329,7 +328,6 @@ void showHelp(void) { "--debug Debug mode (verbose), see README for details\n" "--quiet Disable output to stdout. Use for daemon applications\n" "--show-only Show only messages from the given ICAO on stdout\n" -"--html-dir Use as base directory for the internal HTTP server. Defaults to " HTMLPATH "\n" "--write-json Periodically write json output to (for serving by a separate webserver)\n" "--write-json-every Write json output every t seconds (default 1)\n" "--json-location-accuracy Accuracy of receiver location in json metadata: 0=no location, 1=approximate, 2=exact\n" @@ -605,8 +603,6 @@ int main(int argc, char **argv) { Modes.mlat = 1; } else if (!strcmp(argv[j],"--oversample")) { // Ignored - } else if (!strcmp(argv[j], "--html-dir") && more) { - Modes.html_dir = strdup(argv[++j]); #ifndef _WIN32 } else if (!strcmp(argv[j], "--write-json") && more) { Modes.json_dir = strdup(argv[++j]); diff --git a/dump1090.h b/dump1090.h index 07c2247..005fbff 100644 --- a/dump1090.h +++ b/dump1090.h @@ -219,10 +219,6 @@ typedef enum { #define MODES_NET_SNDBUF_SIZE (1024*64) #define MODES_NET_SNDBUF_MAX (7) -#ifndef HTMLPATH -#define HTMLPATH "./public_html" // default path for gmap.html etc -#endif - #define HISTORY_SIZE 120 #define HISTORY_INTERVAL 30000 @@ -335,7 +331,6 @@ struct { // Internal state int mlat; // Use Beast ascii format for raw data output, i.e. @...; iso *...; char *json_dir; // Path to json base directory, or NULL not to write json. uint64_t json_interval; // Interval between rewriting the json aircraft file, in milliseconds; also the advertised map refresh interval - char *html_dir; // Path to www base directory. int json_location_accuracy; // Accuracy of location metadata: 0=none, 1=approx, 2=exact int json_aircraft_history_next;