]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/ipp2p
upnp.cgi und status.cgi von Maniac eingebaut
[people/pmueller/ipfire-2.x.git] / lfs / ipp2p
CommitLineData
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
27include Config
28
29VER = 0.8.2
30
31THISAPP = ipp2p-$(VER)
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33
34ifeq "$(SMP)" "1"
35 TARGET = $(DIR_INFO)/$(THISAPP)-smp
36else
37ifeq "$(IPT)" "1"
38 TARGET = $(DIR_INFO)/$(THISAPP)-iptables
39else
40 TARGET = $(DIR_INFO)/$(THISAPP)
41endif
42endif
43
44###############################################################################
45# Top-level Rules
46###############################################################################
47
48install : $(TARGET)
49
50check :
51
52download :
53
54md5 :
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 67ifeq "$(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
70else
71ifeq "$(IPT)" "1"
069680ac 72 cd $(DIR_APP) && make
552b817b
MT
73 cp -f $(DIR_APP)/libipt_ipp2p.o /lib/iptables
74else
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
77endif
78endif
79 @rm -rf $(DIR_APP) $(DIR_SRC)/iptables-*
80 @$(POSTBUILD)