Commit: 84de59cd1299031c49b7b049b31576f5a93031dc
Parent: a3b9c07e20e8b183a566d2406842a0f82e9818f2
Author: Randy Palamar
Date: Sat, 14 Jan 2023 22:14:53 -0700
app-admin/spm: change url to new repo and clean up ebuild
relevant parts of local.patch are applied in repo
Diffstat:
2 files changed, 5 insertions(+), 75 deletions(-)
diff --git a/app-admin/spm/files/local.patch b/app-admin/spm/files/local.patch
@@ -1,65 +0,0 @@
-diff --git a/spm b/spm
-index b45f2e0..73815f3 100755
---- a/spm
-+++ b/spm
-@@ -15,7 +15,7 @@
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
-
--set -eu
-+set -u
- umask u=rwx,go=
-
- ## Variables
-@@ -56,11 +56,11 @@ readpw() {
- }
-
- find() {
-- command find "${STORE_DIR}" -type f -o -type l | grep -Gie "${1}"
-+ command find "${STORE_DIR}" -type f -o -type l | grep -ie "${1}.gpg"
- }
-
- munge() {
-- abspath="$(readlink -f "${STORE_DIR}"/"${1}")"
-+ abspath="$(readlink -f "${STORE_DIR}"/"${1}.gpg")"
- case "${abspath}" in
- "${STORE_DIR}"*)
- eval ${2}=\"${abspath#${STORE_DIR}}\"
-@@ -76,7 +76,7 @@ view() {
-
- ## Commands
- add() {
-- [ -e "${STORE_DIR}"/"${1}" ] && usage 'entry already exists'
-+ [ -e "${STORE_DIR}"/"${1}.gpg" ] && usage 'entry already exists'
-
- password=
- readpw "Password for '${1}': " password
-@@ -87,7 +87,7 @@ add() {
-
- mkdir -p "${STORE_DIR}"/"${group}" &&
- printf '%s\n' "${password}" |
-- gpg --encrypt --output "${STORE_DIR}"/"${1}"
-+ gpg --encrypt --output "${STORE_DIR}"/"${1}.gpg"
- }
-
- list() {
-@@ -97,8 +97,8 @@ list() {
- }
-
- del() {
-- entry=$(find "${1}" | head -n2)
-- check; command rm -i "${entry}" && printf '\n'
-+ entry=$(find "${1}" | sed 2q)
-+ check; command rm "${entry}" && printf '\n'
- }
-
- search() {
-@@ -106,7 +106,7 @@ search() {
- }
-
- show() {
-- entry=$(find "${1}" | head -n2)
-+ entry=$(find "${1}" | sed 2q)
- check; gpg --decrypt "${entry}"
- }
-
diff --git a/app-admin/spm/spm-9999.ebuild b/app-admin/spm/spm-9999.ebuild
@@ -1,10 +1,10 @@
-EAPI=7
+EAPI=8
inherit git-r3
DESCRIPTION="Simple PoSix password manager"
-HOMEPAGE="https://notabug.org/kl3/spm/"
-EGIT_REPO_URI="https://notabug.org/kl3/spm.git"
+HOMEPAGE="https://github.com/rnpnr/spm"
+EGIT_REPO_URI="https://github.com/rnpnr/spm.git"
LICENSE="GPL-3"
SLOT=0
@@ -15,14 +15,9 @@ RDEPEND="
app-text/tree
x11-misc/xclip
"
-src_configure() {
- default
- eapply "${FILESDIR}"/local.patch
-}
-
src_compile() { :; }
src_install() {
- emake DESTDIR=${D} PREFIX=${EPREFIX}${LOCAL_PREFIX} install
- einstalldocs
+ dobin spm
+ doman spm.1
}