Magellan Linux

Contents of /trunk/core/iptables/iptables-1.4.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 378 - (show annotations) (download)
Tue Dec 23 23:55:40 2008 UTC (15 years, 5 months ago) by niro
File size: 2210 byte(s)
-several build fixes and use the autoconf/make buildsystem
1 # $Header: /magellan-cvs/smage/iptables/iptables-1.4.0-r2.smage2,v 1.2 2008/05/01 16:17:53 niro Exp $
2
3 PNAME="iptables"
4 PVER="1.4.2"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="iptables is used to create internet firewalls based on stateless and stateful packet filtering."
11 HOMEPAGE="http://www.netfilter.org/"
12
13 DEPEND=""
14 SDEPEND=">= virtual/kernel-headers"
15
16 SRCFILE="${PNAME}-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mtools mbuild
20
21 # cvs revisions
22 IPTABLES_RC=iptables.rc-1.2
23
24 SRC_URI=(
25 http://www.netfilter.org/projects/${PNAME}/files/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${IPTABLES_RC}
28 mirror://${PNAME}/iptables.confd
29 )
30
31 # exclude rc versions
32 UP2DATE="updatecmd 'http://www.netfilter.org/projects/${PNAME}/files?C=M;O=A' | grep -v '.*rc.*' | lasttarball"
33
34 src_compile()
35 {
36 cd ${SRCDIR}
37
38 mconfigure \
39 --sbindir=/sbin \
40 --libexecdir=/$(mlibdir) \
41 --without-kernel \
42 --enable-devel \
43 --enable-libipq \
44 --enable-shared \
45 --enable-static \
46 || die
47
48 mmake || die
49 }
50
51 src_install()
52 {
53 cd ${SRCDIR}
54 mmake DESTDIR=${BINDIR} install || die
55
56 # installs headers
57 minstalldir /usr/include/libiptc || die
58 minstalldir /usr/$(mlibdir) || die
59 minstallfile include/iptables.h /usr/include || die
60 minstallfile include/ip6tables.h /usr/include || die
61 minstallfile libiptc/libiptc.a /usr/$(mlibdir) || die
62 minstallfile include/libiptc/\*.h /usr/include/libiptc || die
63
64 # install iptables rc & conf.d for ipv4
65 minstallconf iptables.confd iptables || die
66 minstallrc ${IPTABLES_RC} iptables || die
67
68 # now for ipv6; some line needs to be seded
69 minstallconf iptables.confd ip6tables || die
70 minstallrc ${IPTABLES_RC} ip6tables || die
71
72 # fix iptables-cmds for ipv6
73 sed -i -e "s:^\(SVC_NAME=\).*:\1ip6tables:" \
74 -e "s:^\(IPTABLES=\).*:\1/sbin/ip6tables:" \
75 -e "s:^\(IPTABLES_SAVE=\).*:\1/sbin/ip6tables-save:" \
76 -e "s:^\(IPTABLES_RESTORE=\).*:\1/sbin/ip6tables-restore:" \
77 -e "s:^\(IPTABLES_PROC=\).*:\1/proc/net/ip6_tables_names:" \
78 ${BINDIR}/etc/rc.d/init.d/ip6tables || die
79
80 # prevents removing of iptables-save default path
81 mkeepdir /var/lib/iptables || die
82
83 # docs
84 minstalldocs COPYING INCOMPATIBILITIES || die
85 }

Properties

Name Value
svn:keywords Id