1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
29 THISAPP = ipp2p-$(VER)
30 DIR_APP = $(DIR_SRC)/$(THISAPP)
33 TARGET = $(DIR_INFO)/$(THISAPP)-smp
36 TARGET = $(DIR_INFO)/$(THISAPP)-iptables
38 TARGET = $(DIR_INFO)/$(THISAPP)
42 ###############################################################################
44 ###############################################################################
54 ###############################################################################
55 # Installation Details
56 ###############################################################################
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.3.5.tar.bz2
64 cd $(DIR_SRC) && ln -sf iptables-* iptables
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
70 cd $(DIR_APP) && make libipt_ipp2p.so
71 cp -f $(DIR_APP)/libipt_ipp2p.so /lib/iptables
73 cd $(DIR_APP) && make ipt_ipp2p.ko
74 cp -f $(DIR_APP)/ipt_ipp2p.ko /lib/modules/$(KVER)-ipfire/kernel/net/ipv4/netfilter
77 @rm -rf $(DIR_APP) $(DIR_SRC)/iptables*