Commit 24151c5d authored by Markus Frosch's avatar Markus Frosch
Browse files

git init

parents
Pipeline #5036 passed with stages
in 8 minutes and 29 seconds
## Editors
.*.sw[op]
*~
## Debian Artifacts
/*.git/
/ccache/
/build/
*.tar*
*.version
stages:
- build
- test
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
.build: &build
stage: build
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- icinga-build-package
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
- 'icingaweb2-module-businessprocess.git'
artifacts:
paths:
- build/*
expire_in: 1 week
.test: &test
stage: test
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- find build/
- icinga-build-test
.upload: &upload
stage: upload
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/upload
script:
- find build/
- icinga-build-upload-aptly
only:
- tags
###################################
# Debian
###################################
build/debian/buster:
<<: *build
variables:
DOCKER_IMAGE: debian/buster
test/debian/buster:
<<: *test
variables:
DOCKER_IMAGE: debian/buster
dependencies:
- build/debian/buster
upload/debian/buster:
<<: *upload
dependencies:
- build/debian/buster
build/debian/stretch:
<<: *build
variables:
DOCKER_IMAGE: debian/stretch
test/debian/stretch:
<<: *test
variables:
DOCKER_IMAGE: debian/stretch
dependencies:
- build/debian/stretch
upload/debian/stretch:
<<: *upload
dependencies:
- build/debian/stretch
build/debian/jessie:
<<: *build
variables:
DOCKER_IMAGE: debian/jessie
test/debian/jessie:
<<: *test
variables:
DOCKER_IMAGE: debian/jessie
dependencies:
- build/debian/jessie
upload/debian/jessie:
<<: *upload
dependencies:
- build/debian/jessie
###################################
# Ubuntu
###################################
build/ubuntu/disco:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/disco
test/ubuntu/disco:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/disco
dependencies:
- build/ubuntu/disco
upload/ubuntu/disco:
<<: *upload
dependencies:
- build/ubuntu/disco
build/ubuntu/bionic:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/bionic
test/ubuntu/bionic:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/bionic
dependencies:
- build/ubuntu/bionic
upload/ubuntu/bionic:
<<: *upload
dependencies:
- build/ubuntu/bionic
build/ubuntu/xenial:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/xenial
test/ubuntu/xenial:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/xenial
dependencies:
- build/ubuntu/xenial
upload/ubuntu/xenial:
<<: *upload
dependencies:
- build/ubuntu/xenial
files
*.debhelper.log
*substvars
icingaweb2*/
.*.sw[op]
icingaweb2-module-businessprocess (2.2.0-1) icinga; urgency=medium
* Initial package
-- Markus Frosch <markus.frosch@icinga.com> Tue, 27 Aug 2019 15:23:27 +0200
Source: icingaweb2-module-businessprocess
Section: admin
Priority: optional
Maintainer: Icinga Development Team <info@icinga.com>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.8
Homepage: https://www.icinga.com
Package: icingaweb2-module-businessprocess
Architecture: all
Depends:
icingaweb2,
${misc:Depends}
Recommends:
php-cli,
icingacli
Description: Business Process module for Icinga Web 2
Create a combined view of your existing data and build your very own top level
view. In the end, what matters is the availability of your whole application
or service. The Business Process Module makes it possible to set single hosts
and services into context, by combining the states with logical functions.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Icinga Web 2 Business Process Module
Source: https://github.com/Icinga/icingaweb2-module-businessprocess
Homepage: https://www.icinga.com
Files: *
Copyright: 2014-2019 Icinga Development Team <info@icinga.com>
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.
README.md
#!/bin/bash
set -e
module_name=businessprocess
echo "Installing icingaweb2 module ${module_name}"
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "icingaweb2-module-${module_name}"
sudo sh -ex <<ROOT
ls -al /usr/share/icingaweb2/modules
icingacli module enable ${module_name}
find /etc/icingaweb2
if [ ! -L /etc/icingaweb2/enabledModules/${module_name} ]; then
echo "Module is not enabled at /etc/icingaweb2/enabledModules/${module_name}" >&2
exit 1
fi
ROOT
usr/share/icingaweb2/modules/businessprocess
#!/bin/sh
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
module_name=businessprocess
case "$1" in
remove)
echo "Disabling icingaweb2 module '${module_name}'"
rm -f /etc/icingaweb2/enabledModules/"${module_name}"
;;
upgrade|deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/usr/bin/make -f
#export DH_VERBOSE=1
MODULE_NAME := businessprocess
MODULE_PATH := /usr/share/icingaweb2/modules/$(MODULE_NAME)
%:
dh $@
override_dh_auto_install:
mkdir debian/tmp
mkdir -p debian/tmp$(MODULE_PATH)
find -maxdepth 1 ! -name debian ! -name ".*" -exec cp -rvt debian/tmp$(MODULE_PATH) {} \;
# vi: ts=4 sw=4 noexpandtab :
# yes we know, thats the name
source-package-component-has-long-file-name
version=3
# filenamemangle -> prepending icingaweb2 if only tag name
# versionmangle -> convert version addition to ~ version
opts=filenamemangle=s/.+\/(?:icingaweb2-module-businessprocess|v)([\d.]+(?:-.+)?).tar.gz/icingaweb2-module-businessprocess-$1.tar.gz/,versionmangle=s/^([\d.]+)-(.+)?/$1~$2/ \
https://github.com/Icinga/icingaweb2-module-businessprocess/releases .*/(?:icingaweb2-module-businessprocess-|v)([\d.]+(?:-.+)?).tar.gz
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment