added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
SUMMARY = "Tool for controlling the Linux TUN/TAP driver"
SECTION = "net"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://tunctl.c;beginline=1;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
SRC_URI = "${SOURCEFORGE_MIRROR}/tunctl/tunctl-${PV}.tar.gz \
file://makefile-add-ldflags.patch \
"
do_compile() {
oe_runmake tunctl
}
do_install() {
install -d ${D}/${sbindir}
install -m 755 tunctl ${D}/${sbindir}
}

View File

@@ -0,0 +1,19 @@
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>
diff --git a/Makefile b/Makefile
index a0aa7f6..d6ce2c7 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ MAN_DIR ?= /usr/share/man/man$(MANS)
all : $(BIN) $(MAN)
$(BIN) : $(BIN).c
- $(CC) $(CFLAGS) -o $(BIN) $(BIN).c
+ $(CC) $(CFLAGS) ${LDFLAGS} -o $(BIN) $(BIN).c
$(MAN) : $(PACKAGE).sgml
docbook2man $(PACKAGE).sgml

View File

@@ -0,0 +1,4 @@
require tunctl.inc
SRC_URI[md5sum] = "fdbedc263b3e85bb0e087cd567414607"
SRC_URI[sha256sum] = "aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff"