source: dasscm/trunk/dasscm.install.sh@ 1137

Last change on this file since 1137 was 1123, checked in by joergs, on Nov 30, 2012 at 11:08:25 AM

better handling of extra files. always integrate /etc/nagios/nrpe.d/dasscm.cfg

  • Property svn:executable set to *
File size: 1.3 KB
RevLine 
[1121]1#!/bin/bash
2
3set -x
4
5eval "$@"
6
7if [ -z "${DESTDIR}" ]; then
8 echo "failed: DESTDIR is not defined. Giving up"
9 exit 1
10fi
11
[1123]12# if ! [ -d "${DESTDIR}" ]; then
13# echo "failed: DESTDIR ${DESTDIR} is not accessable. Giving up"
14# exit 1
15# fi
16mkdir -p ${DESTDIR}
[1121]17
18install -d ${DESTDIR}/var/lib/dasscm/
19install -d ${DESTDIR}/var/lib/dasscm/plugin-results/
20
21install -d ${DESTDIR}/usr/bin
22install -m 0755 usr/bin/dasscm ${DESTDIR}/usr/bin
23install -m 0755 usr/bin/dasscm_remote_update.sh ${DESTDIR}/usr/bin
24
25install -d ${DESTDIR}/etc
26install -m 0644 etc/dasscm.conf ${DESTDIR}/etc
27
28if test -d /etc/bash_completion.d/; then
29 install -d ${DESTDIR}/etc/bash_completion.d/
30 install -m 644 etc/bash_completion.d/bash_completion_dasscm.sh ${DESTDIR}/etc/bash_completion.d/dasscm.sh
31fi
32
[1123]33#if test -d /etc/nagios/nrpe.d/; then
[1121]34 mkdir -p ${DESTDIR}/etc/nagios/nrpe.d/
35 install -m 644 etc/nagios/nrpe.d/nrpe-dasscm.cfg ${DESTDIR}/etc/nagios/nrpe.d/dasscm.cfg
[1123]36#fi
[1121]37
38install -d ${DESTDIR}/etc/profile.d/
39install -m 644 etc/profile.d/dasscm.sh ${DESTDIR}/etc/profile.d/
40
41install -d ${DESTDIR}/etc/sudoers.d/
42install -m 440 etc/sudoers.d/nagios_dasscm_check ${DESTDIR}/etc/sudoers.d/
43
44#install -d ${DESTDIR}/etc/subversion
45#install -m 0644 subversion-servers.dass-it ${DESTDIR}/etc/subversion/servers.dass-it
Note: See TracBrowser for help on using the repository browser.