databases/postgresql-idn New port

At a fundamental level, this extension grants access to a number of
functions provided by the libidn and libidn2 libraries. Not all of the
functions provided by these libraries are exposed.

Whenever possible, the code will transform the encoding of the data in
the database to UTF-8 before further processing.

WWW: https://github.com/dyninc/postgresql-idn

Sponsored by:	Bounce Commerce
This commit is contained in:
Muhammad Moinur Rahman 2023-07-20 13:48:17 +02:00
parent 40154a4aa7
commit 432d465db1
4 changed files with 51 additions and 0 deletions

View File

@ -652,6 +652,7 @@
SUBDIR += postgis32
SUBDIR += postgis33
SUBDIR += postgresql-cstore_fdw
SUBDIR += postgresql-idn
SUBDIR += postgresql-jdbc
SUBDIR += postgresql-libpgeasy
SUBDIR += postgresql-libpqxx

View File

@ -0,0 +1,41 @@
PORTNAME= idn
PORTVERSION= 0.2
CATEGORIES= databases
PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}-
MAINTAINER= bofh@FreeBSD.org
COMMENT= PostgreSQL extension for libidn2
WWW= https://github.com/dyninc/postgresql-idn
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libidn.so:dns/libidn \
libidn2.so:dns/libidn2
USES= gmake pgsql
WANT_PGSQL= server
USE_GITHUB= yes
GH_ACCOUNT= dyninc
GH_PROJECT= postgresql-idn
GH_TAGNAME= d4ffaec
BUILD_WRKSRC= ${WRKSRC}/sources
PLIST_FILES= \
lib/postgresql/idn.so \
share/postgresql/extension/idn.control \
share/postgresql/extension/idn--0.2.sql
post-patch:
@${REINPLACE_CMD} -e 's|CreateTemplateTupleDesc(3, false)|CreateTemplateTupleDesc(3)|g' \
${BUILD_WRKSRC}/idn.c
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql
${MKDIR} ${STAGEDIR}${PREFIX}/share/postgresql/extension
${INSTALL_LIB} ${BUILD_WRKSRC}/idn.so ${STAGEDIR}${PREFIX}/lib/postgresql/idn.so
${INSTALL_DATA} ${BUILD_WRKSRC}/idn--0.2.sql ${STAGEDIR}${PREFIX}/share/postgresql/extension
${INSTALL_DATA} ${BUILD_WRKSRC}/idn.control ${STAGEDIR}${PREFIX}/share/postgresql/extension
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1689853106
SHA256 (dyninc-postgresql-idn-0.2-d4ffaec_GH0.tar.gz) = 77648e741c96ae186dcd4ce835cada228877864e390e1854c5099277337a0b06
SIZE (dyninc-postgresql-idn-0.2-d4ffaec_GH0.tar.gz) = 14784

View File

@ -0,0 +1,6 @@
At a fundamental level, this extension grants access to a number of
functions provided by the libidn and libidn2 libraries. Not all of the
functions provided by these libraries are exposed.
Whenever possible, the code will transform the encoding of the data in
the database to UTF-8 before further processing.