summaryrefslogtreecommitdiff
path: root/dns/lua-resty-dns/Makefile
blob: e7a9088f87b74451145c636dcafc5a9ee84620cc (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
PORTNAME=	lua-resty-dns
DISTVERSIONPREFIX=v
DISTVERSION=	0.22
CATEGORIES=	dns www

MAINTAINER=	mm@FreeBSD.org
COMMENT=	Lua DNS resolver for ngx_lua
WWW=		https://github.com/openresty/lua-resty-dns

LICENSE=	BSD2CLAUSE

RUN_DEPENDS=	luajit-openresty>=2.1:lang/luajit-openresty

USE_GITHUB=	yes
GH_ACCOUNT=	openresty

NO_ARCH=	yes
NO_BUILD=	yes

LUA_MODSHAREDIR=${LOCALBASE}/share/lua/5.1

PLIST_FILES=	${LUA_MODSHAREDIR}/resty/dns/resolver.lua

PORTDOCS=	README.markdown

DOCSDIR=	${PREFIX}/share/doc/lua${LUA_VER_STR}/${PORTNAME}

OPTIONS_DEFINE=	DOCS

do-install:
	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}/resty/dns
	${INSTALL_DATA} ${WRKSRC}/lib/resty/dns/resolver.lua ${STAGEDIR}${LUA_MODSHAREDIR}/resty/dns

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>