Added 3rd-party FIPS status check dynamic module.
diff --git a/alpine/Makefile.module-fips-check b/alpine/Makefile.module-fips-check new file mode 100644 index 0000000..24ea085 --- /dev/null +++ b/alpine/Makefile.module-fips-check
@@ -0,0 +1,38 @@ +MODULES+= fips-check + +MODULE_SUMMARY_fips_check= 3rd-party FIPS status check dynamic module + +include $(CONTRIB)/src/nginx-fips-check-module/version + +MODULE_VERSION_fips_check= $(NGINX_FIPS_CHECK_MODULE_VERSION) +MODULE_RELEASE_fips_check= 1 + +MODULE_VERSION_PREFIX_fips_check=$(MODULE_TARGET_PREFIX) + +MODULE_SOURCES_fips_check= nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz + +MODULE_CONFARGS_fips_check= --add-dynamic-module=$(MODSRC_PREFIX)nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION) + +.deps-module-fips-check: + cd $(CONTRIB) && make .sum-nginx-fips-check-module + touch $@ + +prerequisites-for-module-fips-check: + +define MODULE_POST_fips_check +cat <<BANNER +---------------------------------------------------------------------- + +The $(MODULE_SUMMARY_fips_check) for $(MODULE_SUMMARY_PREFIX) has been installed. +To enable this module, add the following to /etc/nginx/nginx.conf +and reload nginx: + + load_module modules/ngx_fips_check_module.so; + +Please refer to the module documentation for further details: +https://github.com/ogarrett/nginx-fips-check-module + +---------------------------------------------------------------------- +BANNER +endef +export MODULE_POST_fips_check
diff --git a/contrib/src/nginx-fips-check-module/Makefile b/contrib/src/nginx-fips-check-module/Makefile new file mode 100644 index 0000000..d86f1f9 --- /dev/null +++ b/contrib/src/nginx-fips-check-module/Makefile
@@ -0,0 +1,18 @@ +# nginx-fips-check-module + +include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version +NGINX_FIPS_CHECK_MODULE_URL := $(GITHUB)/ogarrett/nginx-fips-check-module/archive/v$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz + +PKGS += nginx-fips-check-module + +$(TARBALLS)/nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz: + $(call download_pkg,$(NGINX_FIPS_CHECK_MODULE_URL),nginx-fips-check-module) + +.sum-nginx-fips-check-module: nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz + +nginx-fips-check-module: nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz .sum-nginx-fips-check-module + $(UNPACK) + $(MOVE) + +.nginx-fips-check-module: nginx-fips-check-module + touch $@
diff --git a/contrib/src/nginx-fips-check-module/SHA512SUMS b/contrib/src/nginx-fips-check-module/SHA512SUMS new file mode 100644 index 0000000..a169a84 --- /dev/null +++ b/contrib/src/nginx-fips-check-module/SHA512SUMS
@@ -0,0 +1 @@ +6d85719943247f2dd2f3f66088b59cb7d45bf5e3c59d78a06a23698e1d494433f7772e4a7b5231c0efecc6c2bbe9fd2254d7ef498e6cfda35e2c5d0f01df7e9f nginx-fips-check-module-0.1.tar.gz
diff --git a/contrib/src/nginx-fips-check-module/version b/contrib/src/nginx-fips-check-module/version new file mode 100644 index 0000000..77f6fb5 --- /dev/null +++ b/contrib/src/nginx-fips-check-module/version
@@ -0,0 +1 @@ +NGINX_FIPS_CHECK_MODULE_VERSION := 0.1
diff --git a/debian/Makefile.module-fips-check b/debian/Makefile.module-fips-check new file mode 100644 index 0000000..819d222 --- /dev/null +++ b/debian/Makefile.module-fips-check
@@ -0,0 +1,36 @@ +MODULES+= fips-check + +MODULE_SUMMARY_fips_check= 3rd-party FIPS status check dynamic module + +include $(CONTRIB)/src/nginx-fips-check-module/version + +MODULE_VERSION_fips_check= $(NGINX_FIPS_CHECK_MODULE_VERSION) +MODULE_RELEASE_fips_check= 1 + +MODULE_VERSION_PREFIX_fips_check=$(MODULE_TARGET_PREFIX) + +MODULE_SOURCES_fips_check= nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz + +MODULE_CONFARGS_fips_check= --add-dynamic-module=$(MODSRC_PREFIX)nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION) + +.deps-module-fips-check: + cd $(CONTRIB) && make .sum-nginx-fips-check-module + touch $@ + +define MODULE_POST_fips_check +cat <<BANNER +---------------------------------------------------------------------- + +The $(MODULE_SUMMARY_fips_check) for $(MODULE_SUMMARY_PREFIX) has been installed. +To enable this module, add the following to /etc/nginx/nginx.conf +and reload nginx: + + load_module modules/ngx_fips_check_module.so; + +Please refer to the module documentation for further details: +https://github.com/ogarrett/nginx-fips-check-module + +---------------------------------------------------------------------- +BANNER +endef +export MODULE_POST_fips_check
diff --git a/docs/nginx-module-fips-check.copyright b/docs/nginx-module-fips-check.copyright new file mode 100644 index 0000000..5c8e10e --- /dev/null +++ b/docs/nginx-module-fips-check.copyright
@@ -0,0 +1,15 @@ + NGINX FIPS Check module. + + Copyright 2019-2020 Owen Garrett + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License.
diff --git a/docs/nginx-module-fips-check.xml b/docs/nginx-module-fips-check.xml new file mode 100644 index 0000000..4ff1fe3 --- /dev/null +++ b/docs/nginx-module-fips-check.xml
@@ -0,0 +1,21 @@ +<?xml version="1.0" ?> +<!DOCTYPE change_log SYSTEM "changes.dtd" > + + +<change_log title="nginx_module_fips_check"> + + +<changes apply="nginx-module-fips-check" ver="0.1" rev="1" basever="1.19.6" + date="2021-01-11" time="10:00:00 +0300" + packager="Andrei Belov <defanator@gmail.com>"> + +<change> +<para> +Initial release of FIPS status check nginx module package. +</para> +</change> + +</changes> + + +</change_log>
diff --git a/rpm/SPECS/Makefile.module-fips-check b/rpm/SPECS/Makefile.module-fips-check new file mode 100644 index 0000000..17b9cb5 --- /dev/null +++ b/rpm/SPECS/Makefile.module-fips-check
@@ -0,0 +1,36 @@ +MODULES+= fips-check + +MODULE_SUMMARY_fips_check= 3rd-party FIPS status check dynamic module + +include $(CONTRIB)/src/nginx-fips-check-module/version + +MODULE_VERSION_fips_check= $(NGINX_FIPS_CHECK_MODULE_VERSION) +MODULE_RELEASE_fips_check= 1 + +MODULE_VERSION_PREFIX_fips_check=$(MODULE_TARGET_PREFIX) + +MODULE_SOURCES_fips_check= nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION).tar.gz + +MODULE_CONFARGS_fips_check= --add-dynamic-module=nginx-fips-check-module-$(NGINX_FIPS_CHECK_MODULE_VERSION) + +.deps-module-fips-check: + cd $(CONTRIB) && make .sum-nginx-fips-check-module + touch $@ + +define MODULE_POST_fips_check +cat <<BANNER +---------------------------------------------------------------------- + +The $(MODULE_SUMMARY_fips_check) for $(MODULE_SUMMARY_PREFIX) has been installed. +To enable this module, add the following to /etc/nginx/nginx.conf +and reload nginx: + + load_module modules/ngx_fips_check_module.so; + +Please refer to the module documentation for further details: +https://github.com/ogarrett/nginx-fips-check-module + +---------------------------------------------------------------------- +BANNER +endef +export MODULE_POST_fips_check