app-admin/himitsu-totp: new package, add 9999

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2022-08-13 11:37:03 +02:00
parent 821df35d89
commit a18eca7c87
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST himitsu-ssh-0.1.tar.gz 18378 BLAKE2B 92c9f9838dbab8df7d57321c1692fdfaa5e342eed14d08aac7eacb088e0eacaf5abe05b396eb05f14d0feb1f8d85034365464087729cc79b168a76253778b311 SHA512 f1bb3dfe2ee5843e867748f5177f1f34007674e3b6f2cb9ba701edc2dca8e979ba9882dc5012197b10053583b7536d71b0a214c57aa03e2576d08cb12e9e1e4c

View File

@@ -0,0 +1,44 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ "${PV}" = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/himitsu-totp"
else
SRC_URI="https://git.sr.ht/~sircmpwn/himitsu-totp/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~riscv"
fi
DESCRIPTION="TOTP support for Himitsu"
HOMEPAGE="https://git.sr.ht/~sircmpwn/himitsu-totp"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND="app-admin/himitsu:="
DEPEND="
${RDEPEND}
dev-lang/hare:=
"
BDEPEND="app-text/scdoc"
# hare binary
QA_FLAGS_IGNORED="usr/bin/hitotp"
src_prepare() {
default
sed -i 's|^use query;|use himitsu::query;|' cmd/hitotp/main.ha || die
}
src_configure() {
sed -i 's;^PREFIX=.*;PREFIX=/usr;' Makefile || die
}
src_install() {
einstalldocs
dobin hitotp
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</name>
</maintainer>
</pkgmetadata>