[Buildroot] [PATCH 3/3] opkg: Add gnupg signature checking support.
Philipp Claves
claves at budelmann-elektronik.com
Fri Mar 1 13:38:29 UTC 2013
Signed-off-by: Philipp Claves <claves at budelmann-elektronik.com>
---
package/opkg/Config.in | 9 +++++++++
package/opkg/opkg.mk | 9 ++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/package/opkg/Config.in b/package/opkg/Config.in
index eb997a7..b8b4a13 100644
--- a/package/opkg/Config.in
+++ b/package/opkg/Config.in
@@ -11,3 +11,12 @@ config BR2_PACKAGE_OPKG
http://code.google.com/p/opkg/
+if BR2_PACKAGE_OPKG
+
+config BR2_PACKAGE_OPKG_GPG_SIGN
+ bool "opkg-gnupg-support"
+ select BR2_PACKAGE_LIBGPGME
+ help
+ Enable opkg package signature checking support using gnupg/libgpgme.
+
+endif
diff --git a/package/opkg/opkg.mk b/package/opkg/opkg.mk
index 9932d3f..3c53299 100644
--- a/package/opkg/opkg.mk
+++ b/package/opkg/opkg.mk
@@ -9,7 +9,7 @@ OPKG_SOURCE = opkg-$(OPKG_VERSION).tar.gz
OPKG_SITE = http://opkg.googlecode.com/svn/trunk/
OPKG_SITE_METHOD = svn
OPKG_INSTALL_STAGING = YES
-OPKG_CONF_OPT = --disable-curl --disable-gpg
+OPKG_CONF_OPT = --disable-curl
OPKG_AUTORECONF = YES
# Uses PKG_CHECK_MODULES() in configure.ac
OPKG_DEPENDENCIES = host-pkgconf
@@ -19,6 +19,13 @@ define OPKG_CREATE_LOCKDIR
mkdir -p $(TARGET_DIR)/usr/lib/opkg
endef
+ifeq ($(BR2_PACKAGE_OPKG_GPG_SIGN),y)
+ OPKG_CONF_OPT += --enable-gpg
+ OPKG_DEPENDENCIES += libgpgme
+else
+ OPKG_CONF_OPT += --disable-gpg
+endif
+
OPKG_POST_INSTALL_TARGET_HOOKS += OPKG_CREATE_LOCKDIR
$(eval $(autotools-package))
--
1.8.1.4
More information about the buildroot
mailing list