]>
Commit | Line | Data |
---|---|---|
552b817b MT |
1 | ############################################################################### |
2 | # This file is part of the IPCop Firewall. # | |
3 | # # | |
4 | # IPCop is free software; you can redistribute it and/or modify # | |
5 | # it under the terms of the GNU General Public License as published by # | |
6 | # the Free Software Foundation; either version 2 of the License, or # | |
7 | # (at your option) any later version. # | |
8 | # # | |
9 | # IPCop is distributed in the hope that it will be useful, # | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
12 | # GNU General Public License for more details. # | |
13 | # # | |
14 | # You should have received a copy of the GNU General Public License # | |
15 | # along with IPCop; if not, write to the Free Software # | |
16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
17 | # # | |
18 | # Makefiles are based on LFSMake, which is # | |
19 | # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> # | |
20 | # # | |
21 | ############################################################################### | |
22 | ||
23 | ############################################################################### | |
24 | # Definitions | |
25 | ############################################################################### | |
26 | ||
27 | include Config | |
28 | ||
29 | VER = 0.8.2 | |
30 | ||
31 | THISAPP = ipp2p-$(VER) | |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
33 | ||
34 | ifeq "$(SMP)" "1" | |
35 | TARGET = $(DIR_INFO)/$(THISAPP)-smp | |
36 | else | |
37 | ifeq "$(IPT)" "1" | |
38 | TARGET = $(DIR_INFO)/$(THISAPP)-iptables | |
39 | else | |
40 | TARGET = $(DIR_INFO)/$(THISAPP) | |
41 | endif | |
42 | endif | |
43 | ||
44 | ############################################################################### | |
45 | # Top-level Rules | |
46 | ############################################################################### | |
47 | ||
48 | install : $(TARGET) | |
49 | ||
50 | check : | |
51 | ||
52 | download : | |
53 | ||
54 | md5 : | |
55 | ||
56 | ############################################################################### | |
57 | # Installation Details | |
58 | ############################################################################### | |
59 | ||
60 | $(TARGET) : | |
61 | @$(PREBUILD) | |
62 | @rm -rf $(DIR_APP) && mkdir -p $(DIR_APP) | |
63 | @cp -vf $(DIR_SRC)/src/ipp2p/* $(DIR_APP) | |
64 | cd $(DIR_SRC) && rm -rf iptables-* | |
48536f49 | 65 | cd $(DIR_SRC) && tar xfj $(DIR_DL)/iptables-1.3.5.tar.bz2 |
069680ac | 66 | cd $(DIR_SRC) && ln -sf iptables-* iptables |
552b817b | 67 | ifeq "$(SMP)" "1" |
069680ac | 68 | cd $(DIR_APP) && make ipt_ipp2p.ko |
c4166091 | 69 | cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire-smp/kernel/net/ipv4/netfilter |
552b817b MT |
70 | else |
71 | ifeq "$(IPT)" "1" | |
b4f8d26c MT |
72 | cd $(DIR_APP) && make libipt_ipp2p.so |
73 | cp -f $(DIR_APP)/libipt_ipp2p.so /lib/iptables | |
552b817b | 74 | else |
069680ac | 75 | cd $(DIR_APP) && make ipt_ipp2p.ko |
c4166091 | 76 | cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire/kernel/net/ipv4/netfilter |
552b817b MT |
77 | endif |
78 | endif | |
b4f8d26c | 79 | @rm -rf $(DIR_APP) $(DIR_SRC)/iptables* |
552b817b | 80 | @$(POSTBUILD) |