openssl is used to sign the Packages file in the ipkg-repository.

Signed-off-by: George McCollister <[email protected]>
---
 platforms/hosttools.in  |    1 +
 rules/host-openssl.in   |    5 ++++
 rules/host-openssl.make |   52 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+), 0 deletions(-)
 create mode 100644 rules/host-openssl.in
 create mode 100644 rules/host-openssl.make

diff --git a/platforms/hosttools.in b/platforms/hosttools.in
index bb259aa..5137eea 100644
--- a/platforms/hosttools.in
+++ b/platforms/hosttools.in
@@ -15,6 +15,7 @@ source "rules/host-libuuid.in"
 source "rules/host-lzop.in"
 source "rules/host-mkelfImage.in"
 source "rules/host-mtd-utils.in"
+source "rules/host-openssl.in"
 source "rules/host-squashfs-tools.in"
 source "rules/host-umkimage.in"
 source "rules/host-util-linux-ng.in"
diff --git a/rules/host-openssl.in b/rules/host-openssl.in
new file mode 100644
index 0000000..33a3862
--- /dev/null
+++ b/rules/host-openssl.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_OPENSSL
+       tristate
+       default ALLYES
diff --git a/rules/host-openssl.make b/rules/host-openssl.make
new file mode 100644
index 0000000..3349c9b
--- /dev/null
+++ b/rules/host-openssl.make
@@ -0,0 +1,52 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by George McCollister <[email protected]>
+#          
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+
+#
+HOST_PACKAGES-$(PTXCONF_HOST_OPENSSL) += host-openssl
+
+#
+# Paths and names
+#
+HOST_OPENSSL           = $(OPENSSL)
+HOST_OPENSSL_DIR       = $(HOST_BUILDDIR)/$(HOST_OPENSSL)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_OPENSSL_CONF_ENV  := $(HOST_ENV)
+HOST_OPENSSL_MAKE_PAR  := NO
+
+#
+# autoconf
+#
+HOST_OPENSSL_CONF_OPT := \
+       --prefix=/ \
+       --install_prefix=$(HOST_OPENSSL_PKGDIR)
+
+#
+# Follow the directions in INSTALL section 1a.
+# Configure OpenSSL for your operation system automatically
+#
+# I see no reason to follow the instructions for manual configuration
+# on the host, to do that we need to specify an architecture type.
+#
+$(STATEDIR)/host-openssl.prepare:
+       @$(call targetinfo)
+       cd $(HOST_OPENSSL_DIR) && \
+               $(HOST_OPENSSL_PATH) $(HOST_OPENSSL_CONF_ENV) \
+               ./config $(HOST_OPENSSL_CONF_OPT)
+       @$(call touch)
+
+# vim: syntax=make
-- 
1.7.1


-- 
ptxdist mailing list
[email protected]

Reply via email to