Changeset 415 for trunk/samhain.spec.in
- Timestamp:
- Nov 1, 2012, 7:45:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samhain.spec.in
r412 r415 14 14 Packager: Andre Oliveira da Costa <brblueser@uol.com.br> 15 15 Provides: %{name} 16 Requires(pre): shadow-utils 16 17 17 18 # dummy (fix configure warning) … … 19 20 20 21 # no quotes here - aparently will be expanded literally 22 23 %define password %(echo $PASSWORD) 21 24 22 25 %define withpwd_prg x@clmytclient@ … … 65 68 ./configure @mydefargs@ 66 69 make 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 67 78 68 79 %install 69 70 80 rm -rf ${RPM_BUILD_ROOT} 71 81 # sstrip shouldn't be used since binaries will be stripped later … … 88 98 %clean 89 99 rm -rf ${RPM_BUILD_ROOT} 100 101 %pre 102 if test "x@install_name@" = "xyule" 103 then 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 109 fi 110 exit 0 90 111 91 112 %post … … 197 218 %attr(644,root,root) @mandir@/man8/@install_name@* 198 219 %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 199 224 %config(noreplace) @myrpmconffile@ 200 225 201 226 %changelog 227 * Tue Oct 23 2012 Rainer Wichmann 228 - fixes for yule installation 229 202 230 * Tue May 16 2006 Rainer Wichmann 203 231 - fix manual version, noticed by Imre Gergely
Note:
See TracChangeset
for help on using the changeset viewer.