aboutsummaryrefslogtreecommitdiff
path: root/libs/unixodbc
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-10-27 21:09:53 +0800
committerRosen Penev <rosenp@gmail.com>2023-10-30 13:25:58 -0700
commit80aeb31082823fbd9c84791d3dc35570a659cebe (patch)
treed2ba7268d0b221b512824e7bd07a97ebf3f91592 /libs/unixodbc
parent3ab793f09e73e654265a3a6a49bcebef85926690 (diff)
unixodbc: Copy pgsqlodbc.ini instead of creating it dynamically
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'libs/unixodbc')
-rw-r--r--libs/unixodbc/Makefile4
-rw-r--r--libs/unixodbc/files/pgsqlodbc.ini3
2 files changed, 4 insertions, 3 deletions
diff --git a/libs/unixodbc/Makefile b/libs/unixodbc/Makefile
index 4dc5b553b..52ff9959b 100644
--- a/libs/unixodbc/Makefile
+++ b/libs/unixodbc/Makefile
@@ -115,9 +115,7 @@ define Package/pgsqlodbc/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libodbcpsql*so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/etc/odbcinst.ini.d/
- echo "[PostgreSQL]" > $(1)/etc/odbcinst.ini.d/pgsqlodbc.ini
- echo "Description = unixODBC PostgreSQL driver" >> $(1)/etc/odbcinst.ini.d/pgsqlodbc.ini
- echo "Driver = /usr/lib/libodbcpsql.so" >> $(1)/etc/odbcinst.ini.d/pgsqlodbc.ini
+ $(INSTALL_DATA) ./files/pgsqlodbc.ini $(1)/etc/odbcinst.ini.d/
endef
define Host/Configure
diff --git a/libs/unixodbc/files/pgsqlodbc.ini b/libs/unixodbc/files/pgsqlodbc.ini
new file mode 100644
index 000000000..54a64bcfa
--- /dev/null
+++ b/libs/unixodbc/files/pgsqlodbc.ini
@@ -0,0 +1,3 @@
+[PostgreSQL]
+Description = unixODBC PostgreSQL driver
+Driver = /usr/lib/libodbcpsql.so