pkgsrc/security/password-store/Makefile
leot 1ca7c1ee7a password-store: Adjust BASE64 definition as part of fixsh SUBST class
Instead of using a generic `base64' initialize the BASE64 variable in order to
actually use converters/base64 (this was problematic when for example NetBSD
base64(1) was used).

Bump PKGREVISION
2018-09-23 12:39:19 +00:00

55 lines
1.7 KiB
Makefile

# $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
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
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",'
TEST_TARGET= test
.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
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"