1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/security/libpki/Makefile
Muhammad Moinur Rahman 6e1233be22 Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:

- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
  RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features

Reviewed by:	delphij
Approved by:	portmgr
Differential Revision: https://reviews.freebsd.org/D38233
2023-02-08 04:53:56 -06:00

60 lines
1.7 KiB
Makefile

PORTNAME= libpki
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.2
PORTREVISION= 3
CATEGORIES= security
PATCH_SITES= https://github.com/openca/libpki/commit/
PATCHFILES= d7617046e9da97473a140c02582fa571f6359ae3.patch:-p1
MAINTAINER= bruno@ruomad.net
COMMENT= OpenCA PKI library (libpki) and tools
WWW= https://www.openca.org/projects/libpki
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf gnome libtool ssl
USE_GITHUB= yes
GH_ACCOUNT= openca
USE_GNOME= libxml2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking \
--disable-iphone
INSTALL_TARGET= install-strip
TEST_TARGET= check
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_USES= ldap
LDAP_CONFIGURE_ENABLE= ldap
MYSQL_USES= mysql
MYSQL_CONFIGURE_ENABLE= mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ENABLE= pg
post-stage:
${MKDIR} ${STAGEDIR}${PREFIX}/share/libpki/etc; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/libpki/etc/libpki; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/libpki/etc/libpki/hsm.d; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/libpki/etc/libpki/profile.d; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/libpki/etc/libpki/store.d; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/libpki/etc/libpki/token.d; \
${MV} ${STAGEDIR}${PREFIX}/etc/pki.conf ${STAGEDIR}${PREFIX}/share/libpki/etc/pki.conf.sample; \
cd ${STAGEDIR}${PREFIX}/etc/libpki; \
for f in $$(find * -type f); do \
${MV} ${STAGEDIR}${PREFIX}/etc/libpki/$$f ${STAGEDIR}${PREFIX}/share/libpki/etc/libpki/$$f.sample; \
done; \
${RM} -rf ${STAGEDIR}${PREFIX}/include/internal
.include <bsd.port.mk>