Files
haikuports/app-admin/kc/kc-2.5.1.recipe
2024-08-24 11:49:27 +02:00

86 lines
2.2 KiB
Bash

SUMMARY="A console based password storing application"
DESCRIPTION="A console based password storing application using an encrypted XML document as its \
database. It has a clean and simple command line interface and works on *BSD and Linux.
Features include:
- fixed string or regex based search
- OpenSSH agent support for protecting the database
- YubiKey challenge-response support for protecting the database
- encrypted or plain text database import/export
- multiple keychains per database
- copy passwords to various clipboards
- editline (libedit) and readline support"
HOMEPAGE="https://github.com/levaidaniel/kc"
COPYRIGHT="2011-2022, LEVAI Daniel"
LICENSE="BSD (2-clause)"
REVISION="2"
SOURCE_URI="https://github.com/levaidaniel/kc/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="d0265da21986c261bd1502b313540bfe991af8b97e44a7296d822fe0e2e0a632"
PATCHES="kc-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kc$secondaryArchSuffix = $portVersion
cmd:kc = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libedit$secondaryArchSuffix
lib:libpcre$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libykpers_1$secondaryArchSuffix
lib:libyubikey$secondaryArchSuffix
lib:libncursesw$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libedit$secondaryArchSuffix
devel:libpcre$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libxml2$secondaryArchSuffix
devel:libykpers_1$secondaryArchSuffix
devel:libyubikey$secondaryArchSuffix
devel:libncursesw$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sh
"
TEST_REQUIRES="
cmd:make
cmd:sha1sum
"
PATCH()
{
# Patch settings' location on the man page:
_settingsDir=$(finddir B_USER_SETTINGS_DIRECTORY)
sed -i -e "s|~/.kc/|$_settingsDir/kc/|g" kc.1
sed -i -e "s|/home/user/.kc/|$_settingsDir/kc/|g" kc.1
}
INSTALL()
{
make \
EDITLINE=1 HAVE_YUBIKEY=1 HAVE_PCRE=1 \
PREFIX=$prefix MANDIR=$manDir \
-f Makefile.haiku \
install
}
TEST()
{
# Current results: "30 tests were ok, 3 skipped!" / "Took about 328 seconds".
make -f Makefile.haiku test
}