[Pkg-nagios-changes] [pkg-lconf] 06/09: Remove patch for 1.3 branch of LConf - no longer needed
Markus Frosch
lazyfrosch-guest at moszumanska.debian.org
Tue Aug 5 16:50:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
lazyfrosch-guest pushed a commit to branch master
in repository pkg-lconf.
commit 14834582f18407bc8e593ba2157d27d7117fa417
Author: Markus Frosch <markus at lazyfrosch.de>
Date: Tue Aug 5 18:38:08 2014 +0200
Remove patch for 1.3 branch of LConf - no longer needed
---
debian/patches/11_hostgroup_aliases | 58 -------------------------------------
debian/patches/series | 1 -
2 files changed, 59 deletions(-)
diff --git a/debian/patches/11_hostgroup_aliases b/debian/patches/11_hostgroup_aliases
deleted file mode 100644
index ce5e201..0000000
--- a/debian/patches/11_hostgroup_aliases
+++ /dev/null
@@ -1,58 +0,0 @@
-From 3eb2a7e58d9257a7824c4214c2516ddd1ead0222 Mon Sep 17 00:00:00 2001
-From: Markus Frosch <markus at lazyfrosch.de>
-Date: Wed, 26 Feb 2014 11:58:34 +0100
-Subject: [PATCH] Fixed hostgroup handling so no duplicate hostgroups are
- processed.
-
-Fix for 1.3.x branch
-
-Refs #2501
----
- src/generate.pm.in | 26 ++++++++++++++++++++++----
- 1 file changed, 22 insertions(+), 4 deletions(-)
-
-diff --git a/src/generate.pm.in b/src/generate.pm.in
-index 7228f5d..ae541c4 100644
---- a/src/generate.pm.in
-+++ b/src/generate.pm.in
-@@ -234,15 +234,33 @@ sub genHostgroups {
-
- }
-
-+ my @hg_existing = keys %{$result};
-+
- # get all hostgroups defined by hostobject
- foreach my $client (keys %{$CLIENTS}) {
- if (defined $CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"}) {
- # multiple or a single hostgroup?
-+ my @val;
-+
- if ($CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"} =~ /,/) {
-- my @val = split(/\s*,\s*/, $CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"});
-- foreach(@val) { $result->{$_}->{cn} = $_ if $_ ne ''; }
-- } else {
-- $result->{$CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"}}->{cn} = $CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"};
-+ @val = split(/\s*,\s*/, $CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"});
-+ }
-+ else {
-+ @val = ($CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostgroups"});
-+ }
-+ foreach(@val) {
-+ next if $_ eq '';
-+
-+ my $found = 0;
-+ # search for matching hostgroups
-+ foreach my $hg (@hg_existing) {
-+ if ($hg =~ /^cn=$_,/) {
-+ $found = 1;
-+ last;
-+ }
-+ }
-+ # create hostgroup when nothing found
-+ $result->{$_}->{cn} = $_ if ($found == 0);
- }
- }
- }
---
-1.8.5.3
-
diff --git a/debian/patches/series b/debian/patches/series
index 52420af..776b986 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
01_avoid_install_with_owners
-11_hostgroup_aliases
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-lconf.git
More information about the Pkg-nagios-changes
mailing list