Magellan Linux

Annotation of /branches/magellan-next/core/iptables/iptables-1.4.9.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6239 - (hide annotations) (download)
Thu Aug 19 21:38:56 2010 UTC (13 years, 9 months ago) by niro
File size: 2343 byte(s)
auto added: ver bump to 1.4.9.1-r1
1 niro 6239 # $Id: iptables-1.4.5-r1.smage2 3423 2009-10-21 18:58:56Z niro $
2    
3     PNAME="iptables"
4     PVER="1.4.9.1"
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     minstalldir /usr/$(mlibdir)/iptables || die
60     minstallfile include/iptables.h /usr/include || die
61     minstallfile include/ip6tables.h /usr/include || die
62     minstallfile include/iptables/internal.h /usr/include/iptables || die
63     # the makefile seems to handle them now correctly
64     # minstallfile libiptc/libiptc.a /usr/$(mlibdir) || die
65     # minstallfile include/libiptc/\*.h /usr/include/libiptc || die
66    
67     # install iptables rc & conf.d for ipv4
68     minstallconf iptables.confd iptables || die
69     minstallrc ${IPTABLES_RC} iptables || die
70    
71     # now for ipv6; some line needs to be seded
72     minstallconf iptables.confd ip6tables || die
73     minstallrc ${IPTABLES_RC} ip6tables || die
74    
75     # fix iptables-cmds for ipv6
76     sed -i -e "s:^\(SVC_NAME=\).*:\1ip6tables:" \
77     -e "s:^\(IPTABLES=\).*:\1/sbin/ip6tables:" \
78     -e "s:^\(IPTABLES_SAVE=\).*:\1/sbin/ip6tables-save:" \
79     -e "s:^\(IPTABLES_RESTORE=\).*:\1/sbin/ip6tables-restore:" \
80     -e "s:^\(IPTABLES_PROC=\).*:\1/proc/net/ip6_tables_names:" \
81     ${BINDIR}/etc/rc.d/init.d/ip6tables || die
82    
83     # prevents removing of iptables-save default path
84     mkeepdir /var/lib/iptables || die
85    
86     # docs
87     minstalldocs COPYING INCOMPATIBILITIES || die
88     }