From c0ae166cc30c01b96147b6bc3d0cda708f5cdfb7 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Wed, 20 Dec 2017 14:36:29 -0300 Subject: [PATCH] Updates the CHANGES files --- CHANGES | 7 ++++--- release.sh | 20 ++++++++++++++++++++ src/ngx_http_modsecurity_common.h | 28 ++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) create mode 100755 release.sh diff --git a/CHANGES b/CHANGES index a669e53..a1ba664 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ -DD mmm YYYY - 1.0.0 + +v1.0.0 - 2017-Dec-20 -------------------- - * First version of the ModSecurity-nginx - [Felipe Zimmerle] + - First version of ModSecurity-nginx connector + diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..6b6e0a3 --- /dev/null +++ b/release.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +git clean -xfdi +git submodule foreach --recursive git clean -xfdi + +VERSION=`git describe --tags` +DIR_NAME="modsecurity-nginx-$VERSION" +TAR_NAME="modsecurity-nginx-$VERSION.tar.gz" + +MY_DIR=${PWD##*/} + +cd .. +tar --transform "s/^$MY_DIR/$DIR_NAME/" -cvzf $TAR_NAME --exclude .git $MY_DIR + +sha256sum $TAR_NAME > $TAR_NAME.sha256 +gpg --detach-sign -a $TAR_NAME + +cd - +echo $TAR_NAME ": done." + diff --git a/src/ngx_http_modsecurity_common.h b/src/ngx_http_modsecurity_common.h index f2a4aa8..7d8ebcd 100644 --- a/src/ngx_http_modsecurity_common.h +++ b/src/ngx_http_modsecurity_common.h @@ -26,6 +26,34 @@ #include #include + +/** + * TAG_NUM: + * + * Alpha - 001 + * Beta - 002 + * Dev - 010 + * Rc1 - 051 + * Rc2 - 052 + * ... - ... + * Release- 100 + * + */ + +#define MODSECURITY_NGINX_MAJOR "1" +#define MODSECURITY_NGINX_MINOR "0" +#define MODSECURITY_NGINX_PATCHLEVEL "0" +#define MODSECURITY_NGINX_TAG "" +#define MODSECURITY_NGINX_TAG_NUM "100" + +#define MODSECURITY_NGINX_VERSION MODSECURITY_NGINX_MAJOR "." \ + MODSECURITY_NGINX_MINOR "." MODSECURITY_NGINX_PATCHLEVEL \ + MODSECURITY_NGINX_TAG + +#define MODSECURITY_NGINX_VERSION_NUM MODSECURITY_NGINX_MAJOR \ + MODSECURITY_NGINX_MINOR MODSECURITY_NGINX_PATCHLEVEL \ + MODSECURITY_NGINX_TAG_NUM + typedef struct { ngx_str_t name; ngx_str_t value;