diff options
Diffstat (limited to 'samhain.spec.in')
-rw-r--r-- | samhain.spec.in | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/samhain.spec.in b/samhain.spec.in index d73ea55..2dbc439 100644 --- a/samhain.spec.in +++ b/samhain.spec.in @@ -13,7 +13,11 @@ Source: samhain-%{version}.tar.gz BuildRoot: %{_tmppath}/samhain-%{version}-root Packager: Andre Oliveira da Costa <brblueser@uol.com.br> Provides: %{name} +%if 0%{?suse_version} +Requires(pre): shadow +%else Requires(pre): shadow-utils +%endif # dummy (fix configure warning) # datarootdir = @datarootdir@ @@ -68,7 +72,7 @@ for i in `seq 6` %{?_with_gpg:7}; do ./test/test.sh $i; done ./configure @mydefargs@ make %if "%{withpwd_prg}" == "xDSH_WITH_CLIENT" -%if 0%{?password} +%if "%{password}" != "" ./samhain_setpwd samhain new %{password} mv samhain samhain.old mv samhain.new samhain @@ -87,7 +91,7 @@ make DESTDIR=${RPM_BUILD_ROOT} install # copy script files to /var/lib/samhain so that we can use them right # after the package is installed # -install -m 700 samhain-install.sh init/samhain.startLinux init/samhain.startLSB ${RPM_BUILD_ROOT}@mydataroot@ +install -m 700 samhain-install.sh init/samhain.startLinux init/samhain.startLSB init/samhain.startSystemd ${RPM_BUILD_ROOT}@mydataroot@ # # file list (helpful advice from Lars Kellogg-Stedman) # @@ -110,19 +114,13 @@ fi exit 0 %post -if test "x@sh_lkm@" = x; then - : -else - if test -f /sbin/depmod; then - /sbin/depmod -a - fi -fi if [ "$1" -ge 1 ]; then # Activate boot-time start up cd @mydataroot@ /bin/sh ./samhain-install.sh --verbose install-boot rm -f ./samhain.startLSB rm -f ./samhain.startLinux + rm -f ./samhain.startSystemd if [ -f @sbindir@/@install_name@_stealth ]; then rm -f samhain-install.sh fi @@ -188,8 +186,12 @@ fi %files -f sh_file_list %defattr(-,root,root) -%dir @mylockdir@ -%dir @mylogdir@ +%if "@mylockdir@" != "/run" || "@mylockdir@" != "/var/run" + %dir @mylockdir@ +%endif +%if "@mylogdir@" != "/var/log" + %dir @mylogdir@ +%endif %doc docs/BUGS COPYING docs/Changelog %doc LICENSE docs/FAQ.html docs/HOWTO* docs/MANUAL-2_4.* docs/README* @mydataroot@ @@ -201,6 +203,8 @@ fi %endif %if "%{withpwd_prg}" == "xDSH_WITH_SERVER" @sbindir@/@install_name@ctl + @sbindir@/@install_name@admin-sig.pl + @sbindir@/@install_name@admin-gpg.pl %exclude @sbindir@/@install_name@_setpwd %endif %attr(644,root,root) @mandir@/man5/@install_name@* @@ -213,6 +217,18 @@ fi %config(noreplace) @myrpmconffile@ %changelog +* Tue Jul 28 2020 Rainer Wichmann +- fix bogus date +- fix for recent split into samhainadmin-gpg.pl, samhainadmin-sig.pl + +* Wed May 01 2019 Rainer Wichmann +- remove obsolete part fpr sh_lkm +- add fixes by Franky Van L. (password, directory ownership) + +* Mon Dec 18 2017 Rainer Wichmann +- patch for SLES12 by Pirmin +- fix missing yuleadmin.pl file + * Tue Oct 23 2012 Rainer Wichmann - fixes for yule installation @@ -251,7 +267,7 @@ fi - Fixed typo in samhain.spec - Compiled on RedHat Enterprise Linux ES 3 -* Thu Mar 26 2003 Rainer Wichmann +* Wed Mar 26 2003 Rainer Wichmann - strip REQ_FROM_SERVER in config file path (%config(noreplace) ...) * Sun Jan 12 2003 Rainer Wichmann <support at la-samhna dot de> |