diff options
author | Jeffery To <jeffery.to@gmail.com> | 2023-10-27 21:09:53 +0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2023-10-30 13:25:58 -0700 |
commit | 80aeb31082823fbd9c84791d3dc35570a659cebe (patch) | |
tree | d2ba7268d0b221b512824e7bd07a97ebf3f91592 /libs/unixodbc | |
parent | 3ab793f09e73e654265a3a6a49bcebef85926690 (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/Makefile | 4 | ||||
-rw-r--r-- | libs/unixodbc/files/pgsqlodbc.ini | 3 |
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 |