Changeset 415 for trunk/samhain.spec.in


Ignore:
Timestamp:
Nov 1, 2012, 7:45:54 AM (12 years ago)
Author:
katerina
Message:

Fixes for tickets #314, #315, #316, #317, #318, #319, #320, and #321.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samhain.spec.in

    r412 r415  
    1414Packager: Andre Oliveira da Costa <brblueser@uol.com.br>
    1515Provides: %{name}
     16Requires(pre): shadow-utils
    1617
    1718# dummy (fix configure warning)
     
    1920
    2021# no quotes here - aparently will be expanded literally
     22
     23%define password %(echo $PASSWORD)
    2124
    2225%define withpwd_prg x@clmytclient@
     
    6568./configure @mydefargs@
    6669make
     70%if "%{withpwd_prg}" == "xDSH_WITH_CLIENT"
     71%if 0%{?password:1}
     72        ./samhain_setpwd samhain new %{password}
     73        mv samhain samhain.old
     74        mv samhain.new samhain
     75%endif
     76%endif
     77
    6778
    6879%install
    69 
    7080rm -rf ${RPM_BUILD_ROOT}
    7181# sstrip shouldn't be used since binaries will be stripped later
     
    8898%clean
    8999rm -rf ${RPM_BUILD_ROOT}
     100
     101%pre
     102if test "x@install_name@" = "xyule"
     103then
     104    getent group samhain >/dev/null || groupadd -r samhain
     105    getent passwd yule >/dev/null || \
     106        useradd -r -g samhain -d  @mydataroot@ -s /sbin/nologin \
     107        -c "samhain server daemon" yule
     108
     109fi
     110exit 0
    90111
    91112%post
     
    197218%attr(644,root,root) @mandir@/man8/@install_name@*
    198219%attr(644,root,root) /etc/logrotate.d/@install_name@
     220%if "%{name}" == "yule"
     221%attr(750,root,samhain) @mydataroot@
     222%attr(750,yule,samhain) @mylogdir@
     223%endif
    199224%config(noreplace) @myrpmconffile@
    200225
    201226%changelog
     227* Tue Oct 23 2012 Rainer Wichmann
     228- fixes for yule installation
     229
    202230* Tue May 16 2006 Rainer Wichmann
    203231- fix manual version, noticed by Imre Gergely
Note: See TracChangeset for help on using the changeset viewer.