FreeBSD Bugzilla – Attachment 234690 Details for
Bug 264474
[NEW PORT] security/libpki : OpenCA’s libpki library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
libpki-0.9.2
libpki-0.9.2.diff (text/plain), 9.67 KB, created by
Nuno Teixeira
on 2022-06-14 21:21:59 UTC
(
hide
)
Description:
libpki-0.9.2
Filename:
MIME Type:
Creator:
Nuno Teixeira
Created:
2022-06-14 21:21:59 UTC
Size:
9.67 KB
patch
obsolete
>diff --git a/security/Makefile b/security/Makefile >index 46f8b786c3cc..1c3e1180d384 100644 >--- a/security/Makefile >+++ b/security/Makefile >@@ -292,6 +292,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..e0656a9bf2d0 >--- /dev/null >+++ b/security/libpki/Makefile >@@ -0,0 +1,43 @@ >+PORTNAME= libpki >+DISTVERSIONPREFIX= v >+DISTVERSION= 0.9.2 >+CATEGORIES= security >+ >+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 >+ >+# Provided patches fix : >+# - src/pki.config.c to replace a breaking call to strncpy by strcpy >+# - configure.ac to (i) fix a typo in AC_COMPILE_IFELSE invocation, >+# (ii) not to append mybits to libdir (lib vs lib64) on *bsd*, and >+# (iii) map target arm64 (reported by FreeBSD) to expected x86_64 : >+# hence the need to autoreconf >+ >+GNU_CONFIGURE= yes >+ >+CONFIGURE_ARGS= --disable-dependency-tracking \ >+ --disable-dns \ >+ --disable-iphone \ >+ --disable-ldap \ >+ --disable-mysql \ >+ --disable-pg >+ >+INSTALL_TARGET= install-strip >+ >+# Rename installed configuration files to samples >+post-stage: >+ ${MV} ${WRKDIR}/stage${PREFIX}/etc/pki.conf ${WRKDIR}/stage${PREFIX}/etc/pki.conf.sample; \ >+ for f in $$(find ${STAGEDIR}${PREFIX}/etc/libpki -type f); do \ >+ ${MV} $$f $$f.sample; \ >+ done >+ >+.include <bsd.port.mk> >diff --git a/security/libpki/distinfo b/security/libpki/distinfo >new file mode 100644 >index 000000000000..be3541de54f0 >--- /dev/null >+++ b/security/libpki/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1654414123 >+SHA256 (openca-libpki-v0.9.2_GH0.tar.gz) = 4352a77457579a498837e33fbc0092f67a1c5d93eee6eb73bc889ad8b8f747fb >+SIZE (openca-libpki-v0.9.2_GH0.tar.gz) = 1184928 >diff --git a/security/libpki/files/patch-configure.ac b/security/libpki/files/patch-configure.ac >new file mode 100644 >index 000000000000..8a465584f2e8 >--- /dev/null >+++ b/security/libpki/files/patch-configure.ac >@@ -0,0 +1,36 @@ >+--- configure.ac.orig 2022-06-03 15:34:46 UTC >++++ configure.ac >+@@ -267,6 +267,7 @@ case "${build_os}" in >+ ;; >+ *bsd*) myarch=bsd >+ shlext=so >++ mybits_install="" >+ ;; >+ *iphone*) >+ myarch=iphone >+@@ -308,6 +309,9 @@ case "$target" in >+ x86_64-*) >+ arch_target=x86_64 >+ ;; >++ amd64*-*) >++ arch_target=x86_64 >++ ;; >+ sparc*-*) >+ arch_target=Sparc >+ ;; >+@@ -524,13 +528,13 @@ dnl [ pthread_rw=yes ] , >+ dnl [ pthread_rw=no ] ) >+ >+ dnl AC_TRY_COMPILE( [ >+-AC_COMPILE_IFELSE( AC_LANG_SOURCE([[ >++AC_COMPILE_IFELSE( [AC_LANG_SOURCE([ >+ #include <sys/types.h> >+ #include <pthread.h> >+ pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER; >+ int main() { >+ return (0); >+-} ]]), >++} ])], >+ [ pthread_rw=yes ] , >+ [ pthread_rw=no ] ) >+ >diff --git a/security/libpki/files/patch-pki_config.c b/security/libpki/files/patch-pki_config.c >new file mode 100644 >index 000000000000..26c465266ff0 >--- /dev/null >+++ b/security/libpki/files/patch-pki_config.c >@@ -0,0 +1,11 @@ >+--- src/pki_config.c.orig 2021-01-16 00:14:34 UTC >++++ src/pki_config.c >+@@ -83,7 +83,7 @@ static char * _xml_search_namespace_add ( char *search >+ PKI_Free( my_arg ); >+ >+ ret = PKI_Malloc ( strlen( my_search ) + 1); >+- strncpy( ret, my_search, strlen(my_search) ); >++ strcpy( ret, my_search ); >+ >+ PKI_Free ( my_search ); >+ return( ret ); >diff --git a/security/libpki/pkg-descr b/security/libpki/pkg-descr >new file mode 100644 >index 000000000000..651d2ebdc664 >--- /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..5428207227ac >--- /dev/null >+++ b/security/libpki/pkg-plist >@@ -0,0 +1,172 @@ >+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 >+etc/libpki/hsm.d/eracom-sdk.xml.sample >+etc/libpki/hsm.d/etoken-engine.xml.sample >+etc/libpki/hsm.d/etoken-pkcs11.xml.sample >+etc/libpki/hsm.d/etoken.xml.sample >+etc/libpki/hsm.d/opencryptoki.xml.sample >+etc/libpki/hsm.d/tpm.xml.sample >+etc/libpki/objectIdentifiers.xml.sample >+etc/libpki/profile.d/crl.xml.sample >+etc/libpki/profile.d/server.xml.sample >+etc/libpki/profile.d/test.xml.sample >+etc/libpki/profile.d/user.xml.sample >+etc/libpki/store.d/empty.xml.sample >+etc/libpki/token.d/default.xml.sample >+etc/libpki/token.d/eracom.xml.sample >+etc/libpki/token.d/etoken-engine.xml.sample >+etc/libpki/token.d/etoken.xml.sample >+etc/libpki/token.d/opencryptoki.xml.sample >+etc/libpki/token.d/software.xml.sample >+etc/libpki/token.d/test.xml.sample >+etc/libpki/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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264474
:
234463
|
234482
|
234505
|
234686
|
234689
| 234690 |
234910
|
235225