Browse Source

missed upgrade due to new upstream site; misc. fixes

Christoph Schug 22 years ago
parent
commit
34c699cd56
3 changed files with 31 additions and 10436 deletions
  1. 6 0
      aide/aide.conf
  2. 0 10421
      aide/aide.patch
  3. 25 15
      aide/aide.spec

+ 6 - 0
aide/aide.conf

@@ -0,0 +1,6 @@
+##
+##  @l_prefix@/etc/aide/aide.conf
+##
+
+#   see aide.conf(5) for details
+

File diff suppressed because it is too large
+ 0 - 10421
aide/aide.patch


+ 25 - 15
aide/aide.spec

@@ -26,23 +26,24 @@
 #   package information
 Name:         aide
 Summary:      Advanced Intrusion Detection Environment
-URL:          http://www.aide.org/
+URL:          http://aide.sourceforge.net/
 Vendor:       R. Lehti & P. Virolainen
 Packager:     The OpenPKG Project
 Distribution: OpenPKG
 Class:        PLUS
 Group:        Security
 License:      GPL
-Version:      0.9
-Release:      20040203
+Version:      0.10
+Release:      20040206
 
 #   package options
 %option       with_fsl  yes
 
 #   list of sources
-Source0:      http://www.cs.tut.fi/~rammer/aide-%{version}.tar.gz
-Source1:      rc.aide
-Source2:      fsl.aide
+Source0:      http://osdn.dl.sourceforge.net/sourceforge/aide/aide-%{version}.tar.gz
+Source1:      aide.conf
+Source2:      rc.aide
+Source3:      fsl.aide
 Patch0:       aide.patch
 
 #   build information
@@ -60,13 +61,14 @@ AutoReq:      no
 AutoReqProv:  no
 
 %description
-    Aide is an intrusion detection system for checking the integrity of files.
+    Aide is an intrusion detection system for checking the integrity of
+    files.
 
 %track
     prog aide = {
-        version   = 0.9
-        url       = ftp://www.cs.tut.fi/pub/src/gnu/
-        regex     = \baide-(__VER__)\.tar\.gz
+        version   = 0.10
+        url       = http://prdownloads.sourceforge.net/aide/
+        regex     = aide-(__VER__)\.tar\.gz
     }
 
 %prep
@@ -86,6 +88,7 @@ AutoReqProv:  no
     LIBS="%{l_fsl_libs}" \
     ./configure \
         --prefix=%{l_prefix} \
+        --sysconfdir=%{l_prefix}/etc/aide \
         --with-dbhmactype=sha1 \
         --with-dbhmackey=T3BlblBLRyBNYWludGFpbmVy \
         --with-zlib=%{l_prefix}
@@ -94,10 +97,13 @@ AutoReqProv:  no
 %install
     rm -rf $RPM_BUILD_ROOT
     %{l_shtool} mkdir -f -p -m 755 \
-        $RPM_BUILD_ROOT%{l_prefix}/var/aide \
-        $RPM_BUILD_ROOT%{l_prefix}/etc/aide
+        $RPM_BUILD_ROOT%{l_prefix}/etc/aide \
+        $RPM_BUILD_ROOT%{l_prefix}/var/aide
     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
-    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+
+    #   supply empty default configuration (just in order to tag it as config)
+    %{l_shtool} install -c -m 644 %{l_value -s -a} \
+        %{SOURCE aide.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/aide/
 
     #   install run-command script
     %{l_shtool} mkdir -f -p -m 755 \
@@ -111,9 +117,13 @@ AutoReqProv:  no
         %{SOURCE fsl.aide} \
         $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
 
+    #   strip installation
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/locale >/dev/null 2>&1 || true
+    strip $RPM_BUILD_ROOT%{l_prefix}/bin/*       >/dev/null 2>&1 || true
+
     #   determine installation files
-    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
-        %{l_files_std} \
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
+        '%config %{l_prefix}/etc/aide/*' \
         '%not %dir %{l_prefix}/etc/fsl' \
         '%config %{l_prefix}/etc/fsl/fsl.aide'