blob: b1fe7a2fb8704c8c95fee2ef3864ea7ecf21fa4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
DESCRIPTION = "Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and brouting."
PRIORITY = "optional"
LICENSE = "GPL"
SECTION = "console/network"
PR = "r0"
TARGET_CC_ARCH += "${LDFLAGS}"
SRC_URI = " \
${SOURCEFORGE_MIRROR}/ebtables/ebtables-v${PV}.tar.gz \
file://installnonroot.patch \
file://01debian_defaultconfig.patch \
file://ebtables.init \
"
SRC_URI[md5sum] = "b880429a6424186728eb57ae80ef878a"
SRC_URI[sha256sum] = "98855f644d43c615a8e663197978e49c95642f46f2bbf8e6f3213af87f8ad6a3"
S = "${WORKDIR}/ebtables-v${PV}"
EXTRA_OEMAKE = " \
BINDIR=${base_sbindir} \
MANDIR=${mandir} \
ETHERTYPESPATH=${sysconfdir} \
INITDIR=${sysconfdir}/init.d \
SYSCONFIGDIR=${sysconfdir}/default \
LIBDIR=${base_libdir}/ebtables \
'CC=${CC}' \
'CFLAGS=${CFLAGS}' \
'LD=${LD}' \
"
do_install () {
install -d ${D}${sysconfdir}/init.d
install -d ${D}${sysconfdir}/default
install -d ${D}${sysconfdir}/ebtables
oe_runmake DESTDIR='${D}' install
install -m 0755 ${WORKDIR}/ebtables.init ${D}/${sysconfdir}/init.d/ebtables
mv ${D}${sysconfdir}/default/ebtables-config ${D}${sysconfdir}/default/ebtables
}
CONFFILES_${PN} += "${sysconfdir}/default/ebtables"
inherit update-rc.d
INITSCRIPT_NAME = "ebtables"
INITSCRIPT_PARAMS = "start 41 S . stop 41 6 ."
FILES_${PN}-dbg += "${base_libdir}/ebtables/.debug"
FILES_${PN} += "${base_libdir}/ebtables/*.so"
|