security/keepassxc276: Repocopy from security/keepassxc

Keepassxc > 2.7.6 removed support for Yubikey and other dongles.
Repocopy security/keepassxc to keepassxc276 in order to facilitate
updating keepassxc while allowing users to continue to use keepassxc 2.7.6
with Yubikey, using the opportunity to look for alternatives.

Suggested by:	madpilot
PR:		279879
Approved by:	lwhsu (MAINTAINER)
This commit is contained in:
Cy Schubert
2025-07-04 08:53:20 -07:00
parent 73b33f737f
commit 56c07fb765
6 changed files with 173 additions and 0 deletions

View File

@@ -255,6 +255,7 @@
SUBDIR += keepass
SUBDIR += keepass-plugin-keepassrpc
SUBDIR += keepassxc
SUBDIR += keepassxc276
SUBDIR += keybase
SUBDIR += keychain
SUBDIR += keyprint

View File

@@ -0,0 +1,69 @@
PORTNAME= keepassxc
DISTVERSION= 2.7.6
CATEGORIES= security
MASTER_SITES= https://github.com/keepassxreboot/keepassxc/releases/download/${DISTVERSION}/
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= KeePass Cross-platform Community Edition
WWW= https://keepassxc.org
LICENSE= APACHE20 BSD3CLAUSE CC0-1.0 GPLv2 GPLv3 LGPL21 LGPL3 MIT \
NOKIA-LGPL-EXCEPTION
LICENSE_COMB= multi
LICENSE_NAME_NOKIA-LGPL-EXCEPTION= Nokia Qt LGPL Exception version 1.1
LICENSE_FILE_NOKIA-LGPL-EXCEPTION= ${WRKSRC}/LICENSE.NOKIA-LGPL-EXCEPTION
LICENSE_PERMS_NOKIA-LGPL-EXCEPTION= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
DEPRECATED= Depends on expired security/botan2
EXPIRATION_DATE=2025-06-21
BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
LIB_DEPENDS= libargon2.so:security/libargon2 \
libqrencode.so:graphics/libqrencode \
libbotan-2.so:security/botan2
USES= cmake compiler:c++17-lang desktop-file-utils pkgconfig qt:5 \
readline shared-mime-info tar:xz xorg
USE_QT= concurrent core dbus gui network svg widgets buildtools:build \
linguisttools:build qmake:build testlib:build x11extras
USE_XORG= x11
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
CMAKE_OFF= WITH_XC_UPDATECHECK
CONFLICTS_INSTALL= keepassx-0.* keepassx2 keepassx
OPTIONS_DEFINE= AUTOTYPE BROWSER FDOSECRETS KEESHARE NETWORKING SSHAGENT YUBIKEY TEST
OPTIONS_DEFAULT= AUTOTYPE BROWSER FDOSECRETS KEESHARE NETWORKING SSHAGENT YUBIKEY
OPTIONS_SUB= yes
AUTOTYPE_CMAKE_BOOL= WITH_XC_AUTOTYPE
AUTOTYPE_DESC= Auto-type passwords in input fields
AUTOTYPE_USE= XORG=xi,xtst
BROWSER_CMAKE_BOOL= WITH_XC_BROWSER
BROWSER_DESC= Browser integration with KeePassXC-Browser
FDOSECRETS_CMAKE_BOOL= WITH_XC_FDOSECRETS
FDOSECRETS_DESC= freedesktop.org secrets service support
KEESHARE_CMAKE_BOOL= WITH_XC_KEESHARE
KEESHARE_DESC= Sharing integration with KeeShare
KEESHARE_USES= minizip
# Legacy/Deprecated.
NETWORKING_CMAKE_BOOL= WITH_XC_NETWORKING
NETWORKING_DESC= Networking support (e.g. for downloading website icons)
SSHAGENT_CMAKE_BOOL= WITH_XC_SSHAGENT
SSHAGENT_DESC= SSH agent support
YUBIKEY_CMAKE_BOOL= WITH_XC_YUBIKEY
YUBIKEY_DESC= YubiKey support
YUBIKEY_LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
TEST_CMAKE_BOOL= WITH_TESTS WITH_GUI_TESTS
TEST_TEST_TARGET= test
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1692163985
SHA256 (keepassxc-2.7.6-src.tar.xz) = a58074509fa8e90f152c6247f73e75e126303081f55eedb4ea0cbb6fa980d670
SIZE (keepassxc-2.7.6-src.tar.xz) = 8474624

View File

@@ -0,0 +1,11 @@
--- src/thirdparty/ykcore/CMakeLists.txt.orig 2022-03-21 22:47:20 UTC
+++ src/thirdparty/ykcore/CMakeLists.txt
@@ -27,7 +27,7 @@ elseif(UNIX AND NOT APPLE)
elseif(UNIX AND NOT APPLE)
target_sources(ykcore PRIVATE ykcore_libusb-1.0.c)
- find_library(LIBUSB_LIBRARY NAMES usb-1.0)
+ find_library(LIBUSB_LIBRARY NAMES usb-1.0 usb)
find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h PATH_SUFFIXES "libusb-1.0" "libusb")
if(NOT LIBUSB_LIBRARY OR NOT LIBUSB_INCLUDE_DIR)
message(FATAL_ERROR "libusb-1.0 dev package required, but not found")

View File

