diff --git a/databases/pgagroal/Makefile b/databases/pgagroal/Makefile index 0821dd07c7c6..3fc8d96248bf 100644 --- a/databases/pgagroal/Makefile +++ b/databases/pgagroal/Makefile @@ -1,50 +1,46 @@ PORTNAME= pgagroal -PORTVERSION= 1.4.2 +DISTVERSION= 1.5.0 CATEGORIES= databases -MASTER_SITES= https://github.com/agroal/${PORTNAME}/releases/download/${PORTVERSION}/ +MASTER_SITES= https://github.com/agroal/${PORTNAME}/releases/download/${DISTVERSION}/ MAINTAINER= bofh@FreeBSD.org COMMENT= High-performance protocol-native connection pool for PostgreSQL WWW= https://agroal.github.io/pgagroal/ LICENSE= BSD3CLAUSE BUILD_DEPENDS= rst2man:textproc/py-docutils LIB_DEPENDS= libev.so:devel/libev USES= cmake pathfix ssl USE_LDCONFIG= yes USE_RC_SUBR= pgagroal SUB_LIST= PGAGROAL_RUNDIR="${PGAGROAL_RUNDIR}" USERS= pgagroal GROUPS= pgagroal PLIST_SUB+= PGAGROAL_GROUP="${GROUPS}" \ PGAGROAL_LOGDIR="${PGAGROAL_LOGDIR}" \ PGAGROAL_RUNDIR="${PGAGROAL_RUNDIR}" \ - PGAGROAL_USER="${USERS}" + PGAGROAL_USER="${USERS}" \ + PORTVERSION="${DISTVERSION}" PGAGROAL_GROUP?= pgagroal PGAGROAL_USER?= pgagroal PGAGROAL_RUNDIR?= /var/run/pgagroal PGAGROAL_LOGDIR?= /var/log/pgagroal post-patch: @${MV} ${WRKSRC}/doc/etc/pgagroal.conf \ ${WRKSRC}/doc/etc/pgagroal.conf.sample @${MV} ${WRKSRC}/doc/etc/pgagroal_hba.conf \ ${WRKSRC}/doc/etc/pgagroal_hba.conf.sample - @${REINPLACE_CMD} 's|etc/pgagroal.conf|etc/pgagroal.conf.sample|g; \ - s|etc/pgagroal_hba.conf|etc/pgagroal_hba.conf.sample|g' \ - ${WRKSRC}/doc/CMakeLists.txt - @${REINPLACE_CMD} 's|pgagraol.%d.pid|pgagroal.pid|g' \ - ${WRKSRC}/src/libpgagroal/configuration.c post-install: @${MKDIR} ${STAGEDIR}${PGAGROAL_RUNDIR} \ ${STAGEDIR}${PGAGROAL_LOGDIR} .include diff --git a/databases/pgagroal/distinfo b/databases/pgagroal/distinfo index 6bf13a32b3b2..81103be2b6d6 100644 --- a/databases/pgagroal/distinfo +++ b/databases/pgagroal/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1656274963 -SHA256 (pgagroal-1.4.2.tar.gz) = 6feb76e59eb4163de423025a6a1fbe34a48fe6880741107ca1f73c617af4da31 -SIZE (pgagroal-1.4.2.tar.gz) = 256332 +TIMESTAMP = 1742473697 +SHA256 (pgagroal-1.5.0.tar.gz) = c90ca334de0892e18efc17bae751389b9deb3b97fe415fce6a62b6c8a1301b55 +SIZE (pgagroal-1.5.0.tar.gz) = 282134 diff --git a/databases/pgagroal/files/patch-doc_CMakeLists.txt b/databases/pgagroal/files/patch-doc_CMakeLists.txt new file mode 100644 index 000000000000..c032b626a434 --- /dev/null +++ b/databases/pgagroal/files/patch-doc_CMakeLists.txt @@ -0,0 +1,13 @@ +--- doc/CMakeLists.txt.orig 2025-03-20 12:40:33 UTC ++++ doc/CMakeLists.txt +@@ -66,8 +66,8 @@ add_custom_command( + # + # Install configuration and documentation + # +-install(FILES etc/pgagroal.conf DESTINATION share/doc/pgagroal/etc) +-install(FILES etc/pgagroal_hba.conf DESTINATION share/doc/pgagroal/etc) ++install(FILES etc/pgagroal.conf.sample DESTINATION etc/pgagroal) ++install(FILES etc/pgagroal_hba.conf.sample DESTINATION etc/pgagroal) + + install(DIRECTORY . DESTINATION share/doc/pgagroal FILES_MATCHING PATTERN "*.md" PATTERN "etc" EXCLUDE PATTERN "images" EXCLUDE PATTERN "man" EXCLUDE) + install(DIRECTORY images/ DESTINATION share/doc/pgagroal/images FILES_MATCHING PATTERN "*.png") diff --git a/databases/pgagroal/pkg-plist b/databases/pgagroal/pkg-plist index ce32ef26fe91..1861fc21297b 100644 --- a/databases/pgagroal/pkg-plist +++ b/databases/pgagroal/pkg-plist @@ -1,16 +1,16 @@ bin/pgagroal bin/pgagroal-admin bin/pgagroal-cli @sample %%ETCDIR%%/pgagroal.conf.sample @sample %%ETCDIR%%/pgagroal_hba.conf.sample lib/libpgagroal.so lib/libpgagroal.so.1 -lib/libpgagroal.so.1.4.2 +lib/libpgagroal.so.%%PORTVERSION%% share/man/man1/pgagroal-admin.1.gz share/man/man1/pgagroal-cli.1.gz share/man/man1/pgagroal.1.gz share/man/man5/pgagroal.conf.5.gz share/man/man5/pgagroal_databases.conf.5.gz share/man/man5/pgagroal_hba.conf.5.gz @dir(%%PGAGROAL_USER%%,%%PGAGROAL_GROUP%%,) %%PGAGROAL_LOGDIR%% @dir(%%PGAGROAL_USER%%,%%PGAGROAL_GROUP%%,) %%PGAGROAL_RUNDIR%%