]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/core/iptables/iptables.nm
iptables: New package.
[ipfire-3.x.git] / pkgs / core / iptables / iptables.nm
CommitLineData
bbd0133f
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 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
25include $(PKGROOT)/Include
26
27PKG_NAME = iptables
28PKG_VER = 1.4.5
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Networking/Tools
33PKG_URL = http://www.netfilter.org/
34PKG_LICENSE = GPL+
35PKG_SUMMARY = Tools for managing Linux kernel packet filtering capabilities.
36
37#PKG_DEPS += m4
38
39define PKG_DESCRIPTION
40 The iptables utility controls the network packet filtering code in the \
41 Linux kernel. If you need to set up firewalls and/or IP masquerading, \
42 you should install this package.
43endef
44
45PKG_TARBALL = $(THISAPP).tar.bz2
46
47CFLAGS += -fno-strict-aliasing
48
49CONFIGURE_OPTIONS += \
50 --bindir=/bin \
51 --sbindir=/sbin \
52 --libdir=/lib \
53 --libexecdir=/lib \
54 --sysconfdir=/etc \
55 --with-pkgconfigdir=/usr/lib/pkgconfig \
56 --mandir=/usr/share/man \
57 --with-kernel=/usr \
58 --with-kbuild=/usr \
59 --with-ksource=/usr \
60 --enable-devel \
61 --enable-libipq
62
63define STAGE_PREPARE_CMDS
64 # Make more space for target name on output.
65 cd $(DIR_APP) && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
66endef
67
68define STAGE_INSTALL_CMDS
69 # install ip*tables.h header files
70 -mkdir -pv $(BUILDROOT)/usr/include/{iptables,libiptc}
71 cd $(DIR_APP) && install -v -m 644 include/ip{,6}tables.h \
72 $(BUILDROOT)/usr/include
73 cd $(DIR_APP) && install -v -m 644 include/iptables/internal.h \
74 $(BUILDROOT)/usr/include/iptables/
75 cd $(DIR_APP) && install -v -m 644 include/libiptc/*.h \
76 $(BUILDROOT)/usr/include/libiptc
77
78 -mkdir -pv $(BUILDROOT)/usr/lib
79 rm -vf $(BUILDROOT)/lib/libip{,4,6}tc.so $(BUILDROOT)/lib/libxtables.so
80 ln -svf ../../lib/libiptc.so.0 $(BUILDROOT)/usr/lib/libiptc.so
81 ln -svf ../../lib/libip4tc.so.0 $(BUILDROOT)/usr/lib/libip4tc.so
82 ln -svf ../../lib/libip6tc.so.0 $(BUILDROOT)/usr/lib/libip6tc.so
83 ln -svf ../../lib/libxtables.so.0 $(BUILDROOT)/usr/lib/libxtables.so
84endef