Contents of /trunk/core/ebtables/ebtables-2.0.10.4-r2.smage2
Parent Directory | Revision Log
Revision 12753 -
(show annotations)
(download)
Mon Jul 2 14:37:15 2012 UTC (12 years, 2 months ago) by niro
File size: 1687 byte(s)
Mon Jul 2 14:37:15 2012 UTC (12 years, 2 months ago) by niro
File size: 1687 byte(s)
-marked unstable
1 | # $Id$ |
2 | |
3 | PNAME="ebtables" |
4 | PVER="2.0.10.4" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="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=">= virtual/glibc" |
14 | SDEPEND=">= virtual/kernel-headers" |
15 | |
16 | SRCFILE="${PNAME}-v${PVER%.*}-${PVER##*.}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-v${PVER%.*}-${PVER##*.}" |
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.sh |
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:=/usr/bin," \ |
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:=/usr/$(mlibdir)/\$(PROGNAME)," \ |
45 | Makefile || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | mmake CFLAGS='-Wunused -Wall -Werror -Wno-error=unused-but-set-variable' || 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 | minstalldir /usr/lib/systemd || die |
66 | minstallexec -s ebtables.sh /usr/lib/systemd/magellan-ebtables || die |
67 | |
68 | # docs |
69 | minstalldocs COMMIT_NOTES COPYING INCOMPATIBILITIES || die |
70 | } |