]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - lfs/ipp2p
Ein Paar Dateien fuer die GPLv3 angepasst.
[people/teissler/ipfire-2.x.git] / lfs / ipp2p
CommitLineData
552b817b 1###############################################################################
552b817b 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
552b817b 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 #
552b817b
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
552b817b
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/>. #
552b817b
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27VER = 0.8.2
28
29THISAPP = ipp2p-$(VER)
30DIR_APP = $(DIR_SRC)/$(THISAPP)
31
32ifeq "$(SMP)" "1"
33 TARGET = $(DIR_INFO)/$(THISAPP)-smp
34else
35ifeq "$(IPT)" "1"
36 TARGET = $(DIR_INFO)/$(THISAPP)-iptables
37else
38 TARGET = $(DIR_INFO)/$(THISAPP)
39endif
40endif
41
42###############################################################################
43# Top-level Rules
44###############################################################################
45
46install : $(TARGET)
47
48check :
49
50download :
51
52md5 :
53
54###############################################################################
55# Installation Details
56###############################################################################
57
58$(TARGET) :
59 @$(PREBUILD)
60 @rm -rf $(DIR_APP) && mkdir -p $(DIR_APP)
61 @cp -vf $(DIR_SRC)/src/ipp2p/* $(DIR_APP)
62 cd $(DIR_SRC) && rm -rf iptables-*
48536f49 63 cd $(DIR_SRC) && tar xfj $(DIR_DL)/iptables-1.3.5.tar.bz2
069680ac 64 cd $(DIR_SRC) && ln -sf iptables-* iptables
552b817b 65ifeq "$(SMP)" "1"
069680ac 66 cd $(DIR_APP) && make ipt_ipp2p.ko
c4166091 67 cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire-smp/kernel/net/ipv4/netfilter
552b817b
MT
68else
69ifeq "$(IPT)" "1"
b4f8d26c
MT
70 cd $(DIR_APP) && make libipt_ipp2p.so
71 cp -f $(DIR_APP)/libipt_ipp2p.so /lib/iptables
552b817b 72else
069680ac 73 cd $(DIR_APP) && make ipt_ipp2p.ko
c4166091 74 cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire/kernel/net/ipv4/netfilter
552b817b
MT
75endif
76endif
b4f8d26c 77 @rm -rf $(DIR_APP) $(DIR_SRC)/iptables*
552b817b 78 @$(POSTBUILD)