Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5936671

Browse files
committed
GSS api support for windows
Assumes that Postgres is patched to work with 64-bit kerberosand MIT Kerberos 4.1 for Windows installed from .msi installer
1 parent64b5ae5 commit5936671

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

‎build/helpers/dependencies.cmd

100755100644
File mode changed.

‎build/helpers/postgres.cmd

100755100644
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ IF EXIST %DOWNLOADS_DIR%\%DEPS_ZIP% (
1414
:BUILD_POSTGRESQL
1515
TITLE Building PostgreSQL...
1616
CD /D%DOWNLOADS_DIR%
17-
wget --no-check-certificate%PGURL% -O postgresql-%PGVER%.tar.bz2||GOTO :ERROR
17+
remwget --no-check-certificate %PGURL% -O postgresql-%PGVER%.tar.bz2|| GOTO :ERROR
1818
rm -rf%BUILD_DIR%\postgresql
1919
MKDIR%BUILD_DIR%\postgresql
2020
tar xf postgres*-%PGVER%.tar.bz2 -C%BUILD_UDIR%/postgresql||GOTO :ERROR
@@ -72,6 +72,7 @@ IF %ARCH% == X86 (>>src\tools\msvc\config.pl ECHO python ^=^> '%PYTHON32_PATH%'
7272
if"%PRODUCT_NAME%"=="PostgresProEnterprise">>src\tools\msvc\config.plECHO zstd^=^> '%DEPENDENCIES_BIN_DIR%\zstd',
7373
>>src\tools\msvc\config.plECHO icu^=^> '%DEPENDENCIES_BIN_DIR%\icu',
7474
>>src\tools\msvc\config.plECHO libedit^=^> '%DEPENDENCIES_BIN_DIR%\wineditline'
75+
>>src\tools\msvc\config.plECHO gss^=^> 'C:\Program Files\MIT\Kerberos',
7576
>>src\tools\msvc\config.plECHO^};
7677
>>src\tools\msvc\config.plECHO 1^;
7778

@@ -130,6 +131,11 @@ cp -va %DEPENDENCIES_BIN_DIR%/libxslt/lib/*.dll %BUILD_DIR%\distr_%ARCH%_%PGV
130131
cp -va%DEPENDENCIES_BIN_DIR%/openssl/lib/VC/*.dll%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin||GOTO :ERROR
131132
cp -va%DEPENDENCIES_BIN_DIR%/openssl/lib/VC/openssl.exe%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin||GOTO :ERROR
132133
cp -va%DEPENDENCIES_BIN_DIR%/zlib/lib/*.dll%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin||GOTO :ERROR
134+
if%ARCH%== X64 (
135+
copy"%PROGRAMFILES%\MIT\Kerberos\bin\*64.dll"%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin
136+
)else (
137+
copy"%PROGRAMFILES%\MIT\Kerberos\bin\*32.dll"%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin
138+
)
133139
if"%PRODUCT_NAME%"=="PostgresProEnterprise" cp -va%DEPENDENCIES_BIN_DIR%/zstd/*.dll%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin||GOTO :ERROR
134140
cp -va%DEPENDENCIES_BIN_DIR%/icu/bin/*.dll%BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin||GOTO :ERROR
135141
REM Copy needed executables

‎build/helpers/postgres_installer.cmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ REM Download VC Redistibutable packages
1212
TITLE Downloading VC Redistibutable packages
1313
MKDIR"%BUILD_DIR%\vcredist"
1414
IF%REDIST_YEAR%==2010 (
15-
wget -c https://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe -O"%BUILD_DIR%\vcredist\vcredist_x86_2010.exe"||GOTO :ERROR
16-
wget -c https://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe -O"%BUILD_DIR%\vcredist\vcredist_x64_2010.exe"||GOTO :ERROR
15+
wget -c--no-check-certificatehttps://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe -O"%BUILD_DIR%\vcredist\vcredist_x86_2010.exe"||GOTO :ERROR
16+
wget -c--no-check-certificatehttps://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe -O"%BUILD_DIR%\vcredist\vcredist_x64_2010.exe"||GOTO :ERROR
1717
)
1818

1919
IF%REDIST_YEAR%==2013 (
20-
wget -c https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe -O"%BUILD_DIR%\vcredist\vcredist_x86_2013.exe"||GOTO :ERROR
21-
wget -c https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe -O"%BUILD_DIR%\vcredist\vcredist_x64_2013.exe"||GOTO :ERROR
20+
wget -c--no-check-certificatehttps://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe -O"%BUILD_DIR%\vcredist\vcredist_x86_2013.exe"||GOTO :ERROR
21+
wget -c--no-check-certificatehttps://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe -O"%BUILD_DIR%\vcredist\vcredist_x64_2013.exe"||GOTO :ERROR
2222
)
2323

2424
IF%REDIST_YEAR%==2015 (

‎build/run.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,22 @@ IF "%~1"=="12" (
8383
TITLE Building PostgresPro
8484
IF"%SDK%"==""SETSDK=SDK71
8585
IF"%PRODUCT_NAME%"==""SETPRODUCT_NAME=PostgresPro
86-
IF"%PG_PATCH_VERSION%"==""SETPG_PATCH_VERSION=1.1
86+
IF"%PG_PATCH_VERSION%"==""SETPG_PATCH_VERSION=5.3
8787
CMD.EXE /C%ROOT%\build\helpers\postgres.cmd||GOTO :ERROR
8888
)
8989

9090
IF"%~1"=="3" (
9191
TITLE Building PostgreSQL installer
9292
IF"%SDK%"==""SETSDK=SDK71
93-
IF"%PG_PATCH_VERSION%"==""SETPG_PATCH_VERSION=1
93+
IF"%PG_PATCH_VERSION%"==""SETPG_PATCH_VERSION=5
9494
CMD.EXE /C%ROOT%\build\helpers\postgres_installer.cmd||GOTO :ERROR
9595
)
9696

9797
IF"%~1"=="13" (
9898
TITLE Building PostgresPro installer
9999
IF"%SDK%"==""SETSDK=SDK71
100100
IF"%PRODUCT_NAME%"==""SETPRODUCT_NAME=PostgresPro
101-
IF"%PG_PATCH_VERSION%"==""SETPG_PATCH_VERSION=1.3
101+
IF"%PG_PATCH_VERSION%"==""SETPG_PATCH_VERSION=5.3
102102
CMD.EXE /C%ROOT%\build\helpers\postgres_installer.cmd||GOTO :ERROR
103103
)
104104

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp