mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Add files to create a Debian-package
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
PREFIX=${CURDIR}/debian/librenms-agent
|
||||
|
||||
install:
|
||||
mkdir -p $(PREFIX)/usr/lib/check_mk_agent/plugins
|
||||
mkdir -p $(PREFIX)/usr/lib/check_mk_agent/local
|
||||
cp -r agent-local/* $(PREFIX)/usr/lib/check_mk_agent/plugins/
|
||||
mkdir -p $(PREFIX)/usr/bin
|
||||
install -m 0750 check_mk_agent $(PREFIX)/usr/bin/check_mk_agent
|
||||
mkdir -p $(PREFIX)/etc/xinet.d
|
||||
install -m 0644 check_mk_xinetd $(PREFIX)/etc/xinet.d/check_mk
|
||||
|
||||
clean:
|
||||
rm -rf $(CURDIR)/build
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
librenms-agent (1.0) stable; urgency=low
|
||||
|
||||
- Initial package release
|
||||
|
||||
-- Mark Schouten <mark@tuxis.nl> Mon, 17 Aug 2015 15:00:00 +0200
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
7
|
13
debian/control
vendored
Normal file
13
debian/control
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Source: librenms-agent
|
||||
Section: misc
|
||||
Priority: extra
|
||||
Maintainer: Mark Schouten <mark@tuxis.nl>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.9.1
|
||||
|
||||
Package: librenms-agent
|
||||
Architecture: all
|
||||
Pre-Depends: xinetd
|
||||
Suggests: php-cli, php-mysql, libwww-perl, curl, dmidecode, netcat, ipmitool, lm-sensors, python-memcache, python-urllib3, rrdtool, libdbd-pg-perl
|
||||
Description: Install the LibreNMS Unix Agent
|
||||
Install the LibreNMS Unix Agent. Please note that the suggested packages are required for some of the plugins
|
37
debian/postinst
vendored
Normal file
37
debian/postinst
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# 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>
|
||||
# * <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
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
[ -x /usr/sbin/service ] && service xinetd restart
|
||||
;;
|
||||
|
||||
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
|
||||
|
||||
|
7
debian/rules
vendored
Executable file
7
debian/rules
vendored
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
Reference in New Issue
Block a user