iproute2: enable lnstat and package all commands from misc into its own package
* disable arpd because db_185.h is not installed from the berkely db recipe Fixes: SYS#1609
This commit is contained in:
parent
ffd5888c91
commit
1716d4ffae
|
@ -7,16 +7,7 @@ Index: iproute2-3.10.0/misc/Makefile
|
|||
LNSTATOBJ=lnstat.o lnstat_util.o
|
||||
|
||||
-TARGETS=ss nstat ifstat rtacct arpd lnstat
|
||||
+TARGETS=ss nstat ifstat rtacct
|
||||
+TARGETS=ss nstat ifstat rtacct lnstat
|
||||
|
||||
include ../Config
|
||||
|
||||
@@ -28,8 +28,6 @@ lnstat: $(LNSTATOBJ)
|
||||
|
||||
install: all
|
||||
install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
|
||||
- ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
|
||||
- ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
|
||||
|
||||
clean:
|
||||
rm -f *.o $(TARGETS) ssfilter.c
|
|
@ -1,9 +1,19 @@
|
|||
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
|
||||
|
||||
PRINC="1"
|
||||
|
||||
SRC_URI += "file://build_ss_only_in_misc.patch"
|
||||
PRINC="2"
|
||||
|
||||
# arpd can not be build because the db_185.h header from
|
||||
# berkley db is not installed
|
||||
SRC_URI += "file://disable_arpd_in_misc.patch"
|
||||
|
||||
EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip misc' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'"
|
||||
|
||||
PACKAGES =+ "${PN}-misc"
|
||||
|
||||
FILES_${PN}-misc += "${base_sbindir}/ss \
|
||||
${base_sbindir}/nstat \
|
||||
${base_sbindir}/ifstat \
|
||||
${base_sbindir}/rtacct \
|
||||
${base_sbindir}/lnstat \
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue