summaryrefslogtreecommitdiffstats
path: root/net/beanstalkd/Makefile
blob: 3854f08916ff1cbd752537d8c365888753436cf8 (plain)
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
36
37
38
39
40
41
42
43
# $FreeBSD$

PORTNAME=	beanstalkd
PORTVERSION=	1.9
DISTVERSIONPREFIX=	v
CATEGORIES=	net

MAINTAINER=	vsevolod@FreeBSD.org
COMMENT=	Fast, distributed, in-memory workqueue service

LICENSE=	MIT

USES=		gmake
USE_GITHUB=	yes
USE_RC_SUBR=	beanstalkd

GH_ACCOUNT=	kr
GH_PROJECT=	beanstalkd

MAKE_ARGS+=	CC="${CC}" CFLAGS="${CFLAGS}"

PLIST_FILES=	bin/beanstalkd man/man1/beanstalkd.1.gz
SUB_LIST+=	RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}

PORTDOCS=	protocol.txt

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/beanstalkd ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
		${STAGEDIR}${MANPREFIX}/man/man1
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
.endfor

test: configure
	@cd ${WRKSRC} && ${MAKE_CMD} ${MAKE_ARGS} check

regression-test: test

.include <bsd.port.mk>
OpenPOWER on IntegriCloud