Magellan Linux

Annotation of /trunk/extras/ebtables/ebtables-2.0.9.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3766 - (hide annotations) (download)
Tue Nov 3 17:09:25 2009 UTC (14 years, 10 months ago) by niro
File size: 1525 byte(s)
auto added: ver bump to 2.0.9.1-r2
1 niro 3766 # $Id$
2    
3     PNAME="ebtables"
4     PVER="2.0.9.1"
5     PBUILD="r2"
6    
7     PCATEGORIE="net-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and routing."
11     HOMEPAGE="http://ebtables.sourceforge.net/"
12    
13     DEPEND=""
14     SDEPEND=">= virtual/kernel-headers"
15    
16     SRCFILE="${PNAME}-v${PVER:0:5}-${PVER:6}.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-v${PVER:0:5}-${PVER:6}"
18    
19     sminclude mtools
20    
21     SRC_URI=(
22     sourceforge://${PNAME}/${SRCFILE}
23     mirror://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${PNAME}-2.0.8.2-ebt-save.patch
25     mirror://${PNAME}/ebtables.rc
26     mirror://${PNAME}/ebtables.confd
27     )
28    
29     UP2DATE="updatecmd_sourceforge ${PNAME}"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # ebtables should save table names as parameters
37     mpatch ${PNAME}-2.0.8.2-ebt-save.patch || die
38    
39     # fix install locations
40     sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \
41     -e "s,^BINDIR:=.*,BINDIR:=/sbin," \
42     -e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PNAME}-${PVER}," \
43     -e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PNAME}-${PVER}," \
44     -e "s,^LIBDIR:=.*,LIBDIR:=/$(mlibdir)/\$(PROGNAME)," \
45     Makefile
46     }
47    
48     src_compile()
49     {
50     cd ${SRCDIR}
51     mmake || die
52     }
53    
54     src_install()
55     {
56     cd ${SRCDIR}
57    
58     # missing directory
59     minstalldir /usr/share/doc/${PNAME}-${PVER}/ebtables || die
60    
61     make DESTDIR=${BINDIR} install || die
62     mkeepdir /var/lib/ebtables || die
63    
64     minstallconf ebtables.confd ebtables || die
65     minstallrc ebtables.rc ebtables || die
66    
67     # docs
68     minstalldocs COMMIT_NOTES COPYING INCOMPATIBILITIES || die
69     }

Properties

Name Value
svn:keywords Id