]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | ############################################################################### |
cd1a2927 | 2 | # # |
70df8302 | 3 | # IPFire.org - A linux based firewall # |
508288ab | 4 | # Copyright (C) 2015 Michael Tremer & Christian Schmidt # |
70df8302 MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
cd1a2927 | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
cd1a2927 MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
cd1a2927 MT |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
cd1a2927 | 18 | # # |
cd1a2927 MT |
19 | ############################################################################### |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
d08045ea | 27 | VER = 2.75 |
cd1a2927 MT |
28 | |
29 | THISAPP = dnsmasq-$(VER) | |
6644c1c7 | 30 | DL_FILE = $(THISAPP).tar.xz |
f417cab6 | 31 | DL_FROM = $(URL_IPFIRE) |
cd1a2927 MT |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
33 | TARGET = $(DIR_INFO)/$(THISAPP) | |
34 | ||
9e8a5130 MT |
35 | # We cannot use INOTIFY because our ISC reader code does not support that |
36 | COPTS = -DHAVE_ISC_READER -DNO_INOTIFY | |
45e65f1d | 37 | |
cd1a2927 MT |
38 | ############################################################################### |
39 | # Top-level Rules | |
40 | ############################################################################### | |
41 | ||
42 | objects = $(DL_FILE) | |
43 | ||
44 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
45 | ||
d08045ea | 46 | $(DL_FILE)_MD5 = 887236f1ddde6eb57cdb9d01916c9f72 |
cd1a2927 MT |
47 | |
48 | install : $(TARGET) | |
49 | ||
50 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
51 | ||
52 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
53 | ||
54 | md5 : $(subst %,%_MD5,$(objects)) | |
55 | ||
56 | ############################################################################### | |
57 | # Downloading, checking, md5sum | |
58 | ############################################################################### | |
59 | ||
60 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
61 | @$(CHECK) | |
62 | ||
63 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
64 | @$(LOAD) | |
65 | ||
66 | $(subst %,%_MD5,$(objects)) : | |
67 | @$(MD5) | |
68 | ||
69 | ############################################################################### | |
70 | # Installation Details | |
71 | ############################################################################### | |
72 | ||
73 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
74 | @$(PREBUILD) | |
45e65f1d | 75 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) |
f831e573 MF |
76 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/001-include_0_0_0_0_8_in_DNS_rebind_checks.patch |
77 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/002-enhance_add_subnet_to_allow_arbitary_subnet_addresses.patch | |
78 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/003-dont_answer_non_auth_queries_for_auth_zones_locally_when_localise_queries_set.patch | |
f62ac322 MF |
79 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/004-fix_behaviour_of_empty_dhcp-option.patch |
80 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/005-suggest_solution_to_ENOMEM_error_with_IPv6_multicast.patch | |
81 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/006-clarify_man_page_on_RDNSS_set_in_router_advertisement.patch | |
82 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/007-handle_signed_dangling_CNAME_replies_to_DS_queries.patch | |
83 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/008-DHCPv6_option_56_does_not_hold_an_address_list.patch | |
84 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/009-Respect_the_--no_resolv_flag_in_inotify_code.patch | |
40e1bbda MF |
85 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/010-Rationalise_5e3e464ac4022ee0b3794513abe510817e2cf3ca.patch |
86 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/011-Catch_errors_from_sendmsg_in_DHCP_code.patch | |
87 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/012-Update_list_of_subnet_for_--bogus-priv.patch | |
88 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/013-Fix_crash_when_empty_address_from_DNS_overlays_A_record_from.patch | |
89 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/014-Handle_unknown_DS_hash_algos_correctly.patch | |
90 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/015-Fix_crash_at_start_up_with_conf-dir.patch | |
fbcc3cb7 MF |
91 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/016-Major_rationalisation_of_DNSSEC_validation.patch |
92 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/017-Abandon_caching_RRSIGs_and_returning_them_from_cache.patch | |
93 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/018-Move_code_which_caches_DS_records_to_a_more_logical_place.patch | |
94 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/019-Generalise_RR-filtering_code_for_use_with_EDNS0.patch | |
95 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/020-DNSSEC_validation_tweak.patch | |
1e1b03d5 MF |
96 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/021-Tweaks_to_EDNS0_handling_in_DNS_replies.patch |
97 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/022-Tidy_up_DNSSEC_non-existence_code_Check_zone_status_is_NSEC_proof_bad.patch | |
98 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/023-Fix_brace_botch_in_dnssec_validate_ds.patch | |
99 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/024-Do_a_better_job_of_determining_which_DNSSEC_sig_algos_are_supported.patch | |
c3b4c861 MF |
100 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/025-Major_tidy_up_of_EDNS0_handling_and_computation_use_of_udp.patch |
101 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/026-More_tweaks_in_handling_unknown_DNSSEC_algorithms.patch | |
102 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/027-Nasty_rare_and_obscure_off-by-one_in_DNSSEC_hostname_cmp.patch | |
103 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/028-Minor_tweak_to_previous_commit.patch | |
104 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq/029-NSEC3_check_RFC5155_para_8_2.patch | |
32e321b2 | 105 | cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/dnsmasq-Add-support-to-read-ISC-DHCP-lease-file.patch |
f831e573 | 106 | |
45e65f1d MT |
107 | cd $(DIR_APP) && sed -i src/config.h \ |
108 | -e 's|/\* #define HAVE_IDN \*/|#define HAVE_IDN|g' \ | |
109 | -e 's|/\* #define HAVE_DNSSEC \*/|#define HAVE_DNSSEC|g' \ | |
110 | -e 's|#define HAVE_DHCP|//#define HAVE_DHCP|g' \ | |
111 | -e 's|#define HAVE_DHCP6|//#define HAVE_DHCP6|g' \ | |
112 | -e 's|#define HAVE_TFTP|//#define HAVE_TFTP|g' | |
113 | ||
32e321b2 MT |
114 | cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" COPTS="$(COPTS)" \ |
115 | PREFIX=/usr all install | |
cd1a2927 MT |
116 | @rm -rf $(DIR_APP) |
117 | @$(POSTBUILD) |