summaryrefslogtreecommitdiff
path: root/dist/debian
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-10-31 10:53:09 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-10-31 10:53:09 +0100
commit4a871c0fcfc4afecd5514c992c40f707905078e4 (patch)
treed5acfae9c44e81f10f2d04e8c4dfdb2dcb5e3b1c /dist/debian
parent856097e283eb5d4825bd2cf34ae66c47c9e0b7ba (diff)
downloadnagios-plugin-curl-4a871c0fcfc4afecd5514c992c40f707905078e4.tar.gz
nagios-plugin-curl-4a871c0fcfc4afecd5514c992c40f707905078e4.tar.bz2
some renames and synched package building with version used in pgfuse
Diffstat (limited to 'dist/debian')
-rw-r--r--dist/debian/README.source7
-rw-r--r--dist/debian/changelog5
-rw-r--r--dist/debian/compat1
-rw-r--r--dist/debian/conffiles0
-rw-r--r--dist/debian/control15
-rw-r--r--dist/debian/copyright24
-rw-r--r--dist/debian/docs4
-rw-r--r--dist/debian/postinst40
-rw-r--r--dist/debian/postrm41
-rw-r--r--dist/debian/prerm40
-rwxr-xr-xdist/debian/rules103
-rw-r--r--dist/debian/shlibs0
12 files changed, 280 insertions, 0 deletions
diff --git a/dist/debian/README.source b/dist/debian/README.source
new file mode 100644
index 0000000..806ff51
--- /dev/null
+++ b/dist/debian/README.source
@@ -0,0 +1,7 @@
+nagios-plugin-curl for Debian
+------------------
+
+All debian specific build files are in 'debian/.'.
+
+Changes should always be done to the main GIT repository at
+git://github.com:andreasbaumann/nagios-plugin-curl
diff --git a/dist/debian/changelog b/dist/debian/changelog
new file mode 100644
index 0000000..a017ff5
--- /dev/null
+++ b/dist/debian/changelog
@@ -0,0 +1,5 @@
+nagios-plugin-curl (0.0.4-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Andreas Baumann <mail@andreasbaumann.cc> Thu, 12 Jul 2012 17:48:00 +0200
diff --git a/dist/debian/compat b/dist/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/dist/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/dist/debian/conffiles b/dist/debian/conffiles
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dist/debian/conffiles
diff --git a/dist/debian/control b/dist/debian/control
new file mode 100644
index 0000000..7f4626d
--- /dev/null
+++ b/dist/debian/control
@@ -0,0 +1,15 @@
+Source: nagios-plugin-curl
+Section: unknown
+Priority: extra
+Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
+Build-Depends: debhelper (>= 4.1.16), pkg-config,
+ libcurl4-openssl-dev
+Standards-Version: 3.8.3
+Homepage: https://github.com/andreasbaumann/nagios-plugin-curl
+
+Package: nagios-plugin-curl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: nagios-plugin-curl
+ Nagios plugin with similar command line options and functionality
+ as 'check_http', but based on the cURL web library.
diff --git a/dist/debian/copyright b/dist/debian/copyright
new file mode 100644
index 0000000..72b8ebb
--- /dev/null
+++ b/dist/debian/copyright
@@ -0,0 +1,24 @@
+This work was packaged for Debian by:
+
+ Andreas Baumann <mail@andreasbaumann.cc> on Thu, 12 Jul 2012 17:48:00 +0200
+
+It was downloaded from https://github.com/andreasbaumann/nagios-plugin-curl
+
+Upstream Author(s):
+
+ Andreas Baumann <mail@andreasbaumann.cc>
+
+Copyright:
+
+ <Copyright (C) 2012 Andreas Baumann>
+
+License:
+
+ GPLv3
+
+The Debian packaging is:
+
+ Copyright (C) 2012 Andreas Baumann <mail@andreasbaumann.cc>
+
+ and is licensed under the GPL version 3,
+ see `/usr/share/common-licenses/GPL-3'.
diff --git a/dist/debian/docs b/dist/debian/docs
new file mode 100644
index 0000000..0b58b4e
--- /dev/null
+++ b/dist/debian/docs
@@ -0,0 +1,4 @@
+AUTHORS
+COPYING
+README
+TODOS
diff --git a/dist/debian/postinst b/dist/debian/postinst
new file mode 100644
index 0000000..ce67e5c
--- /dev/null
+++ b/dist/debian/postinst
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# Debian postinst script for nagios-plugin-curl
+
+# Author: Andreas Baumann <mail@andreasbaumann.cc>
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# bail out on any error
+set -e
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/dist/debian/postrm b/dist/debian/postrm
new file mode 100644
index 0000000..0452e77
--- /dev/null
+++ b/dist/debian/postrm
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# Debian postrm script for nagios-plugin-curl
+
+# Author: Andreas Baumann <mail@andreasbaumann.cc>
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# bail out on any error
+set -e
+
+case "$1" in
+ remove|purge)
+ ;;
+
+ upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/dist/debian/prerm b/dist/debian/prerm
new file mode 100644
index 0000000..4a35ed3
--- /dev/null
+++ b/dist/debian/prerm
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# Debian prerm script for nagios-plugin-curl
+
+# Author: Andreas Baumann <mail@andreasbaumann.cc>
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+# bail out on any error
+set -e
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/dist/debian/rules b/dist/debian/rules
new file mode 100755
index 0000000..d788972
--- /dev/null
+++ b/dist/debian/rules
@@ -0,0 +1,103 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=4
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+export PGFUSE_PARAMS=
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ PGFUSE_PARAMS += -j$(NUMJOBS)
+endif
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE) $(PGFUSE_PARAMS) all
+
+ # --- end custom part for compiling
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) $(PGFUSE_PARAMS) clean || true
+ # --- end custom part for cleaning up
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package
+ # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/<nameOfPackage>
+
+ # install
+ mkdir -p /usr/src/packages/BUILD/debian/usr/lib/$(DEB_HOST_MULTIARCH)/nagios/plugins/
+ install -D -m0755 src/check_curl /usr/src/packages/BUILD/debian/usr/lib/$(DEB_HOST_MULTIARCH)/nagios/plugins/
+
+ # --- end custom part for installing
+
+# Build architecture-independent files here.
+binary-indep: build install
+ # We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+# dh_installdebconf
+ dh_installdocs
+# dh_installexamples
+# dh_installmenu
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+ dh_installinit
+# dh_installcron
+ dh_installman
+# dh_installinfo
+# dh_undocumented
+ dh_installchangelogs
+# dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/dist/debian/shlibs b/dist/debian/shlibs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dist/debian/shlibs