Skip to content

Commit

Permalink
Update postgresql to 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcondit committed Dec 30, 2017
1 parent 9bbccdf commit 45336a1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
26 changes: 13 additions & 13 deletions postgresql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ RUN \
opkg install gcc make file pkg-config libc-devel libz-devel \
libssl-devel libxml2-devel perl python27 python27-devel libreadline-devel && \
opkg clean && \
wget -O /download/postgresql-9.6.2.tar.bz2 \
http://ftp.postgresql.org/pub/source/v9.6.2/postgresql-9.6.2.tar.bz2 && \
wget -O /download/postgresql-10.1.tar.bz2 \
http://ftp.postgresql.org/pub/source/v10.1/postgresql-10.1.tar.bz2 && \
cd /build && \
tar xf /download/postgresql-9.6.2.tar.bz2 && \
cd postgresql-9.6.2 && \
tar xf /download/postgresql-10.1.tar.bz2 && \
cd postgresql-10.1 && \
./configure \
--prefix=/usr --enable-thread-safety \
--docdir=/usr/share/doc/postgresql-9.6.2 \
--docdir=/usr/share/doc/postgresql-10.1 \
--build=$(gcc -dumpmachine) \
--with-perl --with-python --with-openssl --with-libxml && \
MAKE="make -j4" make && \
Expand All @@ -32,18 +32,18 @@ RUN \
rm -rf usr/include usr/lib/pkgconfig usr/lib/postgresql/pgxs && \
rm -f usr/lib/libecpg*.so* usr/lib/libecpg_compat.so* usr/lib/libpgtypes.so* usr/lib/libpq.so* && \
for cmd in \
initdb pg_controldata pg_ctl pg_resetxlog postgres postmaster \
initdb pg_controldata pg_ctl postgres postmaster \
; do mv -f usr/bin/${cmd} usr/ ; done && \
rm -rf usr/bin && \
mkdir -p usr/bin && \
for cmd in \
initdb pg_controldata pg_ctl pg_resetxlog postgres postmaster \
initdb pg_controldata pg_ctl postgres postmaster \
; do mv -f usr/${cmd} usr/bin/ ; done && \
make-deb \
/build/postgresql-server-deb \
/build/postgresql-server-root \
/control/postgresql-server \
/packages/postgresql-server_9.6.2-1_amd64.deb && \
/packages/postgresql-server_10.1-1_amd64.deb && \

cp -a /build/postgresql-orig-root /build/postgresql-client-root && \
cd /build/postgresql-client-root && \
Expand All @@ -55,7 +55,7 @@ RUN \
/build/postgresql-client-deb \
/build/postgresql-client-root \
/control/postgresql-client \
/packages/postgresql-client_9.6.2-1_amd64.deb && \
/packages/postgresql-client_10.1-1_amd64.deb && \

cp -a /build/postgresql-orig-root /build/libpq-root && \
cd /build/libpq-root && \
Expand All @@ -66,7 +66,7 @@ RUN \
/build/libpq-deb \
/build/libpq-root \
/control/libpq \
/packages/libpq_9.6.2-1_amd64.deb && \
/packages/libpq_10.1-1_amd64.deb && \

cp -a /build/postgresql-orig-root /build/libpgtypes-root && \
cd /build/libpgtypes-root && \
Expand All @@ -77,7 +77,7 @@ RUN \
/build/libpgtypes-deb \
/build/libpgtypes-root \
/control/libpgtypes \
/packages/libpgtypes_9.6.2-1_amd64.deb && \
/packages/libpgtypes_10.1-1_amd64.deb && \

cp -a /build/postgresql-orig-root /build/libecpg-root && \
cd /build/libecpg-root && \
Expand All @@ -88,7 +88,7 @@ RUN \
/build/libecpg-deb \
/build/libecpg-root \
/control/libecpg \
/packages/libecpg_9.6.2-1_amd64.deb && \
/packages/libecpg_10.1-1_amd64.deb && \

cp -a /build/postgresql-orig-root /build/postgresql-devel-root && \
cd /build/postgresql-devel-root && \
Expand All @@ -103,5 +103,5 @@ RUN \
/build/postgresql-devel-deb \
/build/postgresql-devel-root \
/control/postgresql-devel \
/packages/postgresql-devel_9.6.2-1_amd64.deb
/packages/postgresql-devel_10.1-1_amd64.deb

4 changes: 2 additions & 2 deletions postgresql/control/libecpg/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: libecpg
Version: 9.6.2-1
Version: 10.1-1
Source: postgresql
Priority: optional
Depends: libc, libpq (>= 9.6.2-1), libpgtypes (>= 9.6.2-1)
Depends: libc, libpq (>= 10.1-1), libpgtypes (>= 10.1-1)
Maintainer: Craig Condit <[email protected]>
Description: object-relational SQL database (libecpg library)
Architecture: amd64
Expand Down
2 changes: 1 addition & 1 deletion postgresql/control/libpgtypes/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: libpgtypes
Version: 9.6.2-1
Version: 10.1-1
Source: postgresql
Priority: optional
Depends: libc
Expand Down
2 changes: 1 addition & 1 deletion postgresql/control/libpq/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: libpq
Version: 9.6.2-1
Version: 10.1-1
Source: postgresql
Priority: optional
Depends: libc, libssl
Expand Down
4 changes: 2 additions & 2 deletions postgresql/control/postgresql-client/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: postgresql-client
Version: 9.6.2-1
Version: 10.1-1
Source: postgresql
Priority: optional
Depends: libpq (>= 9.6.2-1), libpgtypes (>= 9.6.2-1), libecpg (>= 9.6.2-1), libc, libssl, libreadline, libncurses
Depends: libpq (>= 10.1-1), libpgtypes (>= 10.1-1), libecpg (>= 10.1-1), libc, libssl, libreadline, libncurses
Maintainer: Craig Condit <[email protected]>
Description: object-relational SQL database (client utilities)
Architecture: amd64
Expand Down
4 changes: 2 additions & 2 deletions postgresql/control/postgresql-devel/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: postgresql-devel
Version: 9.6.2-1
Version: 10.1-1
Source: postgresql
Priority: optional
Depends: libc-devel, libssl-devel, libxml2-devel, libreadline-devel, libncurses-devel, postgresql-client (>= 9.6.2-1), libpq (>= 9.6.2-1), libpgtypes (>= 9.6.2-1), libecpg (>= 9.6.2-1)
Depends: libc-devel, libssl-devel, libxml2-devel, libreadline-devel, libncurses-devel, postgresql-client (>= 10.1-1), libpq (>= 10.1-1), libpgtypes (>= 10.1-1), libecpg (>= 10.1-1)
Recommends: perl, python27-devel
Maintainer: Craig Condit <[email protected]>
Description: object-relational SQL database (development files)
Expand Down
4 changes: 2 additions & 2 deletions postgresql/control/postgresql-server/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: postgresql-server
Version: 9.6.2-1
Version: 10.1-1
Source: postgresql
Priority: optional
Depends: postgresql-client (>= 9.6.2-1), libpq (>= 9.6.2-1), libpgtypes (>= 9.6.2-1), libecpg (>= 9.6.2-1), libxml2
Depends: postgresql-client (>= 10.1-1), libpq (>= 10.1-1), libpgtypes (>= 10.1-1), libecpg (>= 10.1-1), libxml2
Suggests: perl, python27
Maintainer: Craig Condit <[email protected]>
Description: object-relational SQL database
Expand Down

0 comments on commit 45336a1

Please sign in to comment.