Last change
on this file since 1153 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
|
Rev | Line | |
---|
[1121] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | set -x
|
---|
| 4 |
|
---|
| 5 | eval "$@"
|
---|
| 6 |
|
---|
| 7 | if [ -z "${DESTDIR}" ]; then
|
---|
| 8 | echo "failed: DESTDIR is not defined. Giving up"
|
---|
| 9 | exit 1
|
---|
| 10 | fi
|
---|
| 11 |
|
---|
[1123] | 12 | # if ! [ -d "${DESTDIR}" ]; then
|
---|
| 13 | # echo "failed: DESTDIR ${DESTDIR} is not accessable. Giving up"
|
---|
| 14 | # exit 1
|
---|
| 15 | # fi
|
---|
| 16 | mkdir -p ${DESTDIR}
|
---|
[1121] | 17 |
|
---|
| 18 | install -d ${DESTDIR}/var/lib/dasscm/
|
---|
| 19 | install -d ${DESTDIR}/var/lib/dasscm/plugin-results/
|
---|
| 20 |
|
---|
| 21 | install -d ${DESTDIR}/usr/bin
|
---|
| 22 | install -m 0755 usr/bin/dasscm ${DESTDIR}/usr/bin
|
---|
| 23 | install -m 0755 usr/bin/dasscm_remote_update.sh ${DESTDIR}/usr/bin
|
---|
| 24 |
|
---|
| 25 | install -d ${DESTDIR}/etc
|
---|
| 26 | install -m 0644 etc/dasscm.conf ${DESTDIR}/etc
|
---|
| 27 |
|
---|
| 28 | if 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
|
---|
| 31 | fi
|
---|
| 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 |
|
---|
| 38 | install -d ${DESTDIR}/etc/profile.d/
|
---|
| 39 | install -m 644 etc/profile.d/dasscm.sh ${DESTDIR}/etc/profile.d/
|
---|
| 40 |
|
---|
| 41 | install -d ${DESTDIR}/etc/sudoers.d/
|
---|
| 42 | install -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.