summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-07-25 20:07:05 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-08-11 22:47:23 -0700
commit0b68d1292d9b415b74abc63e909c44399ae9a97a (patch)
treea91ee133ce03975d56fd0778b747031bb804fc5d
parentabc7d401e2d411642a9cc2b1de96990da2d17c63 (diff)
downloadspack-0b68d1292d9b415b74abc63e909c44399ae9a97a.tar.gz
spack-0b68d1292d9b415b74abc63e909c44399ae9a97a.tar.bz2
spack-0b68d1292d9b415b74abc63e909c44399ae9a97a.tar.xz
spack-0b68d1292d9b415b74abc63e909c44399ae9a97a.zip
Add package for openssl, have postgres use it.
- Updated version wildcard to include [a-z]|alpha|beta to accommodate all the letter suffixes on openssl.
-rw-r--r--var/spack/packages/openssl/package.py26
-rw-r--r--var/spack/packages/postgresql/package.py8
2 files changed, 30 insertions, 4 deletions
diff --git a/var/spack/packages/openssl/package.py b/var/spack/packages/openssl/package.py
new file mode 100644
index 0000000000..c5a8aeb9dc
--- /dev/null
+++ b/var/spack/packages/openssl/package.py
@@ -0,0 +1,26 @@
+from spack import *
+
+class Openssl(Package):
+ """The OpenSSL Project is a collaborative effort to develop a
+ robust, commercial-grade, full-featured, and Open Source
+ toolkit implementing the Secure Sockets Layer (SSL v2/v3) and
+ Transport Layer Security (TLS v1) protocols as well as a
+ full-strength general purpose cryptography library."""
+ homepage = "http://www.openssl.org"
+ url = "http://www.openssl.org/source/openssl-1.0.1h.tar.gz"
+
+ version('1.0.1h', '8d6d684a9430d5cc98a62a5d8fbda8cf')
+
+ depends_on("zlib")
+ parallel = False
+
+ def install(self, spec, prefix):
+ config = Executable("./config")
+ config("--prefix=%s" % prefix,
+ "--openssldir=%s/etc/openssl" % prefix,
+ "zlib",
+ "no-krb5",
+ "shared")
+
+ make()
+ make("install")
diff --git a/var/spack/packages/postgresql/package.py b/var/spack/packages/postgresql/package.py
index bf14c3b922..a93f87df80 100644
--- a/var/spack/packages/postgresql/package.py
+++ b/var/spack/packages/postgresql/package.py
@@ -11,11 +11,11 @@ class Postgresql(Package):
version('9.3.4', 'd0a41f54c377b2d2fab4a003b0dac762')
- def install(self, spec, prefix):
- # FIXME: Modify the configure line to suit your build system here.
- configure("--prefix=%s" % prefix)
+ depends_on("openssl")
- # FIXME: Add logic to build and install here
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix,
+ "--with-openssl")
make()
make("install")