Re: git: ea1086f14d69 - main - security/libpki: new location for sample files

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 18 Jul 2022 09:31:28 UTC
Moin!

On 18.07.2022 11:22, Nuno Teixeira wrote:
> The branch main has been updated by eduardo:
>
> URL:https://cgit.FreeBSD.org/ports/commit/?id=ea1086f14d694235d0dd6df321edc270097793a3
>
> commit ea1086f14d694235d0dd6df321edc270097793a3
> Author:     Bruno Damour<bruno@ruomad.net>
> AuthorDate: 2022-07-18 08:18:39 +0000
> Commit:     Nuno Teixeira<eduardo@FreeBSD.org>
> CommitDate: 2022-07-18 08:22:14 +0000
>
>      security/libpki: new location for sample files
>      
>       - not install any configuration files AT ALL
>       - put all provided samples in ${PREFIX}/share/libpki/etc
>       - add a message to the user to refer to these samples
>       - mark the port as BROKEN on arm64 (according to pullout message received)
>       - add options to allow configure to enable DNS, LDAP, MySQL and
>         PostgreSQL if asked for
>       - bump PORTREVISION
>      
>      PR:             265189
> ---
>   security/libpki/Makefile    | 40 +++++++++++++++++++++++++++++++--------
>   security/libpki/pkg-message | 17 +++++++++++++++++
>   security/libpki/pkg-plist   | 46 ++++++++++++++++++++++++---------------------
>   3 files changed, 74 insertions(+), 29 deletions(-)
>
> diff --git a/security/libpki/Makefile b/security/libpki/Makefile
> index 2583811f7040..17e62c596635 100644
> --- a/security/libpki/Makefile
> +++ b/security/libpki/Makefile
> @@ -1,6 +1,7 @@
>   PORTNAME=	libpki
>   DISTVERSIONPREFIX=	v
>   DISTVERSION=	0.9.2
> +PORTREVISION=	1
>   CATEGORIES=	security
>   
>   PATCH_SITES=	https://github.com/openca/libpki/commit/
> @@ -12,6 +13,8 @@ COMMENT=	OpenCA PKI library (libpki) and tools
>   LICENSE=	APACHE20
>   LICENSE_FILE=	${WRKSRC}/COPYING
>   
> +NOT_FOR_ARCHS=	arm64
> +
>   USES=		autoreconf gnome libtool ssl
>   USE_GITHUB=	yes
>   GH_ACCOUNT=	openca
> @@ -20,17 +23,38 @@ USE_LDCONFIG=	yes
>   
>   GNU_CONFIGURE=	yes
>   CONFIGURE_ARGS=	--disable-dependency-tracking \
> -		--disable-dns \
> -		--disable-iphone \
> -		--disable-ldap \
> -		--disable-mysql \
> -		--disable-pg
> +		--disable-iphone
> +
>   INSTALL_TARGET=	install-strip
>   
> +OPTIONS_DEFINE=	DNS LDAP MYSQL PGSQL
> +
> +DNS_DESC=	"Enable DNS support"
> +LDAP_DESC=	"Enable LDAP support"
> +MYSQL_DESC=	"Enable MySQL support"
> +PGSQL_DESC=	"Enable PostgreSQL support"
> +
> +DNS_CONFIGURE_ENABLE=	dns
> +LDAP_LIB_DEPENDS=	liblber.so:net/openldap24-client \
> +			libldap_r.so:net/openldap24-client


Is it correct? OpenLDAP 2.6 is default now and should be handled as

LDAP_USE= openldap=yes

> +LDAP_CONFIGURE_ENABLE=	ldap
> +LDAP_LDFLAGS+=		-llber
> +MYSQL_USES=		mysql
> +MYSQL_CONFIGURE_ENABLE=	mysql
> +PGSQL_USES=		pgsql
> +PGSQL_CONFIGURE_ENABLE=	pg
> +

-- 
Sincerely,
Dima (fluffy@FreeBSD.org,https://t.me/dima_panov)
(desktop, kde, x11, office, ports-secteam)@FreeBSD team