Changeset 1123
- Timestamp:
- Nov 30, 2012, 11:08:25 AM (12 years ago)
- Location:
- dasscm/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/dasscm.install.sh
r1121 r1123 10 10 fi 11 11 12 if ! [ -d "${DESTDIR}" ]; then13 echo "failed: DESTDIR ${DESTDIR} is not accessable. Giving up"14 exit 115 fi16 12 # if ! [ -d "${DESTDIR}" ]; then 13 # echo "failed: DESTDIR ${DESTDIR} is not accessable. Giving up" 14 # exit 1 15 # fi 16 mkdir -p ${DESTDIR} 17 17 18 18 install -d ${DESTDIR}/var/lib/dasscm/ … … 31 31 fi 32 32 33 if test -d /etc/nagios/nrpe.d/; then33 #if test -d /etc/nagios/nrpe.d/; then 34 34 mkdir -p ${DESTDIR}/etc/nagios/nrpe.d/ 35 35 install -m 644 etc/nagios/nrpe.d/nrpe-dasscm.cfg ${DESTDIR}/etc/nagios/nrpe.d/dasscm.cfg 36 fi36 #fi 37 37 38 38 install -d ${DESTDIR}/etc/profile.d/ -
dasscm/trunk/dasscm.spec
r1122 r1123 24 24 BuildRequires: gzip pam-modules tar 25 25 %endif 26 #BuildRequires: nagios-nrpe 26 27 27 28 # Subversion should be installed during build … … 50 51 51 52 # handle special files, not useful on all distributions 52 %if %(test -d /etc/bash_completion.d/ && echo 1 || echo 0) 53 %define use_bash_completion 1 54 %endif 55 %if %(test -d /etc/nagios/nrpe.d/ && echo 1 || echo 0) 56 %define use_nagios_nrpe_d 1 57 %endif 53 rm -f files 54 touch files 55 if test -e $RPM_BUILD_ROOT/etc/bash_completion.d/dasscm.sh; then 56 echo '%config(noreplace) /etc/bash_completion.d/dasscm.sh' >> files 57 else 58 echo '%doc etc/bash_completion.d/bash_completion_dasscm.sh' >> files 59 fi 60 61 if test -e $RPM_BUILD_ROOT/etc/nagios/nrpe.d/dasscm.cfg; then 62 test -d /etc/nagios || echo '%dir /etc/nagios' >> files 63 test -d /etc/nagios/nrpe.d || echo '%dir /etc/nagios/nrpe.d' >> files 64 echo '%config(noreplace) /etc/nagios/nrpe.d/dasscm.cfg' >> files 65 else 66 echo '%doc etc/nagios/nrpe.d/nrpe-dasscm.cfg' >> files 67 fi 68 69 #cat files 58 70 59 71 … … 65 77 # groupadd -g 4199 dasscm 66 78 67 %files 79 %files -f files 68 80 %defattr(-,root,root) 69 81 %dir /var/lib/dasscm/ … … 75 87 %config(noreplace) %attr(640,root,root) /etc/dasscm.conf 76 88 %config(noreplace) /etc/profile.d/dasscm.sh 77 %if 0%{?use_bash_completion}78 %config(noreplace) /etc/bash_completion.d/dasscm.sh79 %else80 %doc etc/bash_completion.d/bash_completion_dasscm.sh81 %endif82 83 %if 0%{?use_nagios_nrpe_d}84 %config(noreplace) /etc/nagios/nrpe.d/dasscm.cfg85 %else86 %doc etc/nagios/nrpe.d/nrpe-dasscm.cfg87 %endif88 89 89 90 # /etc/sudoers.d/ should not belong to dasscm,
Note:
See TracChangeset
for help on using the changeset viewer.