diff options
author | jym <jym> | 2017-05-31 12:19:16 +0000 |
---|---|---|
committer | jym <jym> | 2017-05-31 12:19:16 +0000 |
commit | c82ec343fbc49ff10293f2016024af17342a9bf3 (patch) | |
tree | f8ea3c92759cf51805f78079d00a64c573bcc6ae /security/pinentry-mac | |
parent | 024b3a4d841a233173208c542347fa8d238095a1 (diff) | |
download | pkgsrc-c82ec343fbc49ff10293f2016024af17342a9bf3.tar.gz |
Initial import of pinentry-mac, version 0.9.4.
This is a Darwin-ported pinentry, which works natively without
pulling in gtk or qt4 dependencies. It is independent from the
original collection of pinentry tools, and grew its own code and
repository, although it still uses Assuan protocol internally (and
can therefore be integrated with gpg-agent and enigmail under Mac OS).
Note that it uses xcodebuild instead of autotools and generates an App.
I decided to copy over the .app as under libexec and rely on sh script
for invocation, App cannot be called through symlinks.
Description:
This is a collection of simple PIN or passphrase entry dialogs which
utilize the Assuan protocol as described by the aegypten project.
It provides programs for several graphical toolkits, such as GTK+ and
QT, as well as for the console, using curses.
This package is a port of the pinentry tool for Darwin.
Diffstat (limited to 'security/pinentry-mac')
-rw-r--r-- | security/pinentry-mac/DESCR | 5 | ||||
-rw-r--r-- | security/pinentry-mac/Makefile | 38 | ||||
-rw-r--r-- | security/pinentry-mac/PLIST | 10 | ||||
-rw-r--r-- | security/pinentry-mac/distinfo | 6 | ||||
-rw-r--r-- | security/pinentry-mac/files/pinentry-mac.sh | 3 |
5 files changed, 62 insertions, 0 deletions
diff --git a/security/pinentry-mac/DESCR b/security/pinentry-mac/DESCR new file mode 100644 index 00000000000..b812724beae --- /dev/null +++ b/security/pinentry-mac/DESCR @@ -0,0 +1,5 @@ +This is a collection of simple PIN or passphrase entry dialogs which +utilize the Assuan protocol as described by the aegypten project. +It provides programs for several graphical toolkits, such as GTK+ and +QT, as well as for the console, using curses. +This package is a port of the pinentry tool for Darwin. diff --git a/security/pinentry-mac/Makefile b/security/pinentry-mac/Makefile new file mode 100644 index 00000000000..b9d6a695b33 --- /dev/null +++ b/security/pinentry-mac/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1 2017/05/31 12:19:16 jym Exp $ + +DISTNAME= pinentry-mac-${PINENTRY_VERSION} +MASTER_SITES= ${MASTER_SITE_GITHUB:=GPGTools/} +PINENTRY_VERSION=0.9.4 +GITHUB_TAG= v${PKGVERSION_NOREV} +EXTRACT_SUFX= .zip + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/GPGTools/pinentry-mac/ +COMMENT= Application for entering PINs or Passphrases under Mac OS +LICENSE= gnu-gpl-v3 +CATEGORIES= security + +ONLY_FOR_PLATFORM=Darwin-*-* +USE_TOOLS= pax + +PINENTRY_APP_DIR= ${PREFIX}/libexec/${PINENTRY_APP_NAME} +PINENTRY_APP_NAME= pinentry-mac.app +INSTALLATION_DIRS= bin + +FILES_SUBST+= PINENTRY_APP_DIR=${PINENTRY_APP_DIR:Q} + +SUBST_CLASSES+= pinentry-mac-sh +SUBST_STAGE.pinentry-mac-sh= pre-configure +SUBST_FILES.pinentry-mac-sh+= ${WRKDIR}/pinentry-mac.sh +SUBST_VARS.pinentry-mac-sh+= PINENTRY_APP_DIR +SUBST_MESSAGE.pinentry-mac-sh= Set path to the pinentry-mac .app directory. + +post-extract: + ${CP} ${FILESDIR}/pinentry-mac.sh ${WRKDIR} + +do-install: + ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PINENTRY_APP_DIR} + cd ${WRKSRC}/build/Release/${PINENTRY_APP_NAME} && pax -rwpam . ${DESTDIR}${PINENTRY_APP_DIR} + ${INSTALL_SCRIPT} ${WRKDIR}/pinentry-mac.sh ${DESTDIR}${PREFIX}/bin/pinentry-mac + +.include "../../mk/bsd.pkg.mk" diff --git a/security/pinentry-mac/PLIST b/security/pinentry-mac/PLIST new file mode 100644 index 00000000000..d3d6dda71d0 --- /dev/null +++ b/security/pinentry-mac/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1 2017/05/31 12:19:16 jym Exp $ +bin/pinentry-mac +libexec/pinentry-mac.app/Contents/Info.plist +libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac +libexec/pinentry-mac.app/Contents/PkgInfo +libexec/pinentry-mac.app/Contents/Resources/COPYING +libexec/pinentry-mac.app/Contents/Resources/English.lproj/Pinentry.nib +libexec/pinentry-mac.app/Contents/Resources/German.lproj/Pinentry.nib +libexec/pinentry-mac.app/Contents/Resources/Icon.icns +libexec/pinentry-mac.app/Contents/Resources/Main.nib diff --git a/security/pinentry-mac/distinfo b/security/pinentry-mac/distinfo new file mode 100644 index 00000000000..88aa3407fee --- /dev/null +++ b/security/pinentry-mac/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/05/31 12:19:16 jym Exp $ + +SHA1 (pinentry-mac-0.9.4.zip) = da2a909ec45e74ad1a6ff2fad34b34e3dcdb8f32 +RMD160 (pinentry-mac-0.9.4.zip) = 9b2e4dc378ebec9f314e1706a5d3d9a358f0e4b2 +SHA512 (pinentry-mac-0.9.4.zip) = 6eaba116eb248a2b444e131c9f9f56f91c028783e37e5b600763f1c02b9162495a557517dfb96883cf4d22d8582907e4615d3491fc8aadaf85eee8b4464067bf +Size (pinentry-mac-0.9.4.zip) = 312871 bytes diff --git a/security/pinentry-mac/files/pinentry-mac.sh b/security/pinentry-mac/files/pinentry-mac.sh new file mode 100644 index 00000000000..b66e11ad4d9 --- /dev/null +++ b/security/pinentry-mac/files/pinentry-mac.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +open '@PINENTRY_APP_DIR@' $@ |