aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cbsd-mq-router/Makefile
blob: 119d4d5a61593a4befd81af05cfe7a4043a39a6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

PORTNAME=	cbsd-mq-router
PORTVERSION=	0.2
CATEGORIES=	sysutils

MAINTAINER=	olevole@olevole.ru
COMMENT=	CBSD message queue router

LICENSE=	BSD2CLAUSE

RUN_DEPENDS=	beanstalkd:net/beanstalkd

USES=		go

USE_GITHUB=	yes
GH_ACCOUNT=	cbsd
GH_PROJECT=	cbsd-mq-router
USE_RC_SUBR=	cbsd-mq-router

PLIST_FILES=	bin/cbsd-mq-router "@sample etc/cbsd-mq-router.json.sample"

GH_TUPLE=	beanstalkd:go-beanstalk:3bed00be7a17:beanstalkd/src/github.com/beanstalkd/go-beanstalk \
		golang:crypto:5ea612d1eb83:golang_crypto/vendor/golang.org/x/crypto \
		golang:term:6a3ed077a48d:golang_term/vendor/golang.org/x/term \
		golang:sys:9a76102bfb43:golang_sys/vendor/golang.org/x/sys

post-extract:
	${LN} -sf ${WRKSRC}/src ${WRKDIR}
	${LN} -sf ${WRKSRC} ${WRKDIR}/src/${PORTNAME}

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/cbsd-mq-router
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${GH_TAGNAME}/etc/cbsd-mq-router.json ${STAGEDIR}${PREFIX}/etc/cbsd-mq-router.json.sample

.include <bsd.port.mk>