summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorNikolai Lifanov <lifanov@FreeBSD.org>2017-07-05 18:21:36 +0000
committerNikolai Lifanov <lifanov@FreeBSD.org>2017-07-05 18:21:36 +0000
commit4875d21b27098940844a587b1918627baf3fb588 (patch)
tree37c821173eb650ce4ec15e27e518e22f40a2161f /sysutils
parentupdate sysutils/terraform to 0.9.11 (diff)
update sysutils/packer to 1.0.2
o update Packer to 1.0.2 o fetch from Hashicorp o switch to USES=go o inline single-entry plist o add LICENSE_FILE o take maintainership Reviewed by: swills Approved by: swills (maintainer) Differential Revision: https://reviews.freebsd.org/D11408
Notes
Notes: svn path=/head/; revision=445091
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/packer/Makefile22
-rw-r--r--sysutils/packer/distinfo6
-rw-r--r--sysutils/packer/pkg-plist1
3 files changed, 10 insertions, 19 deletions
diff --git a/sysutils/packer/Makefile b/sysutils/packer/Makefile
index 023cf464364d..4810389a6a11 100644
--- a/sysutils/packer/Makefile
+++ b/sysutils/packer/Makefile
@@ -1,31 +1,23 @@
# $FreeBSD$
PORTNAME= packer
-PORTVERSION= 1.0.0
+PORTVERSION= 1.0.2
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
-MAINTAINER= swills@FreeBSD.org
+MAINTAINER= lifanov@FreeBSD.org
COMMENT= Tool for creating machine images
LICENSE= MPL
+LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+PLIST_FILES= bin/${PORTNAME}
USE_GITHUB= yes
-GH_ACCOUNT= mitchellh
-GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
+GH_ACCOUNT= hashicorp
-# Make it so that post-extract runs before the GH_SUBDIR targets.
-TARGET_ORDER_OVERRIDE= 680:post-extract
+USES= go
-post-extract:
- @${MV} ${WRKSRC}/vendor/ ${WRKSRC}/src/
-
-do-build:
- @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; ${SETENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
.include <bsd.port.mk>
diff --git a/sysutils/packer/distinfo b/sysutils/packer/distinfo
index 40851bcb175f..8dc7b582ed52 100644
--- a/sysutils/packer/distinfo
+++ b/sysutils/packer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1491500943
-SHA256 (mitchellh-packer-v1.0.0_GH0.tar.gz) = 6458f8f20333ff202cb3ab183867ad08a6cc49479edf48da9e3144c7e9f71dc6
-SIZE (mitchellh-packer-v1.0.0_GH0.tar.gz) = 4095936
+TIMESTAMP = 1498753130
+SHA256 (hashicorp-packer-v1.0.2_GH0.tar.gz) = eecb0a10d2df09d68a48c05ffc7a92a5cd35709244a1c7abab492a1977ca21e4
+SIZE (hashicorp-packer-v1.0.2_GH0.tar.gz) = 4116941
diff --git a/sysutils/packer/pkg-plist b/sysutils/packer/pkg-plist
deleted file mode 100644
index 48b31182de86..000000000000
--- a/sysutils/packer/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-bin/packer