diff options
Diffstat (limited to 'samhain.spec')
-rw-r--r-- | samhain.spec | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/samhain.spec b/samhain.spec index 41e2b43..014f831 100644 --- a/samhain.spec +++ b/samhain.spec @@ -5,7 +5,7 @@ Summary: File integrity and host-based IDS Name: samhain -Version: 4.1.4 +Version: 4.4.10 Release: 1 License: GPL Group: System Environment/Base @@ -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@ @@ -65,10 +69,10 @@ for i in `seq 6` %{?_with_gpg:7}; do ./test/test.sh $i; done # # configure with the user-supplied arguments to './configure' # -./configure --enable-base=6365215,1343398076 +./configure --enable-base=1446395499,305967056 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}/var/lib/samhain +install -m 700 samhain-install.sh init/samhain.startLinux init/samhain.startLSB init/samhain.startSystemd ${RPM_BUILD_ROOT}/var/lib/samhain # # 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 /var/lib/samhain /bin/sh ./samhain-install.sh --verbose install-boot rm -f ./samhain.startLSB rm -f ./samhain.startLinux + rm -f ./samhain.startSystemd if [ -f /usr/local/sbin/samhain_stealth ]; then rm -f samhain-install.sh fi @@ -188,8 +186,12 @@ fi %files -f sh_file_list %defattr(-,root,root) -%dir /run -%dir /var/log +%if "/run" != "/run" || "/run" != "/var/run" + %dir /run +%endif +%if "/var/log" != "/var/log" + %dir /var/log +%endif %doc docs/BUGS COPYING docs/Changelog %doc LICENSE docs/FAQ.html docs/HOWTO* docs/MANUAL-2_4.* docs/README* /var/lib/samhain @@ -201,6 +203,8 @@ fi %endif %if "%{withpwd_prg}" == "xDSH_WITH_SERVER" /usr/local/sbin/samhainctl + /usr/local/sbin/samhainadmin-sig.pl + /usr/local/sbin/samhainadmin-gpg.pl %exclude /usr/local/sbin/samhain_setpwd %endif %attr(644,root,root) /usr/local/man/man5/samhain* @@ -213,6 +217,18 @@ fi %config(noreplace) /etc/samhainrc %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> |