mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
d84aa50743
Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D21854
35 lines
802 B
Makefile
35 lines
802 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= carbon-relay-ng
|
|
DISTVERSION= 0.10.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= a.andersson.thn@gmail.com
|
|
COMMENT= Go implementation of carbonapi
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= go-bindata:devel/go-bindata
|
|
|
|
USES= gmake go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= graphite-ng
|
|
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
GO_TARGET= ./cmd/${PORTNAME}
|
|
|
|
USERS= carbon
|
|
GROUPS= carbon
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}/${PREFIX}/etc/carbon-relay-ng
|
|
@${MKDIR} ${STAGEDIR}/var/run/carbon-relay-ng
|
|
@${MKDIR} ${STAGEDIR}/var/run/carbon-relay-ng/spool
|
|
${INSTALL_DATA} ${WRKSRC}/examples/carbon-relay-ng.ini ${STAGEDIR}${PREFIX}/etc/carbon-relay-ng/carbon-relay-ng.ini.sample
|
|
|
|
.include <bsd.port.mk>
|