freebsd-ports/security/py-pass-audit/Makefile
Tobias Kortkamp 32264f9d41 security/py-pass-audit: Replace python3 with ${PYTHON_CMD} in audit.bash
PR:		235510
Submitted by:	maintainer
2019-02-05 07:42:19 +00:00

46 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= pass-audit
PORTVERSION= 1.0.1
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://github.com/roddhjav/${PORTNAME}/releases/download/v${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= tobias.rehbein@web.de
COMMENT= Extension to audit your password-store password repository
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zxcvbn>0:security/py-zxcvbn@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zxcvbn>0:security/py-zxcvbn@${PY_FLAVOR} \
password-store>=1.7.3_1:sysutils/password-store
USES= python:3.4+ shebangfix
USE_PYTHON= distutils
NO_ARCH= yes
NO_BUILD= yes
SHEBANG_FILES= ${WRKSRC}/pass_audit.py
post-patch:
@${REINPLACE_CMD} -e 's:\<python3\>:${PYTHON_CMD}:g' ${WRKSRC}/audit.bash
pre-install:
${INSTALL_MAN} ${WRKSRC}/pass-audit.1 \
${STAGEDIR}${MANPREFIX}/man/man1/pass-audit.1
@${MKDIR} ${STAGEDIR}${LOCALBASE}/libexec/password-store/extensions
${INSTALL_SCRIPT} ${WRKSRC}/audit.bash \
${STAGEDIR}${LOCALBASE}/libexec/password-store/extensions/audit.bash
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/completion/pass-audit.bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/pass-audit
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/completion/pass-audit.zsh \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_pass-audit
.include <bsd.port.mk>