Changeset 1123 for dasscm/trunk/dasscm.spec
- Timestamp:
- Nov 30, 2012, 11:08:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.