]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/iptables/iptables.nm
shadow: Add configuration to package.
[ipfire-3.x.git] / pkgs / 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
39f68abb 28PKG_VER = 1.4.11.1
270e6641
SS
29PKG_REL = 1
30
31PKG_BUILD_DEPS+= libselinux-devel
bbd0133f
MT
32
33PKG_MAINTAINER =
bb7d617c 34PKG_GROUPS = Networking/Tools
b42a752b 35PKG_GROUPS-iptables = Base $(PKG_GROUPS)
bbd0133f
MT
36PKG_URL = http://www.netfilter.org/
37PKG_LICENSE = GPL+
38PKG_SUMMARY = Tools for managing Linux kernel packet filtering capabilities.
39
bbd0133f
MT
40define PKG_DESCRIPTION
41 The iptables utility controls the network packet filtering code in the \
42 Linux kernel. If you need to set up firewalls and/or IP masquerading, \
43 you should install this package.
44endef
45
46PKG_TARBALL = $(THISAPP).tar.bz2
47
67ea67df
MT
48PKG_PACKAGES += $(PKG_NAME)-devel
49
bbd0133f
MT
50CFLAGS += -fno-strict-aliasing
51
52CONFIGURE_OPTIONS += \
53 --bindir=/bin \
54 --sbindir=/sbin \
55 --libdir=/lib \
56 --libexecdir=/lib \
57 --sysconfdir=/etc \
58 --with-pkgconfigdir=/usr/lib/pkgconfig \
59 --mandir=/usr/share/man \
60 --with-kernel=/usr \
61 --with-kbuild=/usr \
62 --with-ksource=/usr \
63 --enable-devel \
64 --enable-libipq
65
66define STAGE_PREPARE_CMDS
67 # Make more space for target name on output.
39f68abb 68 cd $(DIR_APP)/iptables && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
bbd0133f
MT
69endef
70
71define STAGE_INSTALL_CMDS
72 # install ip*tables.h header files
73 -mkdir -pv $(BUILDROOT)/usr/include/{iptables,libiptc}
74 cd $(DIR_APP) && install -v -m 644 include/ip{,6}tables.h \
75 $(BUILDROOT)/usr/include
76 cd $(DIR_APP) && install -v -m 644 include/iptables/internal.h \
77 $(BUILDROOT)/usr/include/iptables/
78 cd $(DIR_APP) && install -v -m 644 include/libiptc/*.h \
79 $(BUILDROOT)/usr/include/libiptc
80
81 -mkdir -pv $(BUILDROOT)/usr/lib
eeb5f8ee 82 rm -vf $(BUILDROOT)/lib/libip{tc,4tc,6tc,q}.so $(BUILDROOT)/lib/libxtables.so
bbd0133f
MT
83 ln -svf ../../lib/libiptc.so.0 $(BUILDROOT)/usr/lib/libiptc.so
84 ln -svf ../../lib/libip4tc.so.0 $(BUILDROOT)/usr/lib/libip4tc.so
85 ln -svf ../../lib/libip6tc.so.0 $(BUILDROOT)/usr/lib/libip6tc.so
eeb5f8ee 86 ln -svf ../../lib/libipq.so.0 $(BUILDROOT)/usr/lib/libipq.so
39f68abb 87 ln -svf ../../lib/libxtables.so.6 $(BUILDROOT)/usr/lib/libxtables.so
51673b9d
MT
88
89 # Replace absolute symlink
39f68abb 90 ln -svf ../sbin/xtables-multi $(BUILDROOT)/bin/iptables-xml
bbd0133f 91endef