pkgsrc/security/password-store/Makefile

56 lines
1.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2018/09/23 12:39:19 leot Exp $
DISTNAME= password-store-1.7.3
PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://git.zx2c4.com/password-store/snapshot/
EXTRACT_SUFX= .tar.xz
MAINTAINER= imil@NetBSD.org
2017-09-03 10:53:04 +02:00
HOMEPAGE= https://www.passwordstore.org/
COMMENT= Standard UNIX password manager
LICENSE= gnu-gpl-v2
USE_LANGUAGES= # none
NO_BUILD= yes
USE_TOOLS+= gmake pax bash:run
DEPENDS+= getopt>=1.1.6:../../misc/getopt
DEPENDS+= gnupg2>=2.0.26:../../security/gnupg2
DEPENDS+= tree>=1.7.0:../../sysutils/tree
EGDIR= share/examples/password-store
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
INSTALLATION_DIRS+= ${EGDIR}/contrib ${EGDIR}/completion
REPLACE_BASH+= src/password-store.sh
password-store: Update security/password-store to 1.7.1 pkgsrc changes: - Rename `xclip' PKG_OPTION to `x11' (and add a PKG_OPTIONS_LEGACY_OPTS accordingly) and also depends on converters/base64 (needed by the `--clip' option, like xclip) and qrencode (needed by the new `--qrcode' option). - Add support for `test' target and adjust the part of the test suite for gnupg>=2.2.5 via patches/patch-tests_t0300-reencryption.sh. - sysutils/pwgen is no more needed, remove it from DEPENDS (now `tr -dc '<characters>' < /dev/urandom' is used instead) - Add patches/patch-contrib_dmenu_passmenu to fix `passmenu --type' (at least xdotool-2.20110530.1 does not support any `--file' option used by passmenu) - Adjust PAX invocations in `do-install' target to ignore possible `*.orig' and `.gitignore' files. Changes 1.7.1 ----- == Bug Fixes == * Fix test suite on OS X * Add compatibility with GnuPG 2.2.19 * Uniformly use the $GPG variable * Do the correct thing with subkeys when reencrypting 1.7 --- == New Features == * Extensions: pass can now load user-defined extensions from a system directory or a user directory. There's already a nice ecosystem of extensions being built, even at this early stage. See the pass man page for more information. * Signatures: there is now an option to enforce signatures of the .gpg-id file and extensions using an environment variable. * QRCodes: generate and show have now learned the --qrcode/-q switch. Note to package maintainers: this adds a dependency on the popular qrencode package. * Password generation: rather than use pwgen, we now use /dev/urandom more directly, which results in more assured password security, as well as customizable character sets, via an environment variable. See the pass man page for more information on this customization. Package maintainers: you may now drop the dependency on pwgen. * Importers: there now are several more importers. More and more folks are moving to pass! * Selectable clipping: you can now specify which line you wish to copy to the clipboard or display with a qrcode when using -c or -q. * Git discovery: The PASSWORD_STORE_GIT environment variable has been removed, and instead pass will automatically choose the git repository closest to the file being modified (but not out of the actual password store itself). This should help people who like to nest git repos for different organizations. * Bug fixes: too many to count. == Note To Distros == * Drop the dependency of pwgen. * Add the dependency of qrencode. * The Makefile now does the right thing with DESTDIR, so you might want to double check that your package recipe does the right thing. * The semantics for auto-detection of bash completion has changed, with new environment variables for such things. See INSTALL for details.
2018-05-06 13:56:58 +02:00
REPLACE_BASH+= tests/*.sh
SUBST_CLASSES+= fixsh
SUBST_STAGE.fixsh= pre-configure
SUBST_MESSAGE.fixsh= Fixing shell script
SUBST_FILES.fixsh= src/password-store.sh
SUBST_SED.fixsh+= -e 's,GETOPT="getopt",GETOPT="${PREFIX}/bin/getopt",'
SUBST_SED.fixsh+= -e "s,SHRED=\"shred -f -z\",SHRED=\"${RM} -f -P\","
SUBST_SED.fixsh+= -e 's,BASE64="base64",BASE64="${PREFIX}/bin/base64",'
password-store: Update security/password-store to 1.7.1 pkgsrc changes: - Rename `xclip' PKG_OPTION to `x11' (and add a PKG_OPTIONS_LEGACY_OPTS accordingly) and also depends on converters/base64 (needed by the `--clip' option, like xclip) and qrencode (needed by the new `--qrcode' option). - Add support for `test' target and adjust the part of the test suite for gnupg>=2.2.5 via patches/patch-tests_t0300-reencryption.sh. - sysutils/pwgen is no more needed, remove it from DEPENDS (now `tr -dc '<characters>' < /dev/urandom' is used instead) - Add patches/patch-contrib_dmenu_passmenu to fix `passmenu --type' (at least xdotool-2.20110530.1 does not support any `--file' option used by passmenu) - Adjust PAX invocations in `do-install' target to ignore possible `*.orig' and `.gitignore' files. Changes 1.7.1 ----- == Bug Fixes == * Fix test suite on OS X * Add compatibility with GnuPG 2.2.19 * Uniformly use the $GPG variable * Do the correct thing with subkeys when reencrypting 1.7 --- == New Features == * Extensions: pass can now load user-defined extensions from a system directory or a user directory. There's already a nice ecosystem of extensions being built, even at this early stage. See the pass man page for more information. * Signatures: there is now an option to enforce signatures of the .gpg-id file and extensions using an environment variable. * QRCodes: generate and show have now learned the --qrcode/-q switch. Note to package maintainers: this adds a dependency on the popular qrencode package. * Password generation: rather than use pwgen, we now use /dev/urandom more directly, which results in more assured password security, as well as customizable character sets, via an environment variable. See the pass man page for more information on this customization. Package maintainers: you may now drop the dependency on pwgen. * Importers: there now are several more importers. More and more folks are moving to pass! * Selectable clipping: you can now specify which line you wish to copy to the clipboard or display with a qrcode when using -c or -q. * Git discovery: The PASSWORD_STORE_GIT environment variable has been removed, and instead pass will automatically choose the git repository closest to the file being modified (but not out of the actual password store itself). This should help people who like to nest git repos for different organizations. * Bug fixes: too many to count. == Note To Distros == * Drop the dependency of pwgen. * Add the dependency of qrencode. * The Makefile now does the right thing with DESTDIR, so you might want to double check that your package recipe does the right thing. * The semantics for auto-detection of bash completion has changed, with new environment variables for such things. See INSTALL for details.
2018-05-06 13:56:58 +02:00
TEST_TARGET= test
2015-01-05 12:32:49 +01:00
.include "options.mk"
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/password-store.sh \
${DESTDIR}${PREFIX}/bin/pass
${INSTALL_SCRIPT} ${WRKSRC}/man/example-filter.sh \
${DESTDIR}${PREFIX}/${EGDIR}
${INSTALL_MAN} ${WRKSRC}/man/pass.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pass.1
password-store: Update security/password-store to 1.7.1 pkgsrc changes: - Rename `xclip' PKG_OPTION to `x11' (and add a PKG_OPTIONS_LEGACY_OPTS accordingly) and also depends on converters/base64 (needed by the `--clip' option, like xclip) and qrencode (needed by the new `--qrcode' option). - Add support for `test' target and adjust the part of the test suite for gnupg>=2.2.5 via patches/patch-tests_t0300-reencryption.sh. - sysutils/pwgen is no more needed, remove it from DEPENDS (now `tr -dc '<characters>' < /dev/urandom' is used instead) - Add patches/patch-contrib_dmenu_passmenu to fix `passmenu --type' (at least xdotool-2.20110530.1 does not support any `--file' option used by passmenu) - Adjust PAX invocations in `do-install' target to ignore possible `*.orig' and `.gitignore' files. Changes 1.7.1 ----- == Bug Fixes == * Fix test suite on OS X * Add compatibility with GnuPG 2.2.19 * Uniformly use the $GPG variable * Do the correct thing with subkeys when reencrypting 1.7 --- == New Features == * Extensions: pass can now load user-defined extensions from a system directory or a user directory. There's already a nice ecosystem of extensions being built, even at this early stage. See the pass man page for more information. * Signatures: there is now an option to enforce signatures of the .gpg-id file and extensions using an environment variable. * QRCodes: generate and show have now learned the --qrcode/-q switch. Note to package maintainers: this adds a dependency on the popular qrencode package. * Password generation: rather than use pwgen, we now use /dev/urandom more directly, which results in more assured password security, as well as customizable character sets, via an environment variable. See the pass man page for more information on this customization. Package maintainers: you may now drop the dependency on pwgen. * Importers: there now are several more importers. More and more folks are moving to pass! * Selectable clipping: you can now specify which line you wish to copy to the clipboard or display with a qrcode when using -c or -q. * Git discovery: The PASSWORD_STORE_GIT environment variable has been removed, and instead pass will automatically choose the git repository closest to the file being modified (but not out of the actual password store itself). This should help people who like to nest git repos for different organizations. * Bug fixes: too many to count. == Note To Distros == * Drop the dependency of pwgen. * Add the dependency of qrencode. * The Makefile now does the right thing with DESTDIR, so you might want to double check that your package recipe does the right thing. * The semantics for auto-detection of bash completion has changed, with new environment variables for such things. See INSTALL for details.
2018-05-06 13:56:58 +02:00
cd ${WRKSRC}/contrib && \
${PAX} -wr * -s',.*\.orig$$,,' -s',.*\.gitignore$$,,' \
${DESTDIR}${PREFIX}/${EGDIR}/contrib
cd ${WRKSRC}/src/completion && \
${PAX} -wr * -s',.*\.orig$$,,' -s',.*\.gitignore$$,,' \
${DESTDIR}${PREFIX}/${EGDIR}/completion
.include "../../mk/bsd.pkg.mk"