freebsd-ports/net/gnatsd/Makefile
2016-12-16 08:50:56 +00:00

28 lines
639 B
Makefile

# $FreeBSD$
PORTNAME= gnatsd
PORTVERSION= 0.9.6
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Messaging system written in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
GO_PKGNAME= github.com/nats-io/gnatsd
USE_GITHUB= yes
GH_ACCOUNT= nats-io
USE_RC_SUBR= gnatsd.sh
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc
${INSTALL_SCRIPT} ${FILESDIR}/gnatsd.conf ${STAGEDIR}${PREFIX}/etc/gnatsd.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/server && ${COPYTREE_SHARE} configs ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>