]> git.uio.no Git - uio-zabbix.git/commitdiff
First draft Debian packaging rules.
authorPetter Reinholdtsen <petter.reinholdtsen@usit.uio.no>
Mon, 17 Oct 2016 09:34:05 +0000 (11:34 +0200)
committerPetter Reinholdtsen <petter.reinholdtsen@usit.uio.no>
Mon, 17 Oct 2016 09:34:05 +0000 (11:34 +0200)
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/uio-zabbix-infrastructure.install [new file with mode: 0644]
debian/uio-zabbix-userparm.install [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..59e3281
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+DESTDIR=
+prefix= /usr
+bindir = $(prefix)/bin
+sysconfdir = /etc
+vardir = /var/lib/zabbixsrv
+vardirext = $(vardir)/externalscripts
+vardiralert = $(vardir)/alertscripts
+
+INSTALL = install -p -m755
+INSTALL_DATA = install -p -m644
+
+all:
+
+install:
+       $(INSTALL) -d $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_trap_receiver.pl $(DESTDIR)$(bindir)
+       $(INSTALL) get_default_gateway $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_elasticsearch_cluster_health.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_networkteam_info.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_elasticsearch_node_stats.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_filesystem_limits.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_filesystem_not_monitored.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_get_webapps_info.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_get_webapps_status.py $(DESTDIR)$(bindir)
+       $(INSTALL) zabbix_get_webapps_status_v2.py $(DESTDIR)$(bindir)
+       $(INSTALL) -d $(DESTDIR)$(sysconfdir)
+       $(INSTALL_DATA) zabbix_filesystems_limits.conf $(DESTDIR)$(sysconfdir)
+       $(INSTALL_DATA) zabbix_filesystems_not_monitored.conf $(DESTDIR)$(sysconfdir)
+       $(INSTALL) -d $(DESTDIR)$(vardirext)
+       $(INSTALL) query-apachestats.py $(DESTDIR)$(vardirext)
+       $(INSTALL) zabbix_temperature_devices_discovery.py $(DESTDIR)$(vardirext)
+       $(INSTALL) zabbix_temperature_devices_info.py $(DESTDIR)$(vardirext)
+       $(INSTALL) get_webapp_instances.py $(DESTDIR)$(vardirext)
+       $(INSTALL) -d $(DESTDIR)$(vardiralert)
+       $(INSTALL) sms_send.py $(DESTDIR)$(vardiralert)
+#      $(INSTALL)jabber_send $(DESTDIR)$(vardiralert)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..e10d9b7
--- /dev/null
@@ -0,0 +1,5 @@
+uio-zabbix (0.0.0-1) unstable; urgency=low
+
+  * initial release
+
+ -- Petter Reinholdtsen <petter.reinholdtsen@usit.uio.no>  Mon, 17 Oct 2016 10:56:16 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b2b651d
--- /dev/null
@@ -0,0 +1,29 @@
+Source: uio-zabbix
+Section: libs
+Priority: optional
+Maintainer: Petter Reinholdtsen <petter.reinholdtsen@usit.uio.no>
+Standards-Version: 3.9.8
+Build-Depends:
+ debhelper (>= 9~)
+ , python | python-all | python-dev | python-all-dev
+Homepage: http://git.uio.no/git/?p=uio-zabbix.git;a=summary
+Vcs-Browser: http://git.uio.no/git/?p=uio-zabbix.git;a=summary
+Vcs-Git: git://git.uio.no/uio-zabbix.git
+
+Package: uio-zabbix-userparm
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+ , python
+Description: Zabbix related tools and scripts for UiO - client scripts
+ Contains scripts that must be run on the same machine that they are
+ meant to gather data from.
+
+Package: uio-zabbix-infrastructure
+Architecture: any
+Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends}
+ , python
+ , perl
+Description: Zabbix related tools and scripts for UiO - infrastructure scripts
+ Contains scripts that must be run from a zabbix proxy or server in
+ order to be able to query the machines they are meant to gather data
+ from. This package also contains the zabbix trap receiver script.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..a461b9c
--- /dev/null
@@ -0,0 +1,22 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: uio-zabbix
+Source: http://git.uio.no/git/?p=uio-zabbix.git;a=summary
+
+Files:     *
+Copyright: 2015-2016 The University of Oslo
+License:   GPL-3+
+ get_webapps_instances.py 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
+ 3 of the License, or (at your option) any later version.
+ .
+ get_webapps_instances.py 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with sms_send.  If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License Version 3 can be found in `/usr/share/common-licenses/GPL-3`.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..1c006a4
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+%:
+       dh $@ -- --with python2
diff --git a/debian/uio-zabbix-infrastructure.install b/debian/uio-zabbix-infrastructure.install
new file mode 100644 (file)
index 0000000..c9e636c
--- /dev/null
@@ -0,0 +1,8 @@
+usr/bin/zabbix_trap_receiver.pl
+#%defattr(-,zabbix,zabbix,-)
+var/lib/zabbixsrv/alertscripts/sms_send.py
+#var/lib/zabbixsrv/alertscripts/jabber_send
+var/lib/zabbixsrv/externalscripts/zabbix_temperature_devices_discovery.py
+var/lib/zabbixsrv/externalscripts/zabbix_temperature_devices_info.py
+var/lib/zabbixsrv/externalscripts/query-apachestats.py
+var/lib/zabbixsrv/externalscripts/get_webapp_instances.py
diff --git a/debian/uio-zabbix-userparm.install b/debian/uio-zabbix-userparm.install
new file mode 100644 (file)
index 0000000..40ca9a6
--- /dev/null
@@ -0,0 +1,9 @@
+usr/bin/get_default_gateway
+usr/bin/zabbix_elasticsearch_cluster_health.py
+usr/bin/zabbix_elasticsearch_node_stats.py
+usr/bin/zabbix_filesystem_limits.py
+usr/bin/zabbix_filesystem_not_monitored.py
+usr/bin/zabbix_get_webapps_info.py
+usr/bin/zabbix_get_webapps_status.py
+usr/bin/zabbix_get_webapps_status_v2.py
+usr/bin/zabbix_networkteam_info.py