summaryrefslogtreecommitdiff
path: root/security/pinentry-emacs/Makefile
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-11 14:22:20 +0200
committercashmere <cashmere@autistici.org>2026-07-11 14:22:20 +0200
commitdc3905e12f497e846dff7ab6345b0c90d3fab22f (patch)
tree718f87671ac47e86e90a1f74de9a1dd014e6caad /security/pinentry-emacs/Makefile
parent4467e7c74d92971435a45a8658a492fcad4784fd (diff)
downloadports-dc3905e12f497e846dff7ab6345b0c90d3fab22f.tar.gz
security/pinentry-emacs: add custom pinentry-emacs port
Diffstat (limited to 'security/pinentry-emacs/Makefile')
-rw-r--r--security/pinentry-emacs/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/security/pinentry-emacs/Makefile b/security/pinentry-emacs/Makefile
new file mode 100644
index 0000000..b27fe1d
--- /dev/null
+++ b/security/pinentry-emacs/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= pinentry-emacs
+DISTVERSION= g20171127
+CATEGORIES= security
+
+MAINTAINER= cashmere@autistici.org
+COMMENT= Emacs pinentry helper for GnuPG
+WWW= https://github.com/ecraven/pinentry-emacs
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+RUN_DEPENDS= bash:shells/bash \
+ emacs:editors/emacs \
+ pinentry-curses:security/pinentry-curses
+
+USE_GITHUB= yes
+GH_ACCOUNT= ecraven
+GH_PROJECT= pinentry-emacs
+GH_TAGNAME= b6afcb01c5c43653c8d504309df13e58f8247b06
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+PLIST_FILES= bin/pinentry-emacs
+
+post-patch:
+ @${REINPLACE_CMD} -e '1s|/bin/bash|${LOCALBASE}/bin/bash|' \
+ ${WRKSRC}/pinentry-emacs
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/pinentry-emacs ${STAGEDIR}${PREFIX}/bin/pinentry-emacs
+
+.include <bsd.port.mk>