Browse Source

Add debian packaging

Emmanuel Bouthenot 9 years ago
parent
commit
065213dc24

+ 5 - 0
debian/changelog

@@ -0,0 +1,5 @@
+zabbix-plugins (0.1) unstable; urgency=medium
+
+  * Initial release
+
+ -- Emmanuel Bouthenot <kolter@debian.org>  Wed, 15 Apr 2015 16:55:05 +0200

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+9

+ 33 - 0
debian/control

@@ -0,0 +1,33 @@
+Source: zabbix-plugins
+Section: net
+Priority: extra
+Maintainer: Emmanuel Bouthenot <kolter@debian.org>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.6
+Homepage: http://git.openics.org/kolter/zabbix-plugins
+
+Package: zabbix-plugins-client
+Architecture: all
+Depends:
+    ${misc:Depends},
+    python3,
+    python3-yaml,
+    debian-goodies
+Description: Plugins for zabbix monitoring system (client)
+ This is a collection of plugins for zabbix monitoring system
+ on the client side.
+
+Package: zabbix-plugins-server
+Architecture: all
+Depends:
+    ${misc:Depends},
+    python3,
+    python3-requests,
+    python3-urllib3,
+    python3-openssl,
+    openssl,
+    ca-certificates,
+    fping
+Description: Plugins for zabbix monitoring system (server)
+ This is a collection of plugins for zabbix monitoring system
+ on the server side.

+ 25 - 0
debian/copyright

@@ -0,0 +1,25 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: zabbix-plugins
+Upstream-Contact: Emmanuel Bouthenot <kolter@openics.org>
+Source: http://git.openics.org/kolter/zabbix-plugins
+
+Files: *
+Copyright: 2015, Emmanuel Bouthenot <kolter@openics.org>
+License: GPL-3+
+
+License: GPL-3+
+ WeeChat 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.
+ .
+ WeeChat 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 this program.  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 the file /usr/share/common-licenses/GPL-3

+ 12 - 0
debian/rules

@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+override_dh_install:
+	dh_install
+	cd $(CURDIR)/debian/zabbix-plugins-client/etc/sudoers.d && ls -al && \
+		for f in * ; do \
+			mv "$$f" "zabbix_plugins_$$f"; \
+			chmod 0440 "zabbix_plugins_$$f"; \
+		done
+
+%:
+	dh $@

+ 1 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (native)

+ 4 - 0
debian/zabbix-plugins-client.dirs

@@ -0,0 +1,4 @@
+/etc/zabbix/zabbix_agentd.conf.d
+/etc/zabbix/scripts
+/etc/zabbix/zabbix_plugins.conf.d
+/etc/sudoers.d/

+ 3 - 0
debian/zabbix-plugins-client.install

@@ -0,0 +1,3 @@
+plugins/client/*/conf/* /etc/zabbix/zabbix_agentd.conf.d
+plugins/client/*/scripts/* /etc/zabbix/scripts
+plugins/client/*/sudo/* /etc/sudoers.d/

+ 1 - 0
debian/zabbix-plugins-server.dirs

@@ -0,0 +1 @@
+/etc/zabbix/externalscripts

+ 1 - 0
debian/zabbix-plugins-server.install

@@ -0,0 +1 @@
+plugins/server/*/scripts/* /etc/zabbix/externalscripts