Commit a72a9c7a authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

git init

parents
Pipeline #5052 failed with stages
in 4 minutes and 52 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-generictts.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-generictts (2.0.0-1) icinga; urgency=medium
* Initial package
-- Markus Frosch <markus.frosch@icinga.com> Wed, 28 Aug 2019 14:21:27 +0200
Source: icingaweb2-module-generictts
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-generictts
Architecture: all
Depends:
icingaweb2,
php-curl,
${misc:Depends}
Recommends:
php-cli,
icingacli
Description: GenericTTS module for Icinga Web 2
Generic TTS implements Icinga Web 2's ticket hook for replacing ticket
patterns with links to your trouble ticket system (TTS). Icinga Web 2's core
module monitoring for example uses the ticket hook for acknowledgements,
downtimes and comments. Other modules may use the ticket hook for all kinds
of text too.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Icinga Web 2 GenericTTS Module
Source: https://github.com/Icinga/icingaweb2-module-generictts
Homepage: https://www.icinga.com
Files: *
Copyright: 2015-2016 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=generictts
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/generictts
#!/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=generictts
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 := generictts
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-generictts|v)([\d.]+(?:-.+)?).tar.gz/icingaweb2-module-generictts-$1.tar.gz/,versionmangle=s/^([\d.]+)-(.+)?/$1~$2/ \
https://github.com/Icinga/icingaweb2-module-generictts/releases .*/(?:icingaweb2-module-generictts-|v)([\d.]+(?:-.+)?).tar.gz
Markdown is supported
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