# HG changeset patch # User Christian Arnold # Date 1293544550 -3600 # Node ID 31b228cc3b89d5be856676bebda95d502bb8a85a # Parent 5e464a719d66bdca6d2ec974e2930c00fc8d1124 adding debian-package bulid files diff -r 5e464a719d66 -r 31b228cc3b89 .hgignore --- a/.hgignore Wed Dec 22 16:23:40 2010 +0100 +++ b/.hgignore Tue Dec 28 14:55:50 2010 +0100 @@ -1,3 +1,9 @@ syntax: glob *.swp check_release + +syntax: regexp +(build|configure)-stamp$ +debian/nagios-plugin-exec[./] + + diff -r 5e464a719d66 -r 31b228cc3b89 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,22 @@ +SCRIPTS = check_exec +CLEANFILES = ${SCRIPTS} +DESTDIR = +prefix = /usr + +plugindir = ${prefix}/lib/nagios/plugins/ius + +.PHONY: all clean install + +all: ${SCRIPTS} + +clean: + -rm -f ${CLEANFILES} + +install: all + install -d -m 0755 ${DESTDIR}/${plugindir} + install -m 0755 $(SCRIPTS) ${DESTDIR}/${plugindir}/ + +%: %.pl + @perl -c $< + @cp -f $< $@ + @chmod +x $@ diff -r 5e464a719d66 -r 31b228cc3b89 check_exec.pl --- a/check_exec.pl Wed Dec 22 16:23:40 2010 +0100 +++ b/check_exec.pl Tue Dec 28 14:55:50 2010 +0100 @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# Chrisitan Arnold +# Christian Arnold use strict; use File::Basename; diff -r 5e464a719d66 -r 31b228cc3b89 debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/changelog Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,24 @@ +nagios-plugin-exec (0.3-1) stable; urgency=low + + * new version + + -- Christian Arnold Wed, 22 Dec 2010 16:25:13 +0100 + +nagios-plugin-exec (0.2-3) stable; urgency=low + + * fixing gpg environment problem + + -- Christian Arnold Wed, 22 Dec 2010 13:49:06 +0100 + +nagios-plugin-exec (0.2-2) stable; urgency=low + + * fixing debian/postinst + + -- Christian Arnold Wed, 22 Dec 2010 12:40:10 +0100 + +nagios-plugin-exec (0.2-1) stable; urgency=low + + * Initial release + + -- Christian Arnold Wed, 22 Dec 2010 09:51:51 +0100 + diff -r 5e464a719d66 -r 31b228cc3b89 debian/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/compat Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,1 @@ +7 diff -r 5e464a719d66 -r 31b228cc3b89 debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/control Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,13 @@ +Source: nagios-plugin-exec +Section: net +Priority: extra +Maintainer: Christian Arnold +Build-Depends: debhelper (>= 7) +Standards-Version: 3.7.3 + +Package: nagios-plugin-exec +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base, libwww-perl, libcrypt-ssleay-perl, gnupg, nagios-plugins-basic +Description: nagios plugin to download/verify/execute a program file + This plugin loads a program file via http or https from a + server and verifies its validity based on a gpg key. diff -r 5e464a719d66 -r 31b228cc3b89 debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/copyright Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,34 @@ +This package was debianized by Christian Arnold on +Wed, 22 Dec 2010 09:51:51 +0100. + +It was downloaded from https://keller.schlittermann.de/hg/ius/nagios/nagios-plugin-exec/ + +Upstream Author(s): + + Christian Arnold + +Copyright: + + + +License: + + This package 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 2 of the License, or + (at your option) any later version. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2010, Christian Arnold and +is licensed under the GPL, see above. diff -r 5e464a719d66 -r 31b228cc3b89 debian/dirs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/dirs Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff -r 5e464a719d66 -r 31b228cc3b89 debian/docs diff -r 5e464a719d66 -r 31b228cc3b89 debian/files --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/files Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,1 @@ +nagios-plugin-exec_0.3-1_all.deb net extra diff -r 5e464a719d66 -r 31b228cc3b89 debian/postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/postinst Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for nagios-plugin-exec +# +# see: dh_installdeb(1) + +set -e + +KEYSERVER="hkp://gpg-keyserver.de" +KEYS="FC4FE9CF D23350D3 FEC5CC46 3CB53556 48D0359B"; + +case "$1" in + configure) + if ! getent passwd nagios > /dev/null ; then + echo 'Adding system-user for nagios' 1>&2 + adduser --system --group --quiet --home /var/log/nagios \ + --no-create-home --disabled-login nagios + fi + # Create home directory install also fixes permissions. + install --directory --owner nagios --group nagios --mode 750 /var/log/nagios + + # Importing public gpg keys. + su - nagios -c "gpg --quiet --keyserver $KEYSERVER --recv-keys $KEYS" -s /bin/sh + ;; + + 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 -r 5e464a719d66 -r 31b228cc3b89 debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/rules Tue Dec 28 14:55:50 2010 +0100 @@ -0,0 +1,91 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/nagios-plugin-exec.sgml > nagios-plugin-exec.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/nagios-plugin-exec. + $(MAKE) DESTDIR=$(CURDIR)/debian/nagios-plugin-exec install + + +# 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_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure