pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add options to KeePassXC



Hello,

This is a patch that adds options to security/keepassxc. The current
configure task ends this way:
-- Disabled features:                                          
 * Networking, Compile KeePassXC with network access code (e.g. for downloading website icons)
 * Passkeys, Passkeys support for browser integration    
 * SSHAgent, SSH agent integration compatible with KeeAgent
 * KeeShare, Sharing integration with KeeShare                 
 * YubiKey, YubiKey HMAC-SHA1 challenge-response               
 * UpdateCheck, Automatic update checking                      
 * FdoSecrets, Implement freedesktop.org Secret Storage Spec server side API.

The attached patch allows enabling any of those.
Tested on Slackware Linux 15.0 only.

-- 
Bonne journée,
Joel C.
? work
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/security/keepassxc/options.mk,v
retrieving revision 1.2
diff -U2 -r1.2 options.mk
--- options.mk	25 Aug 2024 06:19:11 -0000	1.2
+++ options.mk	10 Feb 2025 15:31:29 -0000
@@ -2,9 +2,52 @@
 
 PKG_OPTIONS_VAR=		PKG_OPTIONS.keepassxc
-PKG_SUPPORTED_OPTIONS=		yubikey
+PKG_SUPPORTED_OPTIONS=		browser browser-passkey fdosecrets keeshare networking sshagent yubikey
 PKG_SUGGESTED_OPTIONS=		#
 
 .include "../../mk/bsd.options.mk"
 
+# Enable/Disable KeePassXC-Browser extension support
+.if !empty(PKG_OPTIONS:Mbrowser)
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_BROWSER=ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_BROWSER=OFF
+.endif
+
+# Enable/Disable Passkeys support for browser integration
+.if !empty(PKG_OPTIONS:Mbrowser-passkey)
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_BROWSER_PASSKEYS=ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_BROWSER_PASSKEYS=OFF
+.endif
+
+# Enable/Disable Freedesktop.org Secrets Service support
+.if !empty(PKG_OPTIONS:Mfdosecrets)
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_FDOSECRETS=ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_FDOSECRETS=OFF
+.endif
+
+# Enable/Disable KeeShare group synchronization extension
+.if !empty(PKG_OPTIONS:Mkeeshare)
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_KEESHARE==ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_KEESHARE==OFF
+.endif
+
+# Enable/Disable Networking support
+.if !empty(PKG_OPTIONS:Mnetworking)
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_NETWORKING=ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_NETWORKING=OFF
+.endif
+
+# Enable/Disable SSHAgent support
+.if !empty(PKG_OPTIONS:Msshagent)
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_SSHAGENT=ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DWITH_XC_SSHAGENT=OFF
+.endif
+
+# Enable/Disable YubiKey HMAC-SHA1 authentication support
 .if !empty(PKG_OPTIONS:Myubikey)
 CMAKE_CONFIGURE_ARGS+=	-DWITH_XC_YUBIKEY=ON


Home | Main Index | Thread Index | Old Index