]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/python3-install
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / python3-install
CommitLineData
5868a78e
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
5# #
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. #
10# #
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. #
15# #
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/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27VER = 0.0.3
28
29THISAPP = python-install-$(VER)
30DL_FILE = $(THISAPP).tar.gz
31DL_FROM = $(URL_IPFIRE)
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
34
35###############################################################################
36# Top-level Rules
37###############################################################################
38
39objects = $(DL_FILE) \
40 installer-0.4.0.tar.gz
41
42$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
43installer-0.4.0.tar.gz = $(DL_FROM)/installer-0.4.0.tar.gz
44
9a7e4d85
PM
45$(DL_FILE)_BLAKE2 = 5cdf33a620e90a791ab618413090a8b74c2e6ca849590cf80cc6affa739be9fac06e27fdb804c15d9d5d3b9c6bdc5b27c36fdc20147ef2b18bb59dac02df2c20
46installer-0.4.0.tar.gz_BLAKE2 = 635854b3461995cda3b7afa507ca3fe35cae8210e79de0bbd46938c8f103d7840ceca8bb388c2c9533efc78150691f980c478485ee33bafe0bae6c08a6aef8c4
5868a78e
MT
47
48install : $(TARGET)
49
50check : $(patsubst %,$(DIR_CHK)/%,$(objects))
51
52download :$(patsubst %,$(DIR_DL)/%,$(objects))
53
9a7e4d85 54b2 : $(subst %,%_BLAKE2,$(objects))
5868a78e
MT
55
56dist:
57 @$(PAK)
58
59###############################################################################
9a7e4d85 60# Downloading, checking, b2sum
5868a78e
MT
61###############################################################################
62
63$(patsubst %,$(DIR_CHK)/%,$(objects)) :
64 @$(CHECK)
65
66$(patsubst %,$(DIR_DL)/%,$(objects)) :
67 @$(LOAD)
68
9a7e4d85
PM
69$(subst %,%_BLAKE2,$(objects)) :
70 @$(B2SUM)
5868a78e
MT
71
72###############################################################################
73# Installation Details
74###############################################################################
75
76$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
77 @$(PREBUILD)
78 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
79 cd $(DIR_APP) && tar zxf $(DIR_DL)/installer-0.4.0.tar.gz
80 cd $(DIR_APP) && rm -rfv install/_vendor/installer
81 cd $(DIR_APP) && ln -svf --relative \
82 installer-0.4.0 install/_vendor/installer
83 cd $(DIR_APP) && python3 setup.py build
84 cd $(DIR_APP) && python3 setup.py install --root=/
85 @rm -rf $(DIR_APP)
86 @$(POSTBUILD)