Changeset 1122 for dasscm/trunk


Ignore:
Timestamp:
Nov 29, 2012, 7:43:31 PM (12 years ago)
Author:
joergs
Message:

also use dasscm.install.sh, like debian. cleanup

Location:
dasscm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dasscm/trunk/dasscm.spec

    r977 r1122  
    11#
    2 # Copyright  (c)  2004-2010  dass IT GmbH, Koeln, Germany.
     2# Copyright  (c)  2004-2012  dass IT GmbH, Koeln, Germany.
    33# This file and all modifications and additions to the pristine
    44# package are under the same license as the package itself.
     
    88Name:           dasscm
    99URL:            https://trac.dass-it.de/pub/
    10 License:        GPL
     10License:        GPL-2.0+
    1111Group:          Development/Tools/Version Control
    1212Autoreqprov:    on
    13 Summary:        Dass Configuration Management
     13Summary:        DASS Configuration Management
    1414Version:        1.2
    1515Release:        0
    1616Requires:       subversion perl
    17 #               perl-TermReadKey: 
    18 #                   replaced ReadMode('noecho') by `stty -echo` 
     17#               perl-TermReadKey:
     18#                   replaced ReadMode('noecho') by `stty -echo`
    1919#                   to reduce dependencies
    2020Source:         %{name}_%{version}.orig.tar.gz
     
    2929# Unfortunally, it isn't included in all distributions,
    3030# therefore we added some checks
    31 #%if 0%{?suse_version} > 1100
     31##if 0#{?suse_version} > 1100
    3232#BuildRequires:  subversion
    33 #%endif
     33##endif
    3434 
    3535
    3636%description
    3737dasscm is a tool for handling configuration files with subversion
    38 
    39 Authors:
    40 --------
    41        Joerg Steffens
    4238
    4339%prep
     
    5046
    5147%install
    52 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/
     48# call install script
     49./dasscm.install.sh DESTDIR=$RPM_BUILD_ROOT
    5750
    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 
     51# handle special files, not useful on all distributions
    6352%if %(test -d /etc/bash_completion.d/ && echo 1 || echo 0)
    6453    %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
    6754%endif
    6855%if %(test -d /etc/nagios/nrpe.d/ && echo 1 || echo 0)
    6956    %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
    7257%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 
    7858
    7959
     
    8262
    8363# TODO: group dasscm: 4199
    84 #       without existing group, %attr(640,root,4199)  falls back to root
     64#       without existing group, #attr(640,root,4199)  falls back to root
    8565#       groupadd -g 4199 dasscm
    8666
     
    9474
    9575%config(noreplace)  %attr(640,root,root) /etc/dasscm.conf
    96                     /etc/profile.d/dasscm.sh
     76%config(noreplace)  /etc/profile.d/dasscm.sh
    9777%if 0%{?use_bash_completion}
    9878%config(noreplace)  /etc/bash_completion.d/dasscm.sh
  • dasscm/trunk/etc/profile.d/dasscm.sh

    r932 r1122  
    1 #!/bin/sh
     1#
     2# dasscm: check status
     3#
    24
    35CONFIG="/etc/dasscm.conf"
Note: See TracChangeset for help on using the changeset viewer.