]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = iptables | |
39f68abb | 28 | PKG_VER = 1.4.11.1 |
270e6641 SS |
29 | PKG_REL = 1 |
30 | ||
31 | PKG_BUILD_DEPS+= libselinux-devel | |
bbd0133f MT |
32 | |
33 | PKG_MAINTAINER = | |
bb7d617c | 34 | PKG_GROUPS = Networking/Tools |
b42a752b | 35 | PKG_GROUPS-iptables = Base $(PKG_GROUPS) |
bbd0133f MT |
36 | PKG_URL = http://www.netfilter.org/ |
37 | PKG_LICENSE = GPL+ | |
38 | PKG_SUMMARY = Tools for managing Linux kernel packet filtering capabilities. | |
39 | ||
bbd0133f MT |
40 | define 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. | |
44 | endef | |
45 | ||
46 | PKG_TARBALL = $(THISAPP).tar.bz2 | |
47 | ||
67ea67df MT |
48 | PKG_PACKAGES += $(PKG_NAME)-devel |
49 | ||
bbd0133f MT |
50 | CFLAGS += -fno-strict-aliasing |
51 | ||
52 | CONFIGURE_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 | ||
66 | define 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 |
69 | endef |
70 | ||
71 | define 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 | 91 | endef |