Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian packaging files #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
munin-plugin-mysql (0.3.1-1) stable; urgency=medium

* First Debian release.

-- Viktor Szépe <[email protected]> Wed, 16 May 2018 08:36:25 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
22 changes: 22 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Source: munin-plugin-mysql
Maintainer: Viktor Szépe <[email protected]>
Section: perl
Priority: optional
Build-Depends: debhelper (>= 9)
Build-Depends-Indep: libpath-class-perl,
libtest-output-perl,
libtest-regression-perl,
libtest-exception-perl
Standards-Version: 3.9.8
Vcs-Browser: https://github.com/kjellm/munin-mysql
Vcs-Git: https://github.com/kjellm/munin-mysql.git
Homepage: http://oierud.net/bliki/ImprovedMuninGraphsForMySQL.html

Package: munin-plugin-mysql
Architecture: all
Depends: ${misc:Depends},
libmodule-pluggable-perl,
libdbd-mysql-perl,
munin-node
Description: Improved MySQL Graphs for Munin
Munin plugin for showing graphs of MySQL resource usage.
8 changes: 8 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: munin-mysql
Upstream-Contact: Kjell-Magne Øierud
Source: https://github.com/kjellm/munin-mysql

Files: *
License: GPL-2
/usr/share/common-licenses/GPL-2
20 changes: 20 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/make -f

#export DH_VERBOSE = 1

export DEB_BUILD_HARDENING = 1

BIN_PACKAGE_NAME = munin-plugin-mysql
INSTALL_ROOT = debian/$(BIN_PACKAGE_NAME)
PERL_VENDOR_LIB=$(INSTALL_ROOT)$(shell perl '-V:installvendorlib' | cut -d"'" -f2)

%:
dh $@

override_dh_auto_install:
mkdir -p $(INSTALL_ROOT)/etc/munin/plugin-conf.d
mkdir -p $(INSTALL_ROOT)/etc/munin/plugins
mkdir -p $(PERL_VENDOR_LIB)
dh_auto_install -- CONFIG_DIR=$(INSTALL_ROOT)/etc/munin PLUGIN_DIR=$(INSTALL_ROOT)/usr/share/munin/plugins MUNIN_NODE=true PERL_SITELIB_DIR=$(PERL_VENDOR_LIB)
chmod -x $(INSTALL_ROOT)/etc/munin/plugin-conf.d/mysql.conf
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to #103

rm $(INSTALL_ROOT)/etc/munin/plugins/mysql
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)