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.
This commit is contained in:
parent
abc7d401e2
commit
0b68d1292d
2 changed files with 30 additions and 4 deletions
26
var/spack/packages/openssl/package.py
Normal file
26
var/spack/packages/openssl/package.py
Normal file
|
@ -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")
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue