Package for postgresql.
This commit is contained in:
parent
0bba101ff9
commit
0740c576a7
1 changed files with 24 additions and 0 deletions
24
var/spack/packages/postgresql/package.py
Normal file
24
var/spack/packages/postgresql/package.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue