[Pkg-nagios-changes] [pkg-check-mk] 01/01: start working on adding python lib packaging

Matt Taggart taggart at moszumanska.debian.org
Tue Aug 1 21:20:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

taggart pushed a commit to branch master
in repository pkg-check-mk.

commit 93fae10cd64db07adf51c1b234bdda609458d5b8
Author: Matt Taggart <taggart at debian.org>
Date:   Tue Aug 1 14:19:30 2017 -0700

    start working on adding python lib packaging
---
 debian/control | 16 +++++++++++++++-
 debian/rules   |  7 ++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index f226f6d..515d828 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Uploaders: Alexander Wirt <formorer at debian.org>,
            Thomas Bechtold <toabctl at debian.org>,
            Ilya Rassadin <elcamlost at gmail.com>,
            Matt Taggart <taggart at debian.org>
-Build-Depends: debhelper (>= 9), dpatch, librrd-dev, libboost-dev, libboost-system-dev
+Build-Depends: debhelper (>= 9), dh-python, python3, dpatch, librrd-dev, libboost-dev, libboost-system-dev
 Standards-Version: 3.9.8
 Vcs-Git: https://anonscm.debian.org/git/pkg-nagios/pkg-check-mk.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-check-mk.git
@@ -116,3 +116,17 @@ Description: general purpose monitoring plugin for retrieving data (documentatio
   * Automatic inventory of items to be checked on hosts.
  .
  This package contains the check_mk documentation.
+
+Package: python3-check-mk
+Architecture: all
+Section: python
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: general purpose monitoring plugin for retrieving data (python libraries)
+ Check_mk adopts a new a approach for collecting data from operating systems
+ and network components. It obsoletes NRPE, check_by_ssh, NSClient and
+ check_snmp. It has many benefits, the most important of which are:
+ .
+  * Significant reduction of CPU usage on the Nagios host.
+  * Automatic inventory of items to be checked on hosts.
+ .
+ This package contains the check_mk python libraries.
diff --git a/debian/rules b/debian/rules
index bab6cdd..7d67573 100755
--- a/debian/rules
+++ b/debian/rules
@@ -56,7 +56,7 @@ install: build
 	dh_installdirs
 	dh_installdebconf
 	mkdir -p debian/tmp
-	DESTDIR=debian/tmp python_lib_dir=/usr/lib/python2.7/dist-packages ./setup.sh --yes
+	DESTDIR=debian/tmp python_lib_dir=/usr/lib/python3/dist-packages ./setup.sh --yes
 	## clean up binaries shipped by upstream
 	# upstream agent deb and rpm
 	rm -rf debian/tmp/usr/share/check_mk/agent/check-mk-agent*.deb
@@ -84,6 +84,11 @@ install: build
 	rm debian/tmp/usr/share/check_mk/agents/z_os/waitmax
 	# copy the livestatus stuff that setup.sh generated in it's own dir
 	cp -a livestatus.src/debian/tmp/* debian/tmp/
+	## cleanup shipped byte-compiled python and regenerate it
+	#rm -rf debian/tmp/usr/lib/python2.7/dist-packages/cmk_base/*.pyc
+	#rm -rf debian/tmp/usr/lib/python2.7/dist-packages/cmk/*.pyc
+	#FIXME: pycompile debian/tmp/usr/lib/python2.7/dist-packages/
+	#dh_python3
 	## config files
 	# We need 2 different "defaults" files for Icinga and Nagios3
 	rm debian/tmp/usr/share/check_mk/modules/defaults

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-check-mk.git



More information about the Pkg-nagios-changes mailing list