summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-07-10 15:54:10 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-08-11 22:47:23 -0700
commit0740c576a714281b0449e33f1b8e4b00e5d9d9c0 (patch)
treef6cc8370fe1a3a6283fc76590ef069e71272fe24
parent0bba101ff90f317c81385306c8beaaacbaa62759 (diff)
downloadspack-0740c576a714281b0449e33f1b8e4b00e5d9d9c0.tar.gz
spack-0740c576a714281b0449e33f1b8e4b00e5d9d9c0.tar.bz2
spack-0740c576a714281b0449e33f1b8e4b00e5d9d9c0.tar.xz
spack-0740c576a714281b0449e33f1b8e4b00e5d9d9c0.zip
Package for postgresql.
-rw-r--r--var/spack/packages/postgresql/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/packages/postgresql/package.py b/var/spack/packages/postgresql/package.py
new file mode 100644
index 0000000000..bf14c3b922
--- /dev/null
+++ b/var/spack/packages/postgresql/package.py
@@ -0,0 +1,24 @@
+from spack import *
+
+class Postgresql(Package):
+ """PostgreSQL is a powerful, open source object-relational
+ database system. It has more than 15 years of active
+ development and a proven architecture that has earned it a
+ strong reputation for reliability, data integrity, and
+ correctness."""
+ homepage = "http://www.postgresql.org/"
+ url = "http://ftp.postgresql.org/pub/source/v9.3.4/postgresql-9.3.4.tar.bz2"
+
+ 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)
+
+ # FIXME: Add logic to build and install here
+ make()
+ make("install")
+
+
+ def dotkit(self, dk):
+ dk.setenv('PGDATA', "%s/data" %self.prefix)