mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
glib-networking: add package
Add GIO modules for TLS support as well as defining proxies via well-known environment variables. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
87
libs/glib-networking/Makefile
Normal file
87
libs/glib-networking/Makefile
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=glib-networking
|
||||||
|
PKG_VERSION:=2.80.0
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/$(basename $(PKG_VERSION))
|
||||||
|
PKG_HASH:=d8f4f1aab213179ae3351617b59dab5de6bcc9e785021eee178998ebd4bb3acf
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||||
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
PKG_CPE_ID:=cpe:/a:gnome:glib-networking
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/meson.mk
|
||||||
|
|
||||||
|
MESON_ARGS += \
|
||||||
|
-Dgnutls=enabled \
|
||||||
|
-Dopenssl=enabled \
|
||||||
|
-Denvironment_proxy=enabled \
|
||||||
|
-Dlibproxy=disabled \
|
||||||
|
-Dgnome_proxy=disabled \
|
||||||
|
-Dinstalled_tests=false \
|
||||||
|
-Ddebug_logs=false
|
||||||
|
|
||||||
|
define Package/libgio-gnutls
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+glib2 +libgnutls
|
||||||
|
TITLE:=GLib2 GIO GNUTLS module
|
||||||
|
URL:=http://www.gnome.org/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-gnutls/description
|
||||||
|
GNUTLS backend for GLib2 GIO.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-openssl
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+glib2 +libopenssl
|
||||||
|
TITLE:=GLib2 GIO OpenSSL module
|
||||||
|
URL:=http://www.gnome.org/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-openssl/description
|
||||||
|
OpenSSL backend for GLib2 GIO.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-environmentproxy
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+glib2
|
||||||
|
TITLE:=GLib2 GIO environmentproxy module
|
||||||
|
URL:=http://www.gnome.org/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-environmentproxy/description
|
||||||
|
Proxy environment variables module GLib2 GIO.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-gnutls/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/gio/modules
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/gio/modules/libgiognutls.so \
|
||||||
|
$(1)/usr/lib/gio/modules
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-openssl/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/gio/modules
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/gio/modules/libgioopenssl.so \
|
||||||
|
$(1)/usr/lib/gio/modules
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libgio-environmentproxy/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/gio/modules
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/gio/modules/libgioenvironmentproxy.so \
|
||||||
|
$(1)/usr/lib/gio/modules
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,libgio-gnutls))
|
||||||
|
$(eval $(call BuildPackage,libgio-openssl))
|
||||||
|
$(eval $(call BuildPackage,libgio-environmentproxy))
|
||||||
8
libs/glib-networking/patches/100-no-tests.patch
Normal file
8
libs/glib-networking/patches/100-no-tests.patch
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
--- a/proxy/meson.build
|
||||||
|
+++ b/proxy/meson.build
|
||||||
|
@@ -9,5 +9,3 @@ endif
|
||||||
|
if get_option('environment_proxy').enabled()
|
||||||
|
subdir('environment')
|
||||||
|
endif
|
||||||
|
-
|
||||||
|
-subdir('tests')
|
||||||
Reference in New Issue
Block a user