30 lines
730 B
Makefile
30 lines
730 B
Makefile
# $NetBSD: Makefile,v 1.36 2021/09/17 13:52:50 bsiegert Exp $
|
|
|
|
DISTNAME= 2fa-1.2.0
|
|
PKGREVISION= 4
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=rsc/}
|
|
GITHUB_TAG= v1.2.0
|
|
GITHUB_PROJECT= 2fa
|
|
|
|
MAINTAINER= bsiegert@NetBSD.org
|
|
HOMEPAGE= ${MASTER_SITE_GITHUB:=rsc/2fa/}
|
|
COMMENT= Command-line client for two-factor authentication
|
|
LICENSE= modified-bsd
|
|
|
|
CHECK_RELRO_SKIP+= bin/2fa
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
pre-configure:
|
|
# Fix build error, invalid vendor/modules.txt.
|
|
${RM} -rf ${WRKSRC}/vendor
|
|
|
|
do-install:
|
|
# gocopy and gopaste are not required to use 2fa.
|
|
${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/2fa ${DESTDIR}${PREFIX}/bin
|
|
|
|
.include "go-modules.mk"
|
|
|
|
.include "../../lang/go/go-module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|