Compare commits

...

14 Commits

Author SHA1 Message Date
Johannes Meyer
1e682710d9
Add deprecation notice 2021-07-13 08:22:26 +02:00
Johannes Meyer
649bdeaa76 README.md: Update version refs to v0.9.0 2021-02-16 15:56:25 +01:00
Johannes Meyer
62967011dc Require guzzlehttp/guzzle and guzzlehttp/psr7 2021-02-16 15:56:25 +01:00
Thomas Gelf
825f9e95c7 README: update version
fixes #8
2020-09-22 05:36:56 +02:00
Thomas Gelf
9ab4b2efed composer: upgrade to stable react/http and others
fixes #10
2020-09-22 05:31:12 +02:00
Thomas Gelf
342a1d15fc composer: raise versions 2019-09-13 17:53:02 +02:00
Thomas Gelf
b0c9f6d2b7 composer: require stdio 2019-09-12 22:50:38 +02:00
Thomas Gelf
61986dd131 make-release: fix module version string 2019-09-12 22:48:59 +02:00
Thomas Gelf
c699cdf689 LICENSE: add missing file 2019-05-20 12:47:43 +02:00
Thomas Gelf
71d4bfe08e make-release: keep json files, otherwise...
...composer will not understand what's currently installed
2019-05-16 17:54:07 +02:00
Thomas Gelf
a41978b574 .gitignore: allow composer.lock 2019-05-16 17:46:06 +02:00
Thomas Gelf
40391095e3 README, others: prepare release 2019-05-16 17:35:34 +02:00
Thomas Gelf
f44e3d2bdb make-release: fix sed 2019-03-26 07:30:27 +01:00
Thomas Gelf
285c0b8d30 README: fix path 2019-03-26 06:32:44 +01:00
5 changed files with 63 additions and 24 deletions

5
.gitignore vendored
View File

@ -1,4 +1,3 @@
.idea
/vendor/
/.idea/
.*.sw[op]
composer.lock
vendor

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License
Copyright (c) 2018 Icinga GmbH https://www.icinga.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@ -1,3 +1,10 @@
# DEPRECATED
The currently maintained version of this project can be found [here](https://github.com/Icinga/icinga-php-thirdparty).
💡 Some modules (e.g. the Director) still depend on this module. This module is still available for usage, so if you're on Icinga Web 2 v2.8.2 or lower please install v0.9.0.
💡 However, if you're on Icinga Web 2 v2.9.0 or higher, this module is **not** required anymore. Unless you're running the Director in version 1.8.0 or lower, v1.8.1 also doesn't require this module.
Icinga Web 2 - ReactPHP-based 3rd party libraries
=================================================
@ -6,16 +13,16 @@ for asynchronous PHP-based Icinga Web 2 modules. Please download the latest
release and install it like any other module.
> **HINT**: Do NOT install the GIT master, it will not work! Checking out a
> branch like `stable/0.5.0` or a tag like `v0.5.0` is fine.
> branch like `stable/0.9.0` or a tag like `v0.9.0` is fine.
Sample Tarball installation
---------------------------
```sh
MODULE_NAME=reactbundle
MODULE_VERSION=v0.5.0
MODULE_VERSION=v0.9.0
MODULES_PATH="/usr/share/icingaweb2/modules"
MODULE_PATH="${MODULES_PATH}/${MODULE_PATH}"
MODULE_PATH="${MODULES_PATH}/${MODULE_NAME}"
RELEASES="https://github.com/Icinga/icingaweb2-module-${MODULE_NAME}/archive"
mkdir "$MODULE_PATH" \
&& wget -q $RELEASES/${MODULE_VERSION}.tar.gz -O - \
@ -28,7 +35,7 @@ Sample GIT installation
```sh
MODULE_NAME=reactbundle
MODULE_VERSION=v0.5.0
MODULE_VERSION=v0.9.0
REPO="https://github.com/Icinga/icingaweb2-module-${MODULE_NAME}"
MODULES_PATH="/usr/share/icingaweb2/modules"
git clone ${REPO} "${MODULES_PATH}/${MODULE_NAME}" --branch "${MODULE_VERSION}"
@ -48,4 +55,4 @@ Developer Documentation
e.g.
./bin/make-release.sh 0.5.0
./bin/make-release.sh 0.9.0

View File

@ -8,6 +8,12 @@ if [[ -z $VERSION ]]; then
exit 1
fi
function fail {
local msg="$1"
echo "ERROR: $msg"
exit 1
}
TAG=$(git tag | grep -c "$VERSION")
if [[ "$TAG" -ne "0" ]]; then
@ -20,22 +26,24 @@ BRANCH="stable/$VERSION"
git checkout -b "$BRANCH"
git rm -rf vendor
rm -rf vendor
rm composer.lock
composer install
rm -f composer.lock
composer install || fail "composer install failed"
find vendor/ -type f -name "*.php" \
| grep -v '/examples/' \
| grep -v '/example/' \
| grep -v '/tests/' \
| grep -v '/test/' \
| xargs git add -f
find vendor/ -type f -name LICENSE | xargs git add -f
sed -i '' "s/^Version:.*/Version: v$VERSION/" module.info
| xargs -L1 git add -f
find vendor/ -type f -name LICENSE | xargs -L1 git add -f
find vendor/ -type f -name '*.json' | xargs -L1 git add -f
sed -i.bak "s/^Version:.*/Version: $VERSION/" module.info && rm -f module.info.bak
git add module.info
git add composer.lock -f
git commit -m "Version v$VERSION"
rm -f composer.lock
rm -rf vendor
git checkout vendor
composer validate --no-check-all --strict || fail "Composer validate failed"
git tag -a v$VERSION -m "Version v$VERSION"
echo "Finished, tagged v$VERSION"

View File

@ -16,29 +16,33 @@
"require": {
"php": ">=5.6.3",
"ext-curl": "*",
"clue/block-react": "^1.3",
"clue/buzz-react": "^2.5",
"clue/block-react": "^1",
"clue/buzz-react": "~2.7.0",
"clue/connection-manager-extra": "^1.1",
"clue/http-proxy-react": "^1.4",
"clue/http-proxy-react": "^1",
"clue/mq-react": "^1.1",
"clue/redis-react": "^2.3",
"clue/soap-react": "^1.0",
"clue/socket-raw": "^1.4",
"clue/socks-react": "^1.0",
"clue/socks-react": "^1",
"clue/stdio-react": "^2.3",
"evenement/evenement": "^2",
"predis/predis": "^1.1",
"psr/http-message": "^1",
"ramsey/uuid": "^3.8",
"react/child-process": "^0.6",
"react/datagram": "^1.4",
"react/dns": "^0.4",
"react/datagram": "^1.5",
"react/dns": "^1",
"react/event-loop": "^1.1",
"react/http": "^0.8",
"react/http": "^1",
"react/http-client": "^0.5",
"react/promise": "^2.7",
"react/promise": "^2",
"react/promise-stream": "^1",
"react/promise-timer": "^1.5",
"react/socket": "^1.2",
"react/stream": "^1.1"
"react/socket": "^1",
"react/stream": "^1.1",
"guzzlehttp/psr7": "^1.7",
"guzzlehttp/guzzle": "^6.5.5"
},
"require-dev": {
}