ports/sysutils/libvirt/patches/patch-src_remote_remote_driver_h

19 lines
783 B
Text

Index: src/remote/remote_driver.h
--- src/remote/remote_driver.h.orig
+++ src/remote/remote_driver.h
@@ -33,8 +33,13 @@ unsigned long remoteVersion(void);
#define LIBVIRTD_TCP_PORT "16509"
/* Defaults for PKI directory. */
-#define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
-#define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
+#ifdef __OpenBSD__
+# define LIBVIRT_PKI_DIR SYSCONFDIR "/ssl"
+# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/cert.pem"
+#else
+# define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
+# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
+#endif
#define LIBVIRT_CLIENTKEY LIBVIRT_PKI_DIR "/libvirt/private/clientkey.pem"
#define LIBVIRT_CLIENTCERT LIBVIRT_PKI_DIR "/libvirt/clientcert.pem"
#define LIBVIRT_SERVERKEY LIBVIRT_PKI_DIR "/libvirt/private/serverkey.pem"