From 198bb481b273a26cb3cd8c2f0636a0c5d177777a Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 6 Dec 2018 14:37:09 -0200 Subject: [PATCH] icinga2: fix location of bash completion files --- srcpkgs/icinga2/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/icinga2/template b/srcpkgs/icinga2/template index aa6d47249d4..214e5b634ce 100644 --- a/srcpkgs/icinga2/template +++ b/srcpkgs/icinga2/template @@ -1,7 +1,7 @@ # Template file for 'icinga2' pkgname=icinga2 version=2.9.2 -revision=3 +revision=4 build_style=cmake configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DICINGA2_RUNDIR=/run @@ -15,7 +15,7 @@ conf_files="/etc/${pkgname}/*.conf /etc/$pkgname/features-available/*.conf" short_desc="A scalable and extensible monitoring system" maintainer="Corné Oppelaar " -license="GPL-2" +license="GPL-2.0-or-later" homepage="https://www.icinga.org/" distfiles="https://github.com/Icinga/icinga2/archive/v${version}.tar.gz" checksum=3d46e61bc45a369c757a9f91111b80fb2405099a32e04e7d259f8c3a72cfe762 @@ -30,4 +30,7 @@ post_install() { vsv icinga2 # remove useless files rm -rf ${DESTDIR}/etc/{init.d,sysconfig} + + vmkdir usr/share/bash-completion/completions + mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions }