PORTNAME=	angie-module-auth-totp
MODULE_VERSION=	1.1.0
MODULE_PORTREVISION=	4
GH_TUPLE=	61131:nginx-http-auth-totp:${MODULE_VERSION}:module

COMMENT=	Angie auth-totp dynamic module
WWW=		https://github.com/61131/nginx-http-auth-totp/

LICENSE=	MIT

MASTERDIR=	${.CURDIR}/../../www/angie

do-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR} \
		 ${STAGEDIR}${MODDIR}

	${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_auth_totp_module.so \
	    ${STAGEDIR}${MODDIR}

	${INSTALL_DATA} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR}

do-install-DEBUG-on:
	${INSTALL} ${COPY} -m ${_SHAREMODE} \
	    ${WRKSRC_DEBUG}/objs/ngx_http_auth_totp_module.so \
	    ${STAGEDIR}${MODDIR}/ngx_http_auth_totp_module-debug.so

.include "${MASTERDIR}/Makefile"
