diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/miniupnpd')
| -rw-r--r-- | meta-networking/recipes-connectivity/miniupnpd/files/0001-Add-OpenEmbedded-cross-compile-case.patch | 38 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.3.10.bb (renamed from meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb) | 6 |
2 files changed, 3 insertions, 41 deletions
diff --git a/meta-networking/recipes-connectivity/miniupnpd/files/0001-Add-OpenEmbedded-cross-compile-case.patch b/meta-networking/recipes-connectivity/miniupnpd/files/0001-Add-OpenEmbedded-cross-compile-case.patch deleted file mode 100644 index e33d8eac1d..0000000000 --- a/meta-networking/recipes-connectivity/miniupnpd/files/0001-Add-OpenEmbedded-cross-compile-case.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | From 54698856e5602bbd9d61e855814c854a013b4840 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 22 Dec 2018 18:47:45 -0800 | ||
| 4 | Subject: [PATCH] Add OpenEmbedded cross compile case | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://github.com/miniupnp/miniupnp/pull/410] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | genconfig.sh | 11 +++++++++++ | ||
| 10 | 1 file changed, 11 insertions(+) | ||
| 11 | |||
| 12 | --- a/genconfig.sh | ||
| 13 | +++ b/genconfig.sh | ||
| 14 | @@ -103,6 +103,12 @@ if [ -f ../shared/tomato_version ]; then | ||
| 15 | OS_VERSION="Tomato $TOMATO_VER" | ||
| 16 | fi | ||
| 17 | |||
| 18 | +# OpenEmbedded special case | ||
| 19 | +if [ -f ./os.openembedded ]; then | ||
| 20 | + OS_NAME=OpenEmbedded | ||
| 21 | + OS_VERSION=$(cat ./os.openembedded) | ||
| 22 | +fi | ||
| 23 | + | ||
| 24 | ${RM} ${CONFIGFILE} | ||
| 25 | |||
| 26 | echo "/* MiniUPnP Project" >> ${CONFIGFILE} | ||
| 27 | @@ -346,6 +352,11 @@ case $OS_NAME in | ||
| 28 | echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} | ||
| 29 | FW=iptables | ||
| 30 | ;; | ||
| 31 | + OpenEmbedded) | ||
| 32 | + OS_URL=http://www.openembedded.org/ | ||
| 33 | + echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} | ||
| 34 | + FW=iptables | ||
| 35 | + ;; | ||
| 36 | AstLinux) | ||
| 37 | OS_URL=http://www.astlinux.org/ | ||
| 38 | echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} | ||
diff --git a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.3.10.bb index b7ba37f290..91f86659f7 100644 --- a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb +++ b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.3.10.bb | |||
| @@ -5,7 +5,7 @@ the network." | |||
| 5 | 5 | ||
| 6 | SECTION = "networking" | 6 | SECTION = "networking" |
| 7 | LICENSE = "BSD-3-Clause" | 7 | LICENSE = "BSD-3-Clause" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a1ed15843ce66639bcf9f109cf247870" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9526418307cb153aee96a4f9b33bd1c7" |
| 9 | 9 | ||
| 10 | inherit gettext pkgconfig systemd | 10 | inherit gettext pkgconfig systemd |
| 11 | 11 | ||
| @@ -13,9 +13,8 @@ DEPENDS += "iptables net-tools util-linux libmnl libnetfilter-conntrack openssl" | |||
| 13 | 13 | ||
| 14 | SRC_URI = "http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz;downloadfilename=${BP}.tar.gz \ | 14 | SRC_URI = "http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz;downloadfilename=${BP}.tar.gz \ |
| 15 | file://miniupnpd.service \ | 15 | file://miniupnpd.service \ |
| 16 | file://0001-Add-OpenEmbedded-cross-compile-case.patch \ | ||
| 17 | " | 16 | " |
| 18 | SRC_URI[sha256sum] = "218fad7af31f3c22fb4c9db28a55a2a8b5067d41f5b38f52008a057a00d2206d" | 17 | SRC_URI[sha256sum] = "f9c34ed3632fb60cd248dd5897bd98479a103a75688b056ca2f069e68ab32987" |
| 19 | 18 | ||
| 20 | UPSTREAM_CHECK_URI = "https://miniupnp.tuxfamily.org/files/" | 19 | UPSTREAM_CHECK_URI = "https://miniupnp.tuxfamily.org/files/" |
| 21 | UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)\.tar" | 20 | UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)\.tar" |
| @@ -27,6 +26,7 @@ EXTRA_OEMAKE = "-f Makefile.linux" | |||
| 27 | 26 | ||
| 28 | do_configure() { | 27 | do_configure() { |
| 29 | echo "${@d.getVar('DISTRO_VERSION')}" > ${S}/os.openembedded | 28 | echo "${@d.getVar('DISTRO_VERSION')}" > ${S}/os.openembedded |
| 29 | ./configure | ||
| 30 | CONFIG_OPTIONS="--leasefile --vendorcfg ${PACKAGECONFIG_CONFARGS}" oe_runmake --always-make config.h | 30 | CONFIG_OPTIONS="--leasefile --vendorcfg ${PACKAGECONFIG_CONFARGS}" oe_runmake --always-make config.h |
| 31 | } | 31 | } |
| 32 | 32 | ||
