added my Recipes
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
From 801224257015788d3aff026bf2ae1cd8531d4fcc Mon Sep 17 00:00:00 2001
|
||||
From: Changqing Li <changqing.li@windriver.com>
|
||||
Date: Wed, 25 Jul 2018 13:12:04 +0800
|
||||
Subject: [PATCH] Modify the Makefile for cross compile.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
|
||||
|
||||
update to version 1.29
|
||||
|
||||
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||
---
|
||||
Makefile | 9 ++++-----
|
||||
libipvs/Makefile | 3 +--
|
||||
2 files changed, 5 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 91a2991..906086d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -35,10 +35,9 @@ ARCH = $(shell uname -m)
|
||||
RPMSOURCEDIR = $(shell rpm --eval '%_sourcedir')
|
||||
RPMSPECDIR = $(shell rpm --eval '%_specdir')
|
||||
|
||||
-CC = gcc
|
||||
INCLUDE =
|
||||
SBIN = $(BUILD_ROOT)/sbin
|
||||
-MANDIR = usr/man
|
||||
+MANDIR = usr/share/man
|
||||
MAN = $(BUILD_ROOT)/$(MANDIR)/man8
|
||||
INIT = $(BUILD_ROOT)/etc/rc.d/init.d
|
||||
MKDIR = mkdir
|
||||
@@ -81,13 +80,13 @@ DEFINES += $(shell if [ ! -f ../ip_vs.h ]; then \
|
||||
|
||||
.PHONY = all clean install dist distclean rpm rpms
|
||||
|
||||
-all: libs ipvsadm
|
||||
+all: ipvsadm
|
||||
|
||||
libs:
|
||||
make -C libipvs
|
||||
|
||||
-ipvsadm: $(OBJS) $(STATIC_LIBS)
|
||||
- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
||||
+ipvsadm: $(OBJS) libs
|
||||
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS)
|
||||
|
||||
install: all
|
||||
if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
|
||||
diff --git a/libipvs/Makefile b/libipvs/Makefile
|
||||
index f845c8b..dafab30 100644
|
||||
--- a/libipvs/Makefile
|
||||
+++ b/libipvs/Makefile
|
||||
@@ -1,6 +1,5 @@
|
||||
# Makefile for libipvs
|
||||
|
||||
-CC = gcc
|
||||
CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
|
||||
ifneq (0,$(HAVE_NL))
|
||||
CFLAGS += -DLIBIPVS_USE_NL
|
||||
@@ -30,7 +29,7 @@ SHARED_LIB = libipvs.so
|
||||
all: $(STATIC_LIB) $(SHARED_LIB)
|
||||
|
||||
$(STATIC_LIB): libipvs.o ip_vs_nl_policy.o
|
||||
- ar rv $@ $^
|
||||
+ $(AR) rv $@ $^
|
||||
|
||||
$(SHARED_LIB): libipvs.o ip_vs_nl_policy.o
|
||||
$(CC) -shared -Wl,-soname,$@ -o $@ $^
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 2f4cdf70cf92d3a9503d8ff045ba277db40bb4e7 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Monday, 13 Apr 2015 14:12:37 -0400
|
||||
Subject: [PATCH] ipvsadm: remove dependency on bash
|
||||
|
||||
The save/restore scripts are very simple and don't depend on any BASH
|
||||
features at all, so switch the interpreter to /bin/sh.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
---
|
||||
ipvsadm-restore | 2 +-
|
||||
ipvsadm-save | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/ipvsadm-restore b/ipvsadm-restore
|
||||
index f24e1b3..a9fa8bc 100644
|
||||
--- a/ipvsadm-restore
|
||||
+++ b/ipvsadm-restore
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
# ipvsadm-restore - Restore IPVS rules
|
||||
#
|
||||
# A very simple wrapper to restore IPVS rules
|
||||
diff --git a/ipvsadm-save b/ipvsadm-save
|
||||
index f4d399e..af51638 100644
|
||||
--- a/ipvsadm-save
|
||||
+++ b/ipvsadm-save
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
# ipvsadm-save - Save IPVS rules
|
||||
#
|
||||
# A very simple wrapper to save IPVS rules
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From 8aff1e965ec17262f3a5b376f7eb3e053d81905c Mon Sep 17 00:00:00 2001
|
||||
From: Changqing Li <changqing.li@windriver.com>
|
||||
Date: Tue, 24 Jul 2018 18:18:05 +0800
|
||||
Subject: [PATCH] Add LDFLAGS variable to Makefile, make sure the extra linker
|
||||
flags can be passed.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
|
||||
Update to version 1.29
|
||||
|
||||
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f29bbae..81beb5a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -86,7 +86,7 @@ libs:
|
||||
make -C libipvs
|
||||
|
||||
ipvsadm: $(OBJS) libs
|
||||
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS)
|
||||
|
||||
install: all
|
||||
if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SUMMARY = "Linux Virtual Server administration Utility"
|
||||
HOMEPAGE = "http://www.linux-vs.org/software/index.html"
|
||||
DESCRIPTION = "Ipvsadm is used to set up, maintain or inspect the virtual server \
|
||||
table in the Linux kernel. The Linux Virtual Server can be used to \
|
||||
build scalable network services based on a cluster of two or more nodes. \
|
||||
The active node of the cluster redirects service requests to a \
|
||||
collection of server hosts that will actually perform the services. \
|
||||
Supported features include two protocols (TCP and UDP), three packet-forwarding \
|
||||
methods (NAT, tunneling, and direct routing), and eight load balancing algorithms \
|
||||
(round robin, weighted round robin, least-connec-tion, weighted least-connection, \
|
||||
locality-based least-connection, locality-based least-connection with replication, \
|
||||
destination-hashing, and source-hashing)."
|
||||
SECTION = "net"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=40;endline=56;md5=b4e40069f15598d0e3fe2aa177e5ec77"
|
||||
|
||||
DEPENDS += "libnl popt"
|
||||
|
||||
SRC_URI = "https://mirrors.edge.kernel.org/pub/linux/utils/kernel/ipvsadm/${BP}.tar.xz \
|
||||
file://0001-Modify-the-Makefile-for-cross-compile.patch \
|
||||
file://0003-ipvsadm-remove-dependency-on-bash.patch \
|
||||
file://makefile-add-ldflags.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "f6d1707c5baf684b58fd33682d67871f"
|
||||
SRC_URI[sha256sum] = "1a0a5e25b5a1226435d2fb76341656f83a710183aebb0d204db39c0ec3bedfdb"
|
||||
|
||||
UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/ipvsadm"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake \
|
||||
CC="${CC} -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3 -L${STAGING_LIBDIR}" \
|
||||
all
|
||||
}
|
||||
|
||||
do_install() {
|
||||
sed -i -e "s;SBIN\t\t= \$(BUILD_ROOT)/sbin;SBIN\t\t= \$(BUILD_ROOT)$base_sbindir;" \
|
||||
-e "s;INIT\t\t= \$(BUILD_ROOT)/etc/rc.d/init.d;INIT\t\t= \$(BUILD_ROOT)${sysconfdir}/init.d;" \
|
||||
${S}/Makefile
|
||||
oe_runmake 'BUILD_ROOT=${D}' install
|
||||
}
|
||||
|
||||
inherit pkgconfig
|
||||
Reference in New Issue
Block a user