summaryrefslogtreecommitdiff
path: root/sysutils/paladin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/paladin/Makefile')
-rw-r--r--sysutils/paladin/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysutils/paladin/Makefile b/sysutils/paladin/Makefile
index d89d7e0a72dc..bbe359db494b 100644
--- a/sysutils/paladin/Makefile
+++ b/sysutils/paladin/Makefile
@@ -1,6 +1,6 @@
PORTNAME= paladin
PORTVERSION= 2.0.1
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= sysutils
MAINTAINER= rwestlun@gmail.com
@@ -12,10 +12,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
-GO_BUILDFLAGS= -ldflags="-X main.localbase=/usr/local"
+GO_BUILDFLAGS= -ldflags="-X main.localbase=${PREFIX}"
USE_GITHUB= yes
GH_ACCOUNT= rwestlund
+GH_TUPLE= golang:sys:v0.5.0:sys/vendor/golang.org/x/sys_
+
+pre-patch:
+ ${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+ ${MV} ${WRKSRC}/vendor/golang.org/x/sys_ ${WRKSRC}/vendor/golang.org/x/sys
post-install:
@${CP} ${WRKSRC}/etc/paladin.conf.sample ${STAGEDIR}/${LOCALBASE}/etc/