libpagekite: new package
libpagekite is a C implementation of the backend of the PageKite relay protocol. It allows external access to embedded devices without public IP address.
There is a bundled version of libev but we prefer to use the global libev library.
Although the configure script has a --without-openssl option, it doesn't actually build without openssl.
Patch 0001-configure.ac-fix-handling-of-with.patch is needed because we want to explicitly pass --with and --without options, even if they are the default. The way the AC_ARG_WITH macros were used, --with and --without both had the effect of enabling the option.
Patch 0002-configure.ac-use-AS_HELP_STRING-for-with-openssl.patch is not needed for Buildroot, but it is part of the same upstream PR and would generate a conflict for the next patch.
Patch 0003-configure.ac-use-pkg-config-for-openssl.patch is needed to pass -lz (needed by openssl) in static compilation.
--- package/Config.in | 1 + .../0001-configure.ac-fix-handling-of-with.patch | 76 ++++++++++++ ...re.ac-use-AS_HELP_STRING-for-with-openssl.patch | 28 +++++ ...3-configure.ac-use-pkg-config-for-openssl.patch | 137 +++++++++++++++++++++ package/libpagekite/Config.in | 26 ++++ package/libpagekite/libpagekite.hash | 7 ++ package/libpagekite/libpagekite.mk | 29 +++++ 7 files changed, 304 insertions(+) create mode 100644 package/libpagekite/0001-configure.ac-fix-handling-of-with.patch create mode 100644 package/libpagekite/0002-configure.ac-use-AS_HELP_STRING-for-with-openssl.patch create mode 100644 package/libpagekite/0003-configure.ac-use-pkg-config-for-openssl.patch create mode 100644 package/libpagekite/Config.in create mode 100644 package/libpagekite/libpagekite.hash create mode 100644 package/libpagekite/libpagekite.mk
package/Config.in +1 -0
@@ -1399,6 +1399,7 @@ menu "Networking" source "package/liboauth/Config.in" source "package/liboping/Config.in" source "package/libosip2/Config.in" + source "package/libpagekite/Config.in" source "package/libpcap/Config.in" source "package/libpjsip/Config.in" source "package/librsync/Config.in"
package/libpagekite/0001-configure.ac-fix-handling-of-with.patch new file +76 -0
76 lines not on this page · raw message
package/libpagekite/0002-configure.ac-use-AS_HELP_STRING-for-with-openssl.patch new file +28 -0
@@ -0,0 +1,28 @@ +From cb20efae0e2ca86dd48c603b61d9c20225ebcd3d Mon Sep 17 00:00:00 2001 +From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]> +Date: Fri, 16 Feb 2018 12:06:28 +0100 +Subject: [PATCH] configure.ac: use AS_HELP_STRING for --with-openssl + +Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]> +--- + configure.ac | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 130752a..4874c0b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,7 +17,9 @@ use_openssl="yes" + use_libev="yes" + + specialssldir="" +-AC_ARG_WITH(openssl,[ --with-openssl=DIR Use optional openssl libs and includes from [DIR]/lib/ and [DIR]/include/openssl/], ++AC_ARG_WITH(openssl, ++ [AS_HELP_STRING([--with-openssl=DIR], ++ [Use optional openssl libs and includes from [DIR]/lib/ and [DIR]/include/openssl/])], + [ case "$with_openssl" in + yes) + ;; +-- +2.15.1 +
package/libpagekite/0003-configure.ac-use-pkg-config-for-openssl.patch new file +137 -0
137 lines not on this page · raw message
package/libpagekite/Config.in new file +26 -0
@@ -0,0 +1,26 @@ +config BR2_PACKAGE_LIBPAGEKITE + bool "libpcap" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_bfin # libev + select BR2_PACKAGE_LIBEV + select BR2_PACKAGE_OPENSSL + help + PageKite is a protocol for dynamic, tunneled reverse proxying + of arbitrary TCP byte streams. It is particularly well suited + for making a HTTP server on a device without a public IP + address visible to the wider Internet, but can also be used + for a variety of other things, including SSH access. + + libpagekite is a tight, fast implementation of the PageKite + protocol in C, suitable for high-performance or embedded + applications. + + In addition to the libpagekite library, this package installs + the pagekitec, sshkite and httpkite tools. + + https://pagekite.net + https://github.com/pagekite/libpagekite + +comment "libpagekite needs a toolchain with threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_bfin
package/libpagekite/libpagekite.hash new file +7 -0
@@ -0,0 +1,7 @@ +# Locally calculated +sha256 df95bfe95c04b6908e835e13444c1c1883765926f1265e0d2223c42d3c59a4c2 libpagekite-v0.91.171102.tar.gz + +# License files, locally calculated +sha256 ba443b9c9d4273d06aae3e147e9ad1ec199cc9c23455f486a039536d47f57eed doc/COPYING.md +sha256 4a271d0bb6bb6e0bac880efddb46da73e6df3dcf0d9ca08a945a232f8ab882ef doc/LICENSE-2.0.txt +sha256 8e0f770cabe772d67d36469f6bf413afd2dcfa6ac37acfc65f770cf3a134106d doc/AGPLv3.txt
package/libpagekite/libpagekite.mk new file +29 -0
@@ -0,0 +1,29 @@ +################################################################################ +# +# libpagekite +# +################################################################################ + +LIBPAGEKITE_VERSION = v0.91.171102 +LIBPAGEKITE_SITE = $(call github,pagekite,libpagekite,$(LIBPAGEKITE_VERSION)) + +# pkrelay is AGPL-3.0+ but is not built +LIBPAGEKITE_LICENSE = Apache-2.0 or AGPL-3.0+ +LIBPAGEKITE_LICENSE_FILES = doc/COPYING.md doc/LICENSE-2.0.txt doc/AGPLv3.txt + +LIBPAGEKITE_DEPENDENCIES = host-pkgconf libev openssl +LIBPAGEKITE_INSTALL_STAGING = YES + +# Sources from git, no configure included +# 0001-configure.ac-fix-handling-of-with-os-libev.patch touches configure.ac +LIBPAGEKITE_AUTORECONF = YES + +LIBPAGEKITE_CONF_OPTS = \ + --with-openssl \ + --without-tests \ + --with-os-libev \ + --without-java \ + --without-agpl-relay \ + --without-ds-logfmt + +$(eval $(autotools-package))
Signature · 1 line
2.15.1
Romain Naour
Reviewed-byHi Arnout,
It seems you used libpcap package as a template :)
Le 16/02/2018 ? 16:21, Arnout Vandecappelle (Essensium/Mind) a ?crit?:
Quoted 24 lines
libpagekite is a C implementation of the backend of the PageKite relay protocol. It allows external access to embedded devices without public IP address.
There is a bundled version of libev but we prefer to use the global libev library.
Although the configure script has a --without-openssl option, it doesn't actually build without openssl.
Patch 0001-configure.ac-fix-handling-of-with.patch is needed because we want to explicitly pass --with and --without options, even if they are the default. The way the
AC_ARG_WITHmacros were used, --with and --without both had the effect of enabling the option.Patch 0002-configure.ac-use-AS_HELP_STRING-for-with-openssl.patch is not needed for Buildroot, but it is part of the same upstream PR and would generate a conflict for the next patch.
Patch 0003-configure.ac-use-pkg-config-for-openssl.patch is needed to pass -lz (needed by openssl) in static compilation.
---
[...]
package/libpagekite/Config.in line 2
Quoted 8 lines
package/libpagekite/Config.in new file +2
-0@@ -0,0 +1,26 @@ +config BR2_PACKAGE_LIBPAGEKITE + bool "libpcap"
should be "libpagekite"
Best regards,
Romain
Quoted 73 lines
package/libpagekite/Config.in new file +24
-0+ depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_bfin # libev + select BR2_PACKAGE_LIBEV + select BR2_PACKAGE_OPENSSL + help + PageKite is a protocol for dynamic, tunneled reverse proxying + of arbitrary TCP byte streams. It is particularly well suited + for making a HTTP server on a device without a public IP + address visible to the wider Internet, but can also be used + for a variety of other things, including SSH access. + + libpagekite is a tight, fast implementation of the PageKite + protocol in C, suitable for high-performance or embedded + applications. + + In addition to the libpagekite library, this package installs + the pagekitec, sshkite and httpkite tools. + + https://pagekite.net + https://github.com/pagekite/libpagekite + +comment "libpagekite needs a toolchain with threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_bfinpackage/libpagekite/libpagekite.hash new file +7
-0@@ -0,0 +1,7 @@ +# Locally calculated +sha256 df95bfe95c04b6908e835e13444c1c1883765926f1265e0d2223c42d3c59a4c2 libpagekite-v0.91.171102.tar.gz + +# License files, locally calculated +sha256 ba443b9c9d4273d06aae3e147e9ad1ec199cc9c23455f486a039536d47f57eed doc/COPYING.md +sha256 4a271d0bb6bb6e0bac880efddb46da73e6df3dcf0d9ca08a945a232f8ab882ef doc/LICENSE-2.0.txt +sha256 8e0f770cabe772d67d36469f6bf413afd2dcfa6ac37acfc65f770cf3a134106d doc/AGPLv3.txtpackage/libpagekite/libpagekite.mk new file +29
-0@@ -0,0 +1,29 @@ +################################################################################ +# +# libpagekite +# +################################################################################ + +LIBPAGEKITE_VERSION = v0.91.171102 +LIBPAGEKITE_SITE = $(call github,pagekite,libpagekite,$(LIBPAGEKITE_VERSION)) + +# pkrelay is AGPL-3.0+ but is not built +LIBPAGEKITE_LICENSE = Apache-2.0 or AGPL-3.0+ +LIBPAGEKITE_LICENSE_FILES = doc/COPYING.md doc/LICENSE-2.0.txt doc/AGPLv3.txt + +LIBPAGEKITE_DEPENDENCIES = host-pkgconf libev openssl +LIBPAGEKITE_INSTALL_STAGING = YES + +# Sources from git, no configure included +# 0001-configure.ac-fix-handling-of-with-os-libev.patch touches configure.ac +LIBPAGEKITE_AUTORECONF = YES + +LIBPAGEKITE_CONF_OPTS = \ + --with-openssl \ + --without-tests \ + --with-os-libev \ + --without-java \ + --without-agpl-relay \ + --without-ds-logfmt + +$(eval $(autotools-package))
Hello,
Quoted 23 lines · Arnout Vandecappelle (Essensium/Mind)
libpagekite is a C implementation of the backend of the PageKite relay protocol. It allows external access to embedded devices without public IP address.
There is a bundled version of libev but we prefer to use the global libev library.
Although the configure script has a --without-openssl option, it doesn't actually build without openssl.
Patch 0001-configure.ac-fix-handling-of-with.patch is needed because we want to explicitly pass --with and --without options, even if they are the default. The way the
AC_ARG_WITHmacros were used, --with and --without both had the effect of enabling the option.Patch 0002-configure.ac-use-AS_HELP_STRING-for-with-openssl.patch is not needed for Buildroot, but it is part of the same upstream PR and would generate a conflict for the next patch.
Patch 0003-configure.ac-use-pkg-config-for-openssl.patch is needed to pass -lz (needed by openssl) in static compilation.
Quoted 15 lines
--- package/Config.in | 1 + .../0001-configure.ac-fix-handling-of-with.patch | 76 ++++++++++++ ...re.ac-use-AS_HELP_STRING-for-with-openssl.patch | 28 +++++ ...3-configure.ac-use-pkg-config-for-openssl.patch | 137 +++++++++++++++++++++ package/libpagekite/Config.in | 26 ++++ package/libpagekite/libpagekite.hash | 7 ++ package/libpagekite/libpagekite.mk | 29 +++++ 7 files changed, 304 insertions(+) create mode 100644 package/libpagekite/0001-configure.ac-fix-handling-of-with.patch create mode 100644 package/libpagekite/0002-configure.ac-use-AS_HELP_STRING-for-with-openssl.patch create mode 100644 package/libpagekite/0003-configure.ac-use-pkg-config-for-openssl.patch create mode 100644 package/libpagekite/Config.in create mode 100644 package/libpagekite/libpagekite.hash create mode 100644 package/libpagekite/libpagekite.mk
Applied with the following changes:
[Thomas:
- As noticed by Romain Naour, fix the prompt of the package in the Config.in
- Add entry to DEVELOPERS file
- Drop the dependency on BR2_bfin, since this architecture has been dropped from Buildroot.]
Please make sure to submit the various patches upstream! :-)
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com