Skip to content
Snippets Groups Projects
Commit b3184967 authored by Markus Frosch's avatar Markus Frosch
Browse files

git init

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #5121 failed
## Editors
.*.sw[op]
*~
## Debian Artifacts
/*.git/
/ccache/
/build/
*.tar*
*.version
#########################
# MANAGED BY MODULESYNC #
#########################
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-x509.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
###################################
# 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-x509 (1.0.0-1) icinga; urgency=medium
* Initial package
-- Markus Frosch <markus.frosch@icinga.com> Fri, 30 Aug 2019 10:58:27 +0200
9
Source: icingaweb2-module-x509
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-x509
Architecture: all
Depends:
icingaweb2,
icingaweb2-module-ipl (>= 0.1),
icingaweb2-module-reactbundle (>= 0.4),
openssl,
php-gmp,
${misc:Depends}
Recommends:
php-cli,
icingacli
Description: Certificate Monitoring (x509) module for Icinga Web 2
The certificate monitoring module for Icinga keeps track of certificates as
they are deployed in a network environment. It does this by scanning networks
for TLS services and collects whatever certificates it finds along the way.
The certificates are verified using its own trust store.
.
The module’s web frontend can be used to view scan results, allowing you to
drill down into detailed information about any discovered certificate of your
landscape.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Icinga Web 2 Certificate Monitoring (x509) Module
Source: https://github.com/Icinga/icingaweb2-module-x509
Homepage: https://www.icinga.com
Files: *
Copyright: 2016-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=x509
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/x509
#!/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=x509
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 := x509
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 :
3.0 (quilt)
# 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-x509|v)([\d.]+(?:-.+)?).tar.gz/icingaweb2-module-x509-$1.tar.gz/,versionmangle=s/^([\d.]+)-(.+)?/$1~$2/ \
https://github.com/Icinga/icingaweb2-module-x509/releases .*/(?:icingaweb2-module-x509-|v)([\d.]+(?:-.+)?).tar.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment