From patchwork Fri Oct 4 13:24:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 280599 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 9DAC32C00D0 for ; Fri, 4 Oct 2013 23:24:35 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 7451F447ED for ; Fri, 4 Oct 2013 15:24:34 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id 789EE447EA for ; Fri, 4 Oct 2013 15:24:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=7344; q=dns/txt; s=ironport2; t=1380893066; x=1412429066; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=CJFMDatSamNw6raP3+dGK1Xecq+Co+2TZ2iSDd4JDmk=; b=rte2JS/cl5ft5G+Lc9cZVqW0Q2SK05TBuzoZGIKwtHGegSQCd01wahe7 elBs5byqyHqPbgtRzPyBMuT/byI0fBC9/WBSsA4QTU5RmVBXuzQt6JbQK W2O6MZbjHMD/PPKbeuUG//iaMR10m/QZr0Qlb5EX3W43UgoQlLobKJMTL M=; X-IronPort-AV: E=Sophos;i="4.90,1033,1371074400"; d="scan'208";a="3749082" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/AES128-SHA; 04 Oct 2013 15:24:25 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Fri, 4 Oct 2013 15:24:25 +0200 Received: by localhost (Postfix, from userid 30019) id 834DD681B4D; Fri, 4 Oct 2013 13:24:25 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: Subject: [PATCH 08/17] nss: New recipe Date: Fri, 4 Oct 2013 13:24:14 +0000 Message-ID: X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 Cc: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- recipes/nss/nspr_4.10.oe | 46 ++++++++++++++ recipes/nss/nspr_4.10.oe.sig | 1 + recipes/nss/nss-3.15.1/cross-config.patch | 26 ++++++++ recipes/nss/nss_3.15.1.oe | 100 ++++++++++++++++++++++++++++++ recipes/nss/nss_3.15.1.oe.sig | 2 + 5 files changed, 175 insertions(+) create mode 100644 recipes/nss/nspr_4.10.oe create mode 100644 recipes/nss/nspr_4.10.oe.sig create mode 100644 recipes/nss/nss-3.15.1/cross-config.patch create mode 100644 recipes/nss/nss_3.15.1.oe create mode 100644 recipes/nss/nss_3.15.1.oe.sig diff --git a/recipes/nss/nspr_4.10.oe b/recipes/nss/nspr_4.10.oe new file mode 100644 index 0000000..27a21b9 --- /dev/null +++ b/recipes/nss/nspr_4.10.oe @@ -0,0 +1,46 @@ +SUMMARY = "Netscape portable runtime, or NSPR, a platform abstraction library" +DESCRIPTION = """ +NSPR, a platform abstraction library, makes all operating systems it supports +appear the same to (for example) Mozilla-style web-browsers. NSPR provides platform +independence for non-GUI operating system facilities +""" +HOMEPAGE = "https://developer.mozilla.org/docs/NSPR" +LICENSE = "MPL" + +SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10/src/${PN}-${PV}.tar.gz" + +RECIPE_TYPES = "machine" + +inherit pkgconfig autotools auto-package-libs auto-package-utils + +DEPENDS += "libstdc++ libdl librt libpthread " + +EXTRA_OECONF:>machine = "" + +EXTRA_OECONF += " \ + --enable-mdupdate \ +" + +S = "${SRCDIR}/${PN}-${PV}/${PN}" + +AUTO_PACKAGE_UTILS = "nspr-config" + +FILES_${PN}-nspr-config += " ${bindir}/compile-et.pl " +FILES_${PN}-nspr-config += " ${bindir}/prerr.properties " + +AUTO_PACKAGE_UTILS_RDEPENDS += "${PN}" + +# This package only creates .so files. These are +# what we need in the 'main package' +SOLIBS = ".so" +SOLIBSDEV = ".so.*" + +AUTO_PACKAGE_LIBS = "nspr4 plc4 plds4" +AUTO_PACKAGE_LIB_RDEPENDS = "libpthread libdl librt libc" + +RDEPENDS_${PN} = "libnspr4 libplc4 libplds4" + +RDEPENDS_${PN}-plc4 = "libnspr4" +RDEPENDS_${PN}-plds4 = "libnspr4" + +DEPENDS_${PN} = "${LIBS_AUTO_PACKAGES}" diff --git a/recipes/nss/nspr_4.10.oe.sig b/recipes/nss/nspr_4.10.oe.sig new file mode 100644 index 0000000..b96462a --- /dev/null +++ b/recipes/nss/nspr_4.10.oe.sig @@ -0,0 +1 @@ +10dbf68c07497dab30be09db526931c885d5a7e9 nspr-4.10.tar.gz diff --git a/recipes/nss/nss-3.15.1/cross-config.patch b/recipes/nss/nss-3.15.1/cross-config.patch new file mode 100644 index 0000000..0e5f3de --- /dev/null +++ b/recipes/nss/nss-3.15.1/cross-config.patch @@ -0,0 +1,26 @@ +--- nss/coreconf/Linux.org.mk 2013-08-06 12:45:47.096832931 +0200 ++++ nss/coreconf/Linux.mk 2013-08-06 12:48:40.744827800 +0200 +@@ -16,9 +16,9 @@ + IMPL_STRATEGY = _PTH + endif + +-CC = gcc +-CCC = g++ +-RANLIB = ranlib ++CC = $(CROSS)gcc ++CCC = $(CROSS)g++ ++RANLIB = $(CROSS)ranlib + + DEFAULT_COMPILER = gcc + +--- nss/coreconf/arch.org.mk 2013-08-06 14:10:25.528682880 +0200 ++++ nss/coreconf/arch.mk 2013-08-06 14:11:41.140680646 +0200 +@@ -302,7 +302,7 @@ + # IMPL_STRATEGY may be defined too. + # + +-OBJDIR_NAME = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(COMPILER_TAG)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ ++OBJDIR_NAME = obj + + ifeq (,$(filter-out WIN%,$(OS_TARGET))) + ifndef BUILD_OPT diff --git a/recipes/nss/nss_3.15.1.oe b/recipes/nss/nss_3.15.1.oe new file mode 100644 index 0000000..d9db1af --- /dev/null +++ b/recipes/nss/nss_3.15.1.oe @@ -0,0 +1,100 @@ +SUMMARY = "Network Security Services - provides cross platform security support" +DESCRIPTION = """ +Network Security Services (NSS) comprises a set of libraries designed to support +cross-platform development of security-enabled client and server applications +with optional support for hardware SSL acceleration on the server side and +hardware smart cards on the client side. +""" +LICENSE = "MPL" +HOMEPAGE = "https://developer.mozilla.org/en/docs/NSS" + +RECIPE_TYPE = "machine sdk" + +SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_15_1_RTM/src/${PN}-${PV}.tar.gz" + +SRC_URI += "http://www.linuxfromscratch.org/patches/blfs/svn/nss-3.15.1-standalone-2.patch;striplevel=2" + +SRC_URI += """ + file://cross-config.patch +""" + +inherit c make library pkgconfig auto-package-utils auto-package-libs + +# According to http://www.linuxfromscratch.org/blfs/view/svn/postlfs/nss.html +PARALLEL_MAKE = "" + +DEPENDS += "nspr nspr-dev libz libdl libpthread librt" + +S = "${SRCDIR}/${PN}-${PV}/${PN}" + +EXTRA_OEMAKE_COMPILE = " \ + BUILD_OPT=1 \ + NSPR_INCLUDE_DIR=${STAGE_DIR}/${includedir} \ + USE_SYSTEM_ZLIB=1 \ + ZLIB_LIBS=-lz \ +" + +do_install () { + install -d ${D}${bindir} + install -m 755 ${S}/../dist/obj/bin/* ${D}${bindir} + + install -d ${D}${libdir} + install -m 655 ${S}/../dist/obj/lib/*.a ${D}/${libdir} + + install -d ${D}${sharedlibdir} + cd ${S}/../dist/obj/lib + for solib in *.so + do + install -m 755 ${S}/../dist/obj/lib/$solib \ + ${D}/${sharedlibdir}/$solib + done + + install -d ${D}${includedir}/nss + install -m 755 ${S}/../dist/public/nss/* ${D}${includedir}/nss + + install -d ${D}${sharedlibdir}/pkgconfig + install -m 644 ${S}/../dist/obj/lib/pkgconfig/* \ + ${D}/${sharedlibdir}/pkgconfig +} + +#PACKAGES =+ " ${PN}-utils ${PN}-utils-dbg " +#PACKAGES =+ " ${PN}-certutil " +#ACKAGES =+ " ${PN}-nss-config " +#ACKAGES =+ " ${PN}-pk12util " + +# no *so.* files are created so use *.so +# Accomplish by switching SOLIBS and SOLIBSDEV +SOLIBSDEV = ".so.*" +SOLIBS = ".so" +#ILES_${PN}-utils = "${bindir}/*" +#ILES_${PN}-utils-dbg = "${bindir}/.debug/*" +#ILES_${PN}-certutil = "${bindir}/certutil" +#ILES_${PN}-nss-config = "${bindir}/nss-config" +#ILES_${PN}-pk12util = "${bindir}/pk12util" + +DEPENDLIBS = "nspr libz libdl libpthread librt" +#EPENDS_${PN} += " ${DEPENDLIBS} " +#DEPENDS_${PN} += " ${DEPENDLIBS} " +#DEPENDS_${PN}-utils += "${DEPENDLIBS} libnss" + +AUTO_PACKAGE_UTILS = "addbuiltin conflict listsuites oidcalc pp ssltap \ + atob crlutil lowhashtest p7content pwdecrypt strsclnt \ + baddbdir crmftest makepqg p7env remtest symkeyutil \ + bltest dbtest mangle p7sign rsaperf tstclnt \ + btoa derdump modutil p7verify sdrtest vfychain \ + certcgi dertimetest multinit pk11gcmtest secmodtest vfyserv \ + certutil digest nonspr10 pk11mode selfserv \ + checkcert encodeinttest nss-config pk12util shlibsign \ + chktest fipstest ocspclnt pk1sign signtool \ + cmsutil httpserv ocspresp pkix-errcodes signver \ +" + +AUTO_PACKAGE_UTILS_DEPENDS = "${DEPENDLIBS} libnss" + +AUTO_PACKAGE_LIBS = "freebl3 nss3 nssckbi nssdbm3 nsssysinit nssutil3 \ + smime3 softokn3 sqlite3 ssl3 \ +" + +PACKAGES += "${PN}-utils" +RDEPENDS_${PN}-utils = "${AUTO_PACKAGE_UTILS_PACKAGES}" + diff --git a/recipes/nss/nss_3.15.1.oe.sig b/recipes/nss/nss_3.15.1.oe.sig new file mode 100644 index 0000000..cc4dfb9 --- /dev/null +++ b/recipes/nss/nss_3.15.1.oe.sig @@ -0,0 +1,2 @@ +767a423db66948c55c04c2a31a9626b7a95040e9 nss-3.15.1-standalone-2.patch +1aa7c0ff8af7fb2c8b6e4886ae2291f4bfe0d5c0 nss-3.15.1.tar.gz