summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-08-26 14:23:33 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-09-16 17:21:33 (GMT)
commite4f5b7240d12c203b48f177decc4593b542be826 (patch)
tree5851cf1280c890c984d8cf656c8f8e99a8140b11
parent781ceb9f07ec9ab24a4dbbd4390760f498c0aae7 (diff)
downloaddefinitions-e4f5b7240d12c203b48f177decc4593b542be826.tar.gz
Add network-security stratum morphology
This add nss and nspr to a stratum to be shared for different systems.
-rw-r--r--strata/network-security.morph19
-rw-r--r--strata/network-security/nspr.morph12
-rw-r--r--strata/network-security/nss.morph7
3 files changed, 38 insertions, 0 deletions
diff --git a/strata/network-security.morph b/strata/network-security.morph
new file mode 100644
index 0000000..3d0c781
--- /dev/null
+++ b/strata/network-security.morph
@@ -0,0 +1,19 @@
+name: network-security
+kind: stratum
+build-depends:
+- morph: strata/core.morph
+chunks:
+- name: nspr
+ morph: strata/network-security/nspr.morph
+ repo: upstream:nspr-hg
+ ref: a6ee84946475c1fb7624973af28163f6da247c0d
+ unpetrify-ref: baserock/morph
+ build-depends: []
+- name: nss
+ morph: strata/network-security/nss.morph
+ repo: upstream:nss
+ ref: ee1c99a3c8c29f50a91ab28f2f7b7773f6355487
+ unpetrify-ref: baserock/morph
+ build-depends:
+ - nspr
+
diff --git a/strata/network-security/nspr.morph b/strata/network-security/nspr.morph
new file mode 100644
index 0000000..27613eb
--- /dev/null
+++ b/strata/network-security/nspr.morph
@@ -0,0 +1,12 @@
+name: nspr
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ case "$MORPH_ARCH" in
+ x86_64|ppc64)
+ EXTRA_ARGS="--enable-64bit";;
+ *)
+ EXTRA_ARGS="";;
+ esac
+ ./configure --prefix="$PREFIX" --with-mozilla --with-pthreads $EXTRA_ARGS
diff --git a/strata/network-security/nss.morph b/strata/network-security/nss.morph
new file mode 100644
index 0000000..c83fd17
--- /dev/null
+++ b/strata/network-security/nss.morph
@@ -0,0 +1,7 @@
+name: nss
+kind: chunk
+max-jobs: 1
+build-system: autotools
+configure-commands:
+- NOCONFIGURE=1 ./autogen.sh
+- ./configure --prefix="$PREFIX" --libdir="$PREFIX/lib"