Index: head/security/vault/Makefile =================================================================== --- head/security/vault/Makefile (revision 415583) +++ head/security/vault/Makefile (revision 415584) @@ -1,43 +1,44 @@ # $FreeBSD$ PORTNAME= vault -PORTVERSION= 0.3.0 +PORTVERSION= 0.5.2 DISTVERSIONPREFIX= v CATEGORIES= security MAINTAINER= swills@FreeBSD.org COMMENT= Tool for securely accessing secrets LICENSE= MPL BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go USE_GITHUB= yes GH_ACCOUNT= hashicorp STRIP= # stripping can break go binaries USE_RC_SUBR= vault USERS= vault GROUPS= vault PLIST_FILES= bin/${PORTNAME} -post-extract: - @${MV} ${WRKSRC}/Godeps/_workspace/src ${WRKSRC} +post-patch: + @${MV} ${WRKSRC}/vendor ${WRKSRC}/src @${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} @cd ${WRKSRC} ; \ - ${MV} .gitignore .travis.yml CHANGELOG.md LICENSE Makefile README.md \ - api audit builtin cli command helper http logical main.go main_test.go \ - make.bat physical scripts shamir terraform test vault website \ + ${MV} .gitignore .travis.yml CHANGELOG.md CONTRIBUTING.md Godeps \ + LICENSE Makefile README.md api audit builtin cli command helper http \ + logical main.go main_test.go make.bat physical scripts shamir terraform \ + vault version website \ src/github.com/${GH_ACCOUNT}/${PORTNAME} do-build: @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; \ ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include Index: head/security/vault/distinfo =================================================================== --- head/security/vault/distinfo (revision 415583) +++ head/security/vault/distinfo (revision 415584) @@ -1,2 +1,3 @@ -SHA256 (hashicorp-vault-v0.3.0_GH0.tar.gz) = 9c7d4016d4f6949265072efad41ba24ed7d1029a19bc57ee05b7bcb2a79e227b -SIZE (hashicorp-vault-v0.3.0_GH0.tar.gz) = 1922377 +TIMESTAMP = 1463719469 +SHA256 (hashicorp-vault-v0.5.2_GH0.tar.gz) = f68382963a339d8e078d2b5dae55f4ce45f5637903646d842e1c99dff0108c96 +SIZE (hashicorp-vault-v0.5.2_GH0.tar.gz) = 3590947 Index: head/security/vault/files/patch-helper_mlock_mlock__linux.go =================================================================== --- head/security/vault/files/patch-helper_mlock_mlock__linux.go (nonexistent) +++ head/security/vault/files/patch-helper_mlock_mlock__linux.go (revision 415584) @@ -0,0 +1,17 @@ +--- helper/mlock/mlock_linux.go.orig 2016-03-16 19:48:36 UTC ++++ helper/mlock/mlock_linux.go +@@ -1,14 +0,0 @@ +-// +build linux +- +-package mlock +- +-import "syscall" +- +-func init() { +- supported = true +-} +- +-func lockMemory() error { +- // Mlockall prevents all current and future pages from being swapped out. +- return syscall.Mlockall(syscall.MCL_CURRENT | syscall.MCL_FUTURE) +-} Property changes on: head/security/vault/files/patch-helper_mlock_mlock__linux.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/vault/files/patch-helper_mlock_mlock__solaris.go =================================================================== --- head/security/vault/files/patch-helper_mlock_mlock__solaris.go (nonexistent) +++ head/security/vault/files/patch-helper_mlock_mlock__solaris.go (revision 415584) @@ -0,0 +1,20 @@ +--- helper/mlock/mlock_solaris.go.orig 2016-03-16 19:48:36 UTC ++++ helper/mlock/mlock_solaris.go +@@ -1,17 +0,0 @@ +-// +build solaris +- +-package mlock +- +-import ( +- "syscall" +- "golang.org/x/sys/unix" +-) +- +-func init() { +- supported = true +-} +- +-func lockMemory() error { +- // Mlockall prevents all current and future pages from being swapped out. +- return unix.Mlockall(syscall.MCL_CURRENT | syscall.MCL_FUTURE) +-} Property changes on: head/security/vault/files/patch-helper_mlock_mlock__solaris.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/vault/files/patch-helper_mlock_mlock__unavail.go =================================================================== --- head/security/vault/files/patch-helper_mlock_mlock__unavail.go (nonexistent) +++ head/security/vault/files/patch-helper_mlock_mlock__unavail.go (revision 415584) @@ -0,0 +1,8 @@ +--- helper/mlock/mlock_unavail.go.orig 2016-03-16 19:48:36 UTC ++++ helper/mlock/mlock_unavail.go +@@ -1,4 +1,4 @@ +-// +build windows plan9 darwin freebsd openbsd netbsd ++// +build android nacl plan9 windows + + package mlock + Property changes on: head/security/vault/files/patch-helper_mlock_mlock__unavail.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/vault/files/patch-helper_mlock_mlock__unix.go =================================================================== --- head/security/vault/files/patch-helper_mlock_mlock__unix.go (nonexistent) +++ head/security/vault/files/patch-helper_mlock_mlock__unix.go (revision 415584) @@ -0,0 +1,21 @@ +--- helper/mlock/mlock_unix.go.orig 2016-04-11 17:33:59 UTC ++++ helper/mlock/mlock_unix.go +@@ -0,0 +1,18 @@ ++// +build darwin dragonfly freebsd linux netbsd openbsd solaris ++ ++package mlock ++ ++import ( ++ "syscall" ++ ++ "golang.org/x/sys/unix" ++) ++ ++func init() { ++ supported = true ++} ++ ++func lockMemory() error { ++ // Mlockall prevents all current and future pages from being swapped out. ++ return unix.Mlockall(syscall.MCL_CURRENT | syscall.MCL_FUTURE) ++} Property changes on: head/security/vault/files/patch-helper_mlock_mlock__unix.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property