Contents of /trunk/core/ebtables/ebtables-2.0.10.4-r2.smage2
Parent Directory | Revision Log
Revision 13461 -
(show annotations)
(download)
Tue Oct 9 14:02:34 2012 UTC (11 years, 11 months ago) by niro
File size: 1696 byte(s)
Tue Oct 9 14:02:34 2012 UTC (11 years, 11 months ago) by niro
File size: 1696 byte(s)
-fixed UP2DATE
1 | # $Id$ |
2 | |
3 | PNAME="ebtables" |
4 | PVER="2.0.10.4" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and routing." |
10 | HOMEPAGE="http://ebtables.sourceforge.net/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= virtual/kernel-headers" |
14 | |
15 | SRCFILE="${PNAME}-v${PVER%.*}-${PVER##*.}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-v${PVER%.*}-${PVER##*.}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | sourceforge://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-2.0.8.2-ebt-save.patch |
24 | mirror://${PNAME}/ebtables.sh |
25 | mirror://${PNAME}/ebtables.confd |
26 | ) |
27 | |
28 | UP2DATE="updatecmd_sourceforge ${PNAME} gz | sed 's:^v::;s:-:.:g'" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # ebtables should save table names as parameters |
36 | mpatch ${PNAME}-2.0.8.2-ebt-save.patch || die |
37 | |
38 | # fix install locations |
39 | sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \ |
40 | -e "s,^BINDIR:=.*,BINDIR:=/usr/bin," \ |
41 | -e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PNAME}-${PVER}," \ |
42 | -e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PNAME}-${PVER}," \ |
43 | -e "s,^LIBDIR:=.*,LIBDIR:=/usr/$(mlibdir)/\$(PROGNAME)," \ |
44 | Makefile || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | mmake CFLAGS='-Wunused -Wall -Werror -Wno-error=unused-but-set-variable' || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | # missing directory |
58 | minstalldir /usr/share/doc/${PNAME}-${PVER}/ebtables || die |
59 | |
60 | make DESTDIR=${BINDIR} install || die |
61 | mkeepdir /var/lib/ebtables || die |
62 | |
63 | minstallconf ebtables.confd ebtables || die |
64 | minstalldir /usr/lib/systemd || die |
65 | minstallexec -s ebtables.sh /usr/lib/systemd/magellan-ebtables || die |
66 | |
67 | # docs |
68 | minstalldocs COMMIT_NOTES COPYING INCOMPATIBILITIES || die |
69 | } |