-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
################################################################################ | ||
|
||
template="postgresql-odbc.template" | ||
|
||
################################################################################ | ||
|
||
main() { | ||
local pg | ||
|
||
for pg in 10 11 12 13 14 15 16 ; do | ||
generate "$pg" | ||
done | ||
} | ||
|
||
generate() { | ||
local pg="$1" | ||
local output | ||
|
||
output="postgresql${pg}-odbc.recipe" | ||
|
||
cat "$template" > "$output" | ||
sed -i "s/%PG_VERSION%/$pg/g" "$output" | ||
|
||
echo "✔ $output (PostgreSQL $pg)" | ||
} | ||
|
||
################################################################################ | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Bibop recipe for ODBC driver for PostgreSQL %PG_VERSION% | ||
# See more: https://kaos.sh/bibop | ||
|
||
pkg postgresql%PG_VERSION%-odbc | ||
|
||
fast-finish yes | ||
|
||
var pg_ver %PG_VERSION% | ||
var pg_dir /usr/pgsql-{pg_ver} | ||
var pg_lib {pg_dir}/lib | ||
|
||
command "-" "Check shared libraries" | ||
exist {pg_lib}/psqlodbc.so | ||
exist {pg_lib}/psqlodbca.so | ||
exist {pg_lib}/psqlodbcw.so | ||
|
||
mode {pg_lib}/psqlodbca.so 755 | ||
mode {pg_lib}/psqlodbcw.so 755 | ||
|
||
link {LIBDIR}/psqlodbc.so {pg_lib}/psqlodbcw.so | ||
link {LIBDIR}/psqlodbca.so {pg_lib}/psqlodbca.so | ||
link {LIBDIR}/psqlodbcw.so {pg_lib}/psqlodbcw.so | ||
|
||
lib-linked {pg_lib}/psqlodbca.so libpq.so.* | ||
lib-linked {pg_lib}/psqlodbca.so libodbcinst.so.* | ||
lib-linked {pg_lib}/psqlodbcw.so libpq.so.* | ||
lib-linked {pg_lib}/psqlodbcw.so libodbcinst.so.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Bibop recipe for ODBC driver for PostgreSQL 16 | ||
# See more: https://kaos.sh/bibop | ||
|
||
pkg postgresql16-odbc | ||
|
||
fast-finish yes | ||
|
||
var pg_ver 16 | ||
var pg_dir /usr/pgsql-{pg_ver} | ||
var pg_lib {pg_dir}/lib | ||
|
||
command "-" "Check shared libraries" | ||
exist {pg_lib}/psqlodbc.so | ||
exist {pg_lib}/psqlodbca.so | ||
exist {pg_lib}/psqlodbcw.so | ||
|
||
mode {pg_lib}/psqlodbca.so 755 | ||
mode {pg_lib}/psqlodbcw.so 755 | ||
|
||
link {LIBDIR}/psqlodbc.so {pg_lib}/psqlodbcw.so | ||
link {LIBDIR}/psqlodbca.so {pg_lib}/psqlodbca.so | ||
link {LIBDIR}/psqlodbcw.so {pg_lib}/psqlodbcw.so | ||
|
||
lib-linked {pg_lib}/psqlodbca.so libpq.so.* | ||
lib-linked {pg_lib}/psqlodbca.so libodbcinst.so.* | ||
lib-linked {pg_lib}/psqlodbcw.so libpq.so.* | ||
lib-linked {pg_lib}/psqlodbcw.so libodbcinst.so.* |