aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Damour <bruno@ruomad.net>2022-07-13 09:48:20 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2022-07-13 09:53:32 +0000
commit93db311c5f7a2da50f3b8414c68a3f20c241354c (patch)
treedb3e4eec03c9c5ae39e5e5219d5e4d1a1e4efd0e
parent62b39304bf995e2a2e1467e8434926505388056d (diff)
downloadports-93db311c5f7a2da50f3b8414c68a3f20c241354c.tar.gz
ports-93db311c5f7a2da50f3b8414c68a3f20c241354c.zip
security/libpki: New port: OpenCA PKI library (libpki) and tools
- submitter becomes maintainer OpenCA LibPKI provides an easy-to-use PKI library for PKI enabled application development. The library provides the developer with all the needed functionalities to manage certificates, from generation to validation. WWW: https://www.openca.org/projects/libpki PR: 264474 Reviewed by: diizzy
-rw-r--r--security/Makefile1
-rw-r--r--security/libpki/Makefile37
-rw-r--r--security/libpki/distinfo5
-rw-r--r--security/libpki/pkg-descr6
-rw-r--r--security/libpki/pkg-plist178
5 files changed, 227 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 5151b3cf8791..b2a3cf41dda3 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -286,6 +286,7 @@
SUBDIR += libotr
SUBDIR += libotr3
SUBDIR += libp11
+ SUBDIR += libpki
SUBDIR += libprelude
SUBDIR += libpreludedb
SUBDIR += libpwquality
diff --git a/security/libpki/Makefile b/security/libpki/Makefile
new file mode 100644
index 000000000000..2583811f7040
--- /dev/null
+++ b/security/libpki/Makefile
@@ -0,0 +1,37 @@
+PORTNAME= libpki
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.9.2
+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
+
+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-dns \
+ --disable-iphone \
+ --disable-ldap \
+ --disable-mysql \
+ --disable-pg
+INSTALL_TARGET= install-strip
+
+post-stage:
+ ${MV} ${STAGEDIR}${PREFIX}/etc/pki.conf ${STAGEDIR}${PREFIX}/etc/pki.conf.sample; \
+ for f in $$(find ${STAGEDIR}${PREFIX}/etc/libpki -type f); do \
+ ${MV} $$f $$f.sample; \
+ done; \
+ ${RM} -rf ${STAGEDIR}${PREFIX}/include/internal
+
+.include <bsd.port.mk>
diff --git a/security/libpki/distinfo b/security/libpki/distinfo
new file mode 100644
index 000000000000..ff5dbd0e6577
--- /dev/null
+++ b/security/libpki/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1657661150
+SHA256 (openca-libpki-v0.9.2_GH0.tar.gz) = 4352a77457579a498837e33fbc0092f67a1c5d93eee6eb73bc889ad8b8f747fb
+SIZE (openca-libpki-v0.9.2_GH0.tar.gz) = 1184928
+SHA256 (d7617046e9da97473a140c02582fa571f6359ae3.patch) = 05818f983047b399958f523e79de001d995947ec92366dca2c9f7aac52fed7c7
+SIZE (d7617046e9da97473a140c02582fa571f6359ae3.patch) = 1251
diff --git a/security/libpki/pkg-descr b/security/libpki/pkg-descr
new file mode 100644
index 000000000000..aac5feda2b16
--- /dev/null
+++ b/security/libpki/pkg-descr
@@ -0,0 +1,6 @@
+OpenCA LibPKI provides an easy-to-use PKI library for PKI enabled application
+development.
+The library provides the developer with all the needed functionalities to
+manage certificates, from generation to validation.
+
+WWW: https://www.openca.org/projects/libpki
diff --git a/security/libpki/pkg-plist b/security/libpki/pkg-plist
new file mode 100644
index 000000000000..c953facb4beb
--- /dev/null
+++ b/security/libpki/pkg-plist
@@ -0,0 +1,178 @@
+bin/libpki-config
+bin/pki-cert
+bin/pki-crl
+bin/pki-derenc
+bin/pki-query
+bin/pki-request
+bin/pki-siginfo
+bin/pki-tool
+bin/pki-xpair
+bin/url-tool
+%%ETCDIR%%/hsm.d/eracom-sdk.xml.sample
+%%ETCDIR%%/hsm.d/etoken-engine.xml.sample
+%%ETCDIR%%/hsm.d/etoken-pkcs11.xml.sample
+%%ETCDIR%%/hsm.d/etoken.xml.sample
+%%ETCDIR%%/hsm.d/opencryptoki.xml.sample
+%%ETCDIR%%/hsm.d/tpm.xml.sample
+%%ETCDIR%%/objectIdentifiers.xml.sample
+%%ETCDIR%%/profile.d/crl.xml.sample
+%%ETCDIR%%/profile.d/server.xml.sample
+%%ETCDIR%%/profile.d/test.xml.sample
+%%ETCDIR%%/profile.d/user.xml.sample
+%%ETCDIR%%/store.d/empty.xml.sample
+%%ETCDIR%%/token.d/default.xml.sample
+%%ETCDIR%%/token.d/eracom.xml.sample
+%%ETCDIR%%/token.d/etoken-engine.xml.sample
+%%ETCDIR%%/token.d/etoken.xml.sample
+%%ETCDIR%%/token.d/opencryptoki.xml.sample
+%%ETCDIR%%/token.d/software.xml.sample
+%%ETCDIR%%/token.d/test.xml.sample
+%%ETCDIR%%/token.d/tpm.xml.sample
+etc/pki.conf.sample
+include/libpki/banners.h
+include/libpki/cmc.h
+include/libpki/cmc/cmc_cert_req.h
+include/libpki/compat.h
+include/libpki/config.h
+include/libpki/crypto.h
+include/libpki/datatypes.h
+include/libpki/drivers/engine/data_st.h
+include/libpki/drivers/engine/engine_hsm.h
+include/libpki/drivers/engine/engine_hsm_obj.h
+include/libpki/drivers/engine/engine_hsm_pkey.h
+include/libpki/drivers/engine/engine_st.h
+include/libpki/drivers/hsm_keypair.h
+include/libpki/drivers/hsm_main.h
+include/libpki/drivers/hsm_slot.h
+include/libpki/drivers/kmf/data_st.h
+include/libpki/drivers/kmf/kmf_hsm.h
+include/libpki/drivers/kmf/kmf_hsm_engine.h
+include/libpki/drivers/kmf/kmf_hsm_pkey.h
+include/libpki/drivers/kmf/kmf_hsm_sign.h
+include/libpki/drivers/kmf/pki_kmflib.h
+include/libpki/drivers/openssl/data_st.h
+include/libpki/drivers/openssl/openssl_hsm.h
+include/libpki/drivers/openssl/openssl_hsm_cb.h
+include/libpki/drivers/openssl/openssl_hsm_obj.h
+include/libpki/drivers/openssl/openssl_hsm_pkey.h
+include/libpki/drivers/pkcs11/pkcs11_hsm.h
+include/libpki/drivers/pkcs11/pkcs11_hsm_obj.h
+include/libpki/drivers/pkcs11/pkcs11_hsm_pkey.h
+include/libpki/drivers/pkcs11/pkcs11_utils.h
+include/libpki/drivers/pkcs11/rsa/cryptoki.h
+include/libpki/drivers/pkcs11/rsa/pkcs11.h
+include/libpki/drivers/pkcs11/rsa/pkcs11_func.h
+include/libpki/drivers/pkcs11/rsa/pkcs11f.h
+include/libpki/drivers/pkcs11/rsa/pkcs11t.h
+include/libpki/errors-new.h
+include/libpki/errors.h
+include/libpki/est/est.h
+include/libpki/est/pki_x509_est_asn1.h
+include/libpki/est/pki_x509_est_attrs.h
+include/libpki/est/pki_x509_est_data.h
+include/libpki/est/pki_x509_est_msg.h
+include/libpki/extensions.h
+include/libpki/hsm_st.h
+include/libpki/io/pki_keypair_io.h
+include/libpki/io/pki_msg_req_io.h
+include/libpki/io/pki_msg_resp_io.h
+include/libpki/io/pki_ocsp_req_io.h
+include/libpki/io/pki_ocsp_resp_io.h
+include/libpki/io/pki_x509_cert_io.h
+include/libpki/io/pki_x509_cms_io.h
+include/libpki/io/pki_x509_crl_io.h
+include/libpki/io/pki_x509_io.h
+include/libpki/io/pki_x509_p12_io.h
+include/libpki/io/pki_x509_pkcs7_io.h
+include/libpki/io/pki_x509_req_io.h
+include/libpki/io/pki_x509_xpair_io.h
+include/libpki/libpkiv.h
+include/libpki/net/dns.h
+include/libpki/net/http_s.h
+include/libpki/net/ldap.h
+include/libpki/net/pkcs11.h
+include/libpki/net/pki_mysql.h
+include/libpki/net/pki_pg.h
+include/libpki/net/pki_socket.h
+include/libpki/net/sock.h
+include/libpki/net/ssl.h
+include/libpki/net/url.h
+include/libpki/openssl/data_st.h
+include/libpki/openssl/pthread_init.h
+include/libpki/os.h
+include/libpki/pki.h
+include/libpki/pki_algor.h
+include/libpki/pki_conf.h
+include/libpki/pki_config.h
+include/libpki/pki_cred.h
+include/libpki/pki_digest.h
+include/libpki/pki_err.h
+include/libpki/pki_hmac.h
+include/libpki/pki_id.h
+include/libpki/pki_id_info.h
+include/libpki/pki_init.h
+include/libpki/pki_integer.h
+include/libpki/pki_io.h
+include/libpki/pki_keypair.h
+include/libpki/pki_keyparams.h
+include/libpki/pki_log.h
+include/libpki/pki_mem.h
+include/libpki/pki_msg.h
+include/libpki/pki_msg_req.h
+include/libpki/pki_msg_resp.h
+include/libpki/pki_ocsp_req.h
+include/libpki/pki_ocsp_resp.h
+include/libpki/pki_oid.h
+include/libpki/pki_string.h
+include/libpki/pki_threads.h
+include/libpki/pki_threads_vars.h
+include/libpki/pki_time.h
+include/libpki/pki_x509.h
+include/libpki/pki_x509_attribute.h
+include/libpki/pki_x509_cert.h
+include/libpki/pki_x509_cert_mem.h
+include/libpki/pki_x509_cms.h
+include/libpki/pki_x509_crl.h
+include/libpki/pki_x509_data_st.h
+include/libpki/pki_x509_extension.h
+include/libpki/pki_x509_mem.h
+include/libpki/pki_x509_mime.h
+include/libpki/pki_x509_name.h
+include/libpki/pki_x509_p12.h
+include/libpki/pki_x509_pkcs7.h
+include/libpki/pki_x509_profile.h
+include/libpki/pki_x509_req.h
+include/libpki/pki_x509_signature.h
+include/libpki/pki_x509_xpair.h
+include/libpki/pki_x509_xpair_asn1.h
+include/libpki/profile.h
+include/libpki/prqp/http_client.h
+include/libpki/prqp/prqp.h
+include/libpki/prqp/prqp_asn1.h
+include/libpki/prqp/prqp_bio.h
+include/libpki/prqp/prqp_lib.h
+include/libpki/prqp/prqp_req_io.h
+include/libpki/prqp/prqp_resp_io.h
+include/libpki/prqp/prqp_srv.h
+include/libpki/prqp/prqp_stack.h
+include/libpki/scep/pki_x509_scep_asn1.h
+include/libpki/scep/pki_x509_scep_attrs.h
+include/libpki/scep/pki_x509_scep_data.h
+include/libpki/scep/pki_x509_scep_msg.h
+include/libpki/scep/scep.h
+include/libpki/stack.h
+include/libpki/support.h
+include/libpki/token.h
+include/libpki/token_data.h
+include/libpki/token_id.h
+include/libpki/token_st.h
+lib/libpki.a
+lib/libpki.so
+lib/libpki.so.92
+lib/libpki.so.92.92.4
+%%DATADIR%%/README.data_structures
+%%DATADIR%%/README.functions
+%%DATADIR%%/doxygen-man.conf
+%%DATADIR%%/doxygen-pdf.conf
+%%DATADIR%%/doxygen.conf
+%%DATADIR%%/pkginfo