]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blame - lfs/oinkmaster
Merge branch 'next'
[people/mfischer/ipfire-2.x.git] / lfs / oinkmaster
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302 3# IPFire.org - A linux based firewall #
eee037b8 4# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
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
25include Config
26
bd3a8a50 27VER = 2.0
cd1a2927
MT
28THISAPP = oinkmaster-$(VER)
29DL_FILE = $(THISAPP).tar.gz
c7845ac1 30DL_FROM = $(URL_IPFIRE)
cd1a2927
MT
31DIR_APP = $(DIR_SRC)/$(THISAPP)
32TARGET = $(DIR_INFO)/$(THISAPP)
33
34###############################################################################
35# Top-level Rules
36###############################################################################
37
38objects = $(DL_FILE)
39
40$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
41
9a7e4d85 42$(DL_FILE)_BLAKE2 = f5c096b8f03a5952670c6942dc1020bd6b37bf8ec897a975671e20ec4099b54851f61320a695d2562c56981861f5096a739d06baad5e5c9b7c62585d21b2a189
cd1a2927
MT
43
44install : $(TARGET)
45
46check : $(patsubst %,$(DIR_CHK)/%,$(objects))
47
48download :$(patsubst %,$(DIR_DL)/%,$(objects))
49
9a7e4d85 50b2 : $(subst %,%_BLAKE2,$(objects))
cd1a2927
MT
51
52###############################################################################
9a7e4d85 53# Downloading, checking, b2sum
cd1a2927
MT
54###############################################################################
55
56$(patsubst %,$(DIR_CHK)/%,$(objects)) :
57 @$(CHECK)
58
59$(patsubst %,$(DIR_DL)/%,$(objects)) :
60 @$(LOAD)
61
9a7e4d85
PM
62$(subst %,%_BLAKE2,$(objects)) :
63 @$(B2SUM)
cd1a2927
MT
64
65###############################################################################
66# Installation Details
67###############################################################################
68
69$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
70 @$(PREBUILD)
bd3a8a50 71 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
1043cb0a 72 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/oinkmaster-2.0-add_community_rules.patch
5a3e0dca 73 cd $(DIR_APP) && chown nobody:nobody oinkmaster.pl
c5486ccb
SS
74 cd $(DIR_APP) && install -m 0644 $(DIR_SRC)/config/oinkmaster/oinkmaster.conf \
75 /var/ipfire/suricata/
06b569a4 76 cd /var/ipfire/suricata && patch -Np1 < $(DIR_SRC)/src/patches/oinkmaster-tmp.patch
5a3e0dca 77 cd $(DIR_APP) && install -m 0755 oinkmaster.pl /usr/local/bin/
cd1a2927
MT
78 @rm -rf $(DIR_APP)
79 @$(POSTBUILD)