Contents of /trunk/extras/ebtables/ebtables-2.0.8.2-r3.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1580 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1580 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/ebtables/ebtables-2.0.8.2-r3.smage2,v 1.2 2008/04/20 21:31:19 niro Exp $ |
2 | |
3 | PNAME="ebtables" |
4 | PVER="2.0.8.2" |
5 | PBUILD="r3" |
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}-${PVER}-ebt-save.patch |
25 | mirror://${PNAME}/ebtables.rc |
26 | mirror://${PNAME}/ebtables.confd |
27 | ) |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # ebtables should save table names as parameters |
35 | mpatch ${PNAME}-${PVER}-ebt-save.patch || die |
36 | |
37 | # fix install locations |
38 | sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \ |
39 | -e "s,^BINDIR:=.*,BINDIR:=/sbin," \ |
40 | -e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PNAME}-${PVER}," \ |
41 | -e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PNAME}-${PVER}," \ |
42 | -e "s,^LIBDIR:=.*,LIBDIR:=/$(mlibdir)/\$(PROGNAME)," \ |
43 | Makefile |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | mmake || die |
50 | } |
51 | |
52 | src_install() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | # missing directory |
57 | minstalldir /usr/share/doc/${PNAME}-${PVER}/ebtables || die |
58 | |
59 | make DESTDIR=${BINDIR} install || die |
60 | mkeepdir /var/lib/ebtables || die |
61 | |
62 | minstallconf ebtables.confd ebtables || die |
63 | minstallrc ebtables.rc ebtables || die |
64 | |
65 | # docs |
66 | minstalldocs COMMIT_NOTES COPYING INCOMPATIBILITIES || die |
67 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |