]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/ipp2p
Add natt patch
[ipfire-2.x.git] / lfs / ipp2p
1 ###############################################################################
2 # #
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 #
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
25 include Config
26
27 VER = 0.8.2
28
29 THISAPP = ipp2p-$(VER)
30 DIR_APP = $(DIR_SRC)/$(THISAPP)
31
32 ifeq "$(SMP)" "1"
33 TARGET = $(DIR_INFO)/$(THISAPP)-smp
34 else
35 ifeq "$(IPT)" "1"
36 TARGET = $(DIR_INFO)/$(THISAPP)-iptables
37 else
38 TARGET = $(DIR_INFO)/$(THISAPP)
39 endif
40 endif
41
42 ###############################################################################
43 # Top-level Rules
44 ###############################################################################
45
46 install : $(TARGET)
47
48 check :
49
50 download :
51
52 md5 :
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-*
63 cd $(DIR_SRC) && tar xfj $(DIR_DL)/iptables-1.4.0.tar.bz2
64 cd $(DIR_SRC) && ln -sf iptables-* iptables
65 ifeq "$(SMP)" "1"
66 cd $(DIR_APP) && make ipt_ipp2p.ko
67 cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire-smp/kernel/net/ipv4/netfilter
68 else
69 ifeq "$(IPT)" "1"
70 cd $(DIR_APP) && make libipt_ipp2p.so
71 cp -f $(DIR_APP)/libipt_ipp2p.so /lib/iptables
72 else
73 cd $(DIR_APP) && make ipt_ipp2p.ko
74 cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire/kernel/net/ipv4/netfilter
75 endif
76 endif
77 @rm -rf $(DIR_APP) $(DIR_SRC)/iptables*
78 @$(POSTBUILD)