@@ -0,0 +1,22 @@
KeePassXC is a community fork of KeePassX, a native cross-platform port of
KeePass Password Safe, with the goal to extend and improve it with new features
and bugfixes to provide a feature-rich, fully cross-platform and modern
open-source password manager.
Main Features
* Secure storage with AES, Twofish or ChaCha20 encryption
* File format compatibility with KeePass2, KeePassX, MacPass, KeeWeb and many
others (KDBX 3.1 and 4.0)
* SSH Agent integration
* Passwords synchronization using KeeShare
* Auto-Type for automagically filling in login forms
* Key file and YubiKey challenge-response support for additional security
* TOTP generation (including Steam Guard)
* CSV import from other password managers (e.g., LastPass)
* Command line interface
* Custom icons for database entries and download of website favicons
* Database merge functionality
* Automatic reload when the database was changed externally
* Browser integration with KeePassXC-Browser for Google Chrome, Chromium,
Vivaldi, and Mozilla Firefox.

View File

@@ -0,0 +1,67 @@
bin/keepassxc
bin/keepassxc-cli
%%BROWSER%%bin/keepassxc-proxy
%%AUTOTYPE%%lib/keepassxc/libkeepassxc-autotype-xcb.so
share/man/man1/keepassxc-cli.1.gz
share/man/man1/keepassxc.1.gz
share/applications/org.keepassxc.KeePassXC.desktop
share/icons/hicolor/256x256/apps/keepassxc.png
share/icons/hicolor/scalable/apps/keepassxc-locked.svg
share/icons/hicolor/scalable/apps/keepassxc-monochrome-dark-locked.svg
share/icons/hicolor/scalable/apps/keepassxc-monochrome-dark.svg
share/icons/hicolor/scalable/apps/keepassxc-monochrome-light-locked.svg
share/icons/hicolor/scalable/apps/keepassxc-monochrome-light.svg
share/icons/hicolor/scalable/apps/keepassxc-unlocked.svg
share/icons/hicolor/scalable/apps/keepassxc.svg
share/icons/hicolor/scalable/mimetypes/application-x-keepassxc.svg
%%DATADIR%%/docs/KeePassXC_GettingStarted.html
%%DATADIR%%/docs/KeePassXC_KeyboardShortcuts.html
%%DATADIR%%/docs/KeePassXC_UserGuide.html
%%DATADIR%%/icons/application/256x256/apps/keepassxc.png
%%DATADIR%%/translations/keepassxc_ar.qm
%%DATADIR%%/translations/keepassxc_bg.qm
%%DATADIR%%/translations/keepassxc_ca.qm
%%DATADIR%%/translations/keepassxc_cs.qm
%%DATADIR%%/translations/keepassxc_da.qm
%%DATADIR%%/translations/keepassxc_de.qm
%%DATADIR%%/translations/keepassxc_el.qm
%%DATADIR%%/translations/keepassxc_en.qm
%%DATADIR%%/translations/keepassxc_en_GB.qm
%%DATADIR%%/translations/keepassxc_en_US.qm
%%DATADIR%%/translations/keepassxc_es.qm
%%DATADIR%%/translations/keepassxc_et.qm
%%DATADIR%%/translations/keepassxc_fi.qm
%%DATADIR%%/translations/keepassxc_fil.qm
%%DATADIR%%/translations/keepassxc_fr.qm
%%DATADIR%%/translations/keepassxc_fr_CA.qm
%%DATADIR%%/translations/keepassxc_he.qm
%%DATADIR%%/translations/keepassxc_hr.qm
%%DATADIR%%/translations/keepassxc_hu.qm
%%DATADIR%%/translations/keepassxc_id.qm
%%DATADIR%%/translations/keepassxc_it.qm
%%DATADIR%%/translations/keepassxc_ja.qm
%%DATADIR%%/translations/keepassxc_km.qm
%%DATADIR%%/translations/keepassxc_ko.qm
%%DATADIR%%/translations/keepassxc_lt.qm
%%DATADIR%%/translations/keepassxc_my.qm
%%DATADIR%%/translations/keepassxc_nb.qm
%%DATADIR%%/translations/keepassxc_nl.qm
%%DATADIR%%/translations/keepassxc_pl.qm
%%DATADIR%%/translations/keepassxc_pt_BR.qm
%%DATADIR%%/translations/keepassxc_pt_PT.qm
%%DATADIR%%/translations/keepassxc_ro.qm
%%DATADIR%%/translations/keepassxc_ru.qm
%%DATADIR%%/translations/keepassxc_si.qm
%%DATADIR%%/translations/keepassxc_sk.qm
%%DATADIR%%/translations/keepassxc_sl.qm
%%DATADIR%%/translations/keepassxc_sq.qm
%%DATADIR%%/translations/keepassxc_sr.qm
%%DATADIR%%/translations/keepassxc_sv.qm
%%DATADIR%%/translations/keepassxc_th.qm
%%DATADIR%%/translations/keepassxc_tr.qm
%%DATADIR%%/translations/keepassxc_uk.qm
%%DATADIR%%/translations/keepassxc_zh_CN.qm
%%DATADIR%%/translations/keepassxc_zh_TW.qm
%%DATADIR%%/wordlists/eff_large.wordlist
share/metainfo/org.keepassxc.KeePassXC.appdata.xml
share/mime/packages/keepassxc.xml