Changeset 1056 for opsi/server/dass-opsi-tools
- Timestamp:
- Aug 15, 2012, 3:39:36 PM (12 years ago)
- Location:
- opsi/server/dass-opsi-tools
- Files:
-
- 1 added
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/dass-opsi-tools.spec
r1018 r1056 1 1 # 2 # Copyright (c) 20 04-2010dass IT GmbH, Koeln, Germany.2 # Copyright (c) 2012 dass IT GmbH, Koeln, Germany. 3 3 # This file and all modifications and additions to the pristine 4 4 # package are under the same license as the package itself. … … 6 6 # $Id$ 7 7 8 Name: dass cm9 URL: http s://trac.dass-it.de/pub/8 Name: dass-opsi-tools 9 URL: http://trac.dass-it.de/pub/ 10 10 License: GPL 11 Group: Development/Tools/Version Control11 Group: Productivity/Networking/Opsi 12 12 Autoreqprov: on 13 Summary: Dass Configuration Management14 Version: 1. 213 Summary: opsi tools 14 Version: 1.0 15 15 Release: 0 16 Requires: subversion perl 17 # perl-TermReadKey: 18 # replaced ReadMode('noecho') by `stty -echo` 19 # to reduce dependencies 16 Requires: python-json-rpc 20 17 Source: %{name}_%{version}.orig.tar.gz 21 18 BuildRoot: %{_tmppath}/%{name}-%{version}-build … … 24 21 BuildRequires: gzip pam-modules tar 25 22 %endif 26 27 # Subversion should be installed during build28 # to have the directory /etc/subversion/ available.29 # Unfortunally, it isn't included in all distributions,30 # therefore we added some checks31 #%if 0%{?suse_version} > 110032 #BuildRequires: subversion33 #%endif34 23 35 24 36 25 %description 37 dasscm is a tool for handling configuration files with subversion 38 39 Authors: 40 -------- 41 Joerg Steffens 26 dass-opsi-tools contains some tools to help working in OPSI environments 42 27 43 28 %prep 44 29 %setup -c 45 46 47 30 48 31 %build … … 51 34 %install 52 35 mkdir -p $RPM_BUILD_ROOT/usr/bin/ 53 install -m 755 usr/bin/dasscm $RPM_BUILD_ROOT/usr/bin/ 54 install -m 755 usr/bin/dasscm_remote_update.sh $RPM_BUILD_ROOT/usr/bin/ 55 mkdir -p $RPM_BUILD_ROOT/var/lib/dasscm/ 56 mkdir -p $RPM_BUILD_ROOT/var/lib/dasscm/plugin-results/ 57 58 mkdir -p $RPM_BUILD_ROOT/etc/ 59 install -m 640 etc/dasscm.conf $RPM_BUILD_ROOT/etc/ 60 mkdir -p $RPM_BUILD_ROOT/etc/profile.d/ 61 install -m 644 etc/profile.d/dasscm.sh $RPM_BUILD_ROOT/etc/profile.d/ 62 63 %if %(test -d /etc/bash_completion.d/ && echo 1 || echo 0) 64 %define use_bash_completion 1 65 mkdir -p $RPM_BUILD_ROOT/etc/bash_completion.d/ 66 install -m 644 etc/bash_completion.d/bash_completion_dasscm.sh $RPM_BUILD_ROOT/etc/bash_completion.d/dasscm.sh 67 %endif 68 %if %(test -d /etc/nagios/nrpe.d/ && echo 1 || echo 0) 69 %define use_nagios_nrpe_d 1 70 mkdir -p $RPM_BUILD_ROOT/etc/nagios/nrpe.d/ 71 install -m 644 etc/nagios/nrpe.d/nrpe-dasscm.cfg $RPM_BUILD_ROOT/etc/nagios/nrpe.d/dasscm.cfg 72 %endif 73 # /etc/sudoers.d/ is still uncommon, but very useful, 74 # therefore it is always created 75 mkdir -p $RPM_BUILD_ROOT/etc/sudoers.d/ 76 install -m 440 etc/sudoers.d/nagios_dasscm_check $RPM_BUILD_ROOT/etc/sudoers.d/ 77 78 36 install -m 755 usr/bin/opsi-client $RPM_BUILD_ROOT/usr/bin/ 37 install -m 755 usr/bin/opsi-getDepots.py $RPM_BUILD_ROOT/usr/bin/ 38 install -m 755 usr/bin/opsiws.sh $RPM_BUILD_ROOT/usr/bin/ 79 39 80 40 %clean 81 41 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 82 42 83 # TODO: group dasscm: 419984 # without existing group, %attr(640,root,4199) falls back to root85 # groupadd -g 4199 dasscm86 43 87 44 %files 88 45 %defattr(-,root,root) 89 %dir /var/lib/dasscm/ 90 %dir /var/lib/dasscm/plugin-results/ 91 /usr/bin/dasscm 92 /usr/bin/dasscm_remote_update.sh 93 %doc doc/* subversion-servers.dass-it 94 95 %config(noreplace) %attr(640,root,root) /etc/dasscm.conf 96 /etc/profile.d/dasscm.sh 97 %if 0%{?use_bash_completion} 98 %config(noreplace) /etc/bash_completion.d/dasscm.sh 99 %else 100 %doc etc/bash_completion.d/bash_completion_dasscm.sh 101 %endif 102 103 %if 0%{?use_nagios_nrpe_d} 104 %config(noreplace) /etc/nagios/nrpe.d/dasscm.cfg 105 %else 106 %doc etc/nagios/nrpe.d/nrpe-dasscm.cfg 107 %endif 108 109 # /etc/sudoers.d/ should not belong to dasscm, 110 # but is does currently not exist on most distributions 111 %dir /etc/sudoers.d/ 112 # sudo requires permissions 440 and config files without any "." 113 %attr(440,root,root) %config(noreplace) /etc/sudoers.d/nagios_dasscm_check 46 /usr/bin/*
Note:
See TracChangeset
for help on using the changeset viewer.