pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/vault



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Tue Feb 27 12:32:35 UTC 2018

Modified Files:
        pkgsrc/security/vault: Makefile

Log Message:
security/vault: Simplify Makefile, enable a basic test target.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/security/vault/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/vault/Makefile
diff -u pkgsrc/security/vault/Makefile:1.22 pkgsrc/security/vault/Makefile:1.23
--- pkgsrc/security/vault/Makefile:1.22 Tue Feb 27 11:20:42 2018
+++ pkgsrc/security/vault/Makefile      Tue Feb 27 12:32:35 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2018/02/27 11:20:42 fhajny Exp $
+# $NetBSD: Makefile,v 1.23 2018/02/27 12:32:35 fhajny Exp $
 
 DISTNAME=      vault-0.9.5
 CATEGORIES=    security
@@ -16,15 +16,13 @@ GO_SRCPATH= github.com/hashicorp/vault
 
 USE_TOOLS+=            bash gmake
 
-MAKE_ENV+=             GOPATH=${WRKDIR}:${PREFIX}/gopkg
-
 INSTALLATION_DIRS+=    bin
 
-do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} go build -o bin/vault
-
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/bin/vault ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKDIR}/bin/vault ${DESTDIR}${PREFIX}/bin
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg go test -v ./vault
 
 .include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index