Edit

IABSD.fr/ports/sysutils/consul/Makefile

Branch :

  • Show log

    Commit

  • Author : jasper
    Date : 2017-05-09 17:19:30
    Hash : acd40f83
    Message : set version.Version to ensure the newer version check doesn't fire errorneously ok aja@

  • sysutils/consul/Makefile
  • # $OpenBSD: Makefile,v 1.14 2017/05/09 17:19:30 jasper Exp $
    
    # XXX no i386 equivalent to mem_openbsd_amd64.go
    ONLY_FOR_ARCHS=		amd64
    
    COMMENT=		service discovery and configuration tool
    
    GH_TAGNAME=		v0.8.1
    GH_ACCOUNT=		hashicorp
    GH_PROJECT=		consul
    REVISION=		0
    
    CATEGORIES=		sysutils net
    
    HOMEPAGE=		https://www.consul.io/
    
    MAINTAINER=		Antoine Jacoutot <ajacoutot@openbsd.org>
    
    # MPLv2.0
    PERMIT_PACKAGE_CDROM=	Yes
    
    WANTLIB += c pthread
    
    MODULES=		lang/go
    
    # go/src/github.com/hashicorp/consul/scripts/build.sh
    # go/src/github.com/hashicorp/consul/version/version.go
    MODGO_LDFLAGS +=	-X github.com/hashicorp/consul/version.GitDescribe=${GH_TAGNAME}
    MODGO_LDFLAGS +=	-X github.com/hashicorp/consul/version.Version=${GH_TAGNAME:S/v//}
    MODGO_LDFLAGS +=	-X github.com/hashicorp/consul/version.VersionPrerelease="" # empty
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/consul
    	${SUBST_CMD} -c -m 0640 ${FILESDIR}/config.json.in \
    		${PREFIX}/share/examples/consul/config.json
    
    .include <bsd.port.mk>