commit: aaa3d3281f906f424950983423125e08ce1942db Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Thu Dec 12 08:44:39 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Dec 13 09:34:09 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaa3d328
app-admin/passook: move back revert commit ebe886820c4c81769bea9cd1e45709d20ac582ac updated ebuild to EAPI 4 -> 8 & metadata.xml Bug: https://bugs.gentoo.org/724210 Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39693 Signed-off-by: Sam James <sam <AT> gentoo.org> app-admin/passook/Manifest | 1 + .../passook/files/passook-20121001-prefix.patch | 26 ++++++++++++++++++ app-admin/passook/metadata.xml | 19 +++++++++++++ app-admin/passook/passook-20121001.ebuild | 32 ++++++++++++++++++++++ 4 files changed, 78 insertions(+) diff --git a/app-admin/passook/Manifest b/app-admin/passook/Manifest new file mode 100644 index 000000000000..91a31a0d4194 --- /dev/null +++ b/app-admin/passook/Manifest @@ -0,0 +1 @@ +DIST passook-20121001.tgz 14045 BLAKE2B b4852f32f624ddc02b047c06f95e0623e6c40fce4230276d4f97c87ffea22ddae7f77981beea58b073e6e597d9a736937d3cfdd48cbe0a4ab2eae22267b69b96 SHA512 e96faa99cd9164e59884a86c4736314831f29713cbeed19388f752488edf64c465f8cac10462f193d2fc55dee55cee1584de2fda2955516ab6111c6831f20a9c diff --git a/app-admin/passook/files/passook-20121001-prefix.patch b/app-admin/passook/files/passook-20121001-prefix.patch new file mode 100644 index 000000000000..0b74845ce375 --- /dev/null +++ b/app-admin/passook/files/passook-20121001-prefix.patch @@ -0,0 +1,26 @@ +--- a/passook ++++ b/passook +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl + + srand; + $p = 3; #default pronouce level +@@ -38,7 +38,7 @@ + } + + sub fourletterword { +- my $grepstring = 'egrep "^....$" /usr/dict/words'; ++ my $grepstring = 'egrep "^....$" @GENTOO_PORTAGE_EPREFIX@/usr/share/dict/words'; + my @fourletters = split(/\n/,`$grepstring`); + my $word = $fourletters[rand(@fourletters)]; + $word = &tangle($word) if ($p<5); +@@ -46,7 +46,7 @@ + } + + sub threeletterword { +- my $grepstring = 'egrep "^...$" /usr/dict/words'; ++ my $grepstring = 'egrep "^...$" @GENTOO_PORTAGE_EPREFIX@/usr/share/dict/words'; + my @threeletters = split(/\n/,`$grepstring`); + my $word = $threeletters[rand(@threeletters)]; + $word = &tangle($word) if ($p<5); diff --git a/app-admin/passook/metadata.xml b/app-admin/passook/metadata.xml new file mode 100644 index 000000000000..87affbd25f95 --- /dev/null +++ b/app-admin/passook/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>zhixu....@gmail.com</email> + <name>Z. Liu</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-ma...@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Passook is a perl script that generates passwords. You can + customize the security of the password generated. + </longdescription> + <upstream> + <remote-id type="github">mackers/passook</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/passook/passook-20121001.ebuild b/app-admin/passook/passook-20121001.ebuild new file mode 100644 index 000000000000..f9b81eace384 --- /dev/null +++ b/app-admin/passook/passook-20121001.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit prefix + +DESCRIPTION="Password generator capable of generating pronounceable and/or secure passwords" +HOMEPAGE="https://github.com/mackers/passook" +PASSOOK_COMMIT="b3905189c082b156db807842e065e3f3dd752ca8" +SRC_URI="https://github.com/mackers/passook/archive/${PASSOOK_COMMIT}.tar.gz -> ${P}.tgz" + +S="${WORKDIR}/${PN}-${PASSOOK_COMMIT}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" + +RDEPEND="dev-lang/perl + sys-apps/miscfiles" + +PATCHES=( "${FILESDIR}/${PN}-20121001-prefix.patch" ) + +src_prepare() { + default + eprefixify passook +} + +src_install() { + dobin passook + dodoc README passook.cgi +}