Skip to content

Commit

Permalink
added uuid-ossp and updated postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkuepper committed Jan 15, 2015
1 parent 135b13f commit 6e4cdab
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/autoparts/packages/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ module Autoparts
module Packages
class PostgreSQL < Package
name 'postgresql'
version '9.2.4'
version '9.3.5'
description "PostgreSQL: The world's most advanced open-source database system"
category Category::DATA_STORES

source_url 'http://ftp.postgresql.org/pub/source/v9.2.4/postgresql-9.2.4.tar.gz'
source_sha1 'bb248bd2043caf47f2b43c874bf11d775f99e991'
source_url 'https://ftp.postgresql.org/pub/source/v9.3.5/postgresql-9.3.5.tar.gz'
source_sha1 'f5a888aaba98d637fa6cdf009aebcda10d53d038'
source_filetype 'tar.gz'

depends_on 'uuid'

def compile
Dir.chdir('postgresql-9.2.4') do
Dir.chdir(name_with_version) do
args = [
'--disable-debug',
"--prefix=#{prefix_path}",
Expand All @@ -31,7 +33,8 @@ def compile
'--with-krb5',
'--with-libxml',
'--with-libxslt',
'--with-openssl'
'--with-openssl',
'--with-ossp-uuid',
]

execute './configure', *args
Expand All @@ -40,7 +43,7 @@ def compile
end

def install
Dir.chdir('postgresql-9.2.4') do
Dir.chdir(name_with_version) do
execute 'make install-world'
end
end
Expand Down Expand Up @@ -117,4 +120,4 @@ def tips
end
end
end
end
end
38 changes: 38 additions & 0 deletions lib/autoparts/packages/uuid.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module Autoparts
module Packages
class Uuid < Package
name 'uuid'
version '1.6.2'
description 'OSSP uuid: a ISO-C:1999 application programming interface (API) and corresponding command line interface (CLI) for the generation of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally.'
category Category::LIBRARIES

source_url 'ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
source_sha1 '3e22126f0842073f4ea6a50b1f59dcb9d094719f'
source_filetype 'tar.gz'

def compile
Dir.chdir(name_with_version) do
args = [
"--prefix=#{prefix_path}",
"--bindir=#{bin_path}",
"--sbindir=#{bin_path}",
"--sysconfdir=#{Path.etc}",
"--libdir=#{lib_path}",
"--includedir=#{include_path}",
"--datadir=#{share_path}/#{name}",
"--mandir=#{man_path}",
]

execute './configure', *args
execute 'make'
end
end

def install
Dir.chdir(name_with_version) do
execute 'make install'
end
end
end
end
end

0 comments on commit 6e4cdab

Please sign in to comment.