1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
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. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
22 ###############################################################################
24 ###############################################################################
30 THISAPP = squid-asnbl-$(VER)
31 DL_FILE = $(THISAPP).tar.gz
32 DL_FROM = $(URL_IPFIRE)
34 DIR_APP = $(DIR_SRC)/$(THISAPP)
36 TARGET = $(DIR_INFO)/$(THISAPP)
38 DEPS = libloc squid python3
40 ###############################################################################
42 ###############################################################################
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
48 $(DL_FILE)_BLAKE2 = 7206b9fe6c4a0509c9ce0301a5d3553274d005daae2050f23e26056d356c328719821d58d94ed2eac7942a6cafb0ca8de2cb619ce28a0f514b6eef413350e249
52 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
54 download :$(patsubst %,$(DIR_DL)/%,$(objects))
56 b2 : $(subst %,%_BLAKE2,$(objects))
58 ###############################################################################
59 # Downloading, checking, b2sum
60 ###############################################################################
62 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
65 $(patsubst %,$(DIR_DL)/%,$(objects)) :
68 $(subst %,%_BLAKE2,$(objects)) :
71 ###############################################################################
72 # Installation Details
73 ###############################################################################
75 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
77 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zvxf $(DIR_DL)/$(DL_FILE)
79 # Install ASNBL helper script
80 cd $(DIR_APP) && install -o root -g root -m 0755 asnbl-helper.py /usr/bin/asnbl-helper.py