summaryrefslogtreecommitdiff
path: root/www/angie-module-auth-totp
diff options
context:
space:
mode:
Diffstat (limited to 'www/angie-module-auth-totp')
-rw-r--r--www/angie-module-auth-totp/Makefile22
-rw-r--r--www/angie-module-auth-totp/files/pkg-message.in15
-rw-r--r--www/angie-module-auth-totp/pkg-descr10
-rw-r--r--www/angie-module-auth-totp/pkg-plist3
4 files changed, 50 insertions, 0 deletions
diff --git a/www/angie-module-auth-totp/Makefile b/www/angie-module-auth-totp/Makefile
new file mode 100644
index 000000000000..702a9ba40684
--- /dev/null
+++ b/www/angie-module-auth-totp/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= angie-module-auth-totp
+GH_TUPLE= 61131:nginx-http-auth-totp:1.1.0:module
+
+COMMENT= Angie auth-totp dynamic module
+
+MASTERDIR= ${.CURDIR}/../../www/angie
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${MODDIR}
+
+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_auth_totp_module.so \
+ ${STAGEDIR}${MODDIR}
+
+ ${INSTALL_MAN} ${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"
diff --git a/www/angie-module-auth-totp/files/pkg-message.in b/www/angie-module-auth-totp/files/pkg-message.in
new file mode 100644
index 000000000000..d27210fefe57
--- /dev/null
+++ b/www/angie-module-auth-totp/files/pkg-message.in
@@ -0,0 +1,15 @@
+[
+{ type: install
+ message: <<EOM
+
+The auth-TOTP dynamic module for Angie has been installed.
+To enable this module, add the following to %%PREFIX%%/etc/angie/angie.conf
+and reload angie:
+
+ load_module modules/ngx_http_auth_totp_module.so;
+
+Please refer to the module documentation for further details:
+https://github.com/61131/nginx-http-auth-totp
+EOM
+}
+]
diff --git a/www/angie-module-auth-totp/pkg-descr b/www/angie-module-auth-totp/pkg-descr
new file mode 100644
index 000000000000..085449b89d4b
--- /dev/null
+++ b/www/angie-module-auth-totp/pkg-descr
@@ -0,0 +1,10 @@
+Time-based one-time password (TOTP) authentication for Angie.
+
+The Time-based One-Time Password (TOTP) algorithm, provides a secure mechanism
+for short-lived one-time password values, which are desirable for enhanced
+security. This algorithm can be used across a wide range of network applications
+ranging from remote Virtual Private Network (VPN) access, Wi-Fi network logon to
+transaction-orientated Web applications.
+
+The nginx-http-auth-totp module provides TOTP authentication for an Angie
+server.
diff --git a/www/angie-module-auth-totp/pkg-plist b/www/angie-module-auth-totp/pkg-plist
new file mode 100644
index 000000000000..4dbb43b2a133
--- /dev/null
+++ b/www/angie-module-auth-totp/pkg-plist
@@ -0,0 +1,3 @@
+%%DOCSDIR%%/README.md
+%%MODDIR%%/ngx_http_auth_totp_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_auth_totp_module-debug.so