Bladeren bron

prevent included file command from building, make it depend on file package itself

Thorsten Hohmeier 20 jaren geleden
bovenliggende
commit
4460d17db9
2 gewijzigde bestanden met toevoegingen van 26 en 35 verwijderingen
  1. 24 27
      sleuthkit/sleuthkit.patch
  2. 2 8
      sleuthkit/sleuthkit.spec

+ 24 - 27
sleuthkit/sleuthkit.patch

@@ -1,7 +1,13 @@
 Index: Makefile
---- Makefile.orig	2005-04-08 22:10:03 +0200
-+++ Makefile	2005-07-07 13:43:43 +0200
-@@ -14,13 +14,13 @@
+--- Makefile.orig	2005-10-13 19:26:28 +0200
++++ Makefile	2005-10-29 14:44:05 +0200
+@@ -9,18 +9,18 @@
+ $(DIRS):
+ 	mkdir -p $@
+ 
+-compile: no-perl mactime sorter file test 
++compile: no-perl mactime sorter test 
+ 
  compile-static: no-perl-static mactime sorter file test
  
  no-perl:
@@ -22,28 +28,19 @@ Index: Makefile
  
  no-perl-static:
  	cd src/auxtools; make "CC=$(CC)" OPT=-static MAKELEVEL=
-Index: TSK.install
---- src/file/TSK.install.orig	2005-10-13 19:26:28 +0200
-+++ src/file/TSK.install	2005-10-27 10:51:26 +0200
-@@ -8,17 +8,11 @@
- if (test -f './Makefile') then
- 	true
- else
--	if [ "x${CC}" = "x" ]; then
--		./configure             \
--          --prefix=`cd ../..; pwd`    \
--          --exec-prefix=`cd ../..; pwd`   \
-+    ./configure             \
-+      --prefix=`cd ../..; pwd`    \
-+      --exec-prefix=`cd ../..; pwd` \
-+      --disable-shared \
-       || exit $?
--	else
--		CC="${CC}" ./configure          \
--          --prefix=`cd ../..; pwd`    \
--          --exec-prefix=`cd ../..; pwd`   \
--      || exit $?
--	fi
+Index: check-install
+--- check-install.orig	2005-10-13 19:26:28 +0200
++++ check-install	2005-10-29 14:51:36 +0200
+@@ -45,12 +45,6 @@
+   echo "ERROR: Missing diskstat tool";
  fi
- make
- make install
+ 
+-if (test -x "bin/file") then
+-  blah=1;
+-else
+-  echo "ERROR: Missing 'file' command";
+-fi
+-
+ if (test -x "bin/mactime") then
+   blah=1;
+ else

+ 2 - 8
sleuthkit/sleuthkit.spec

@@ -33,7 +33,7 @@ Class:        PLUS
 Group:        System
 License:      GPL
 Version:      2.03
-Release:      20051027
+Release:      20051029
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/sleuthkit/sleuthkit-%{version}.tar.gz
@@ -43,7 +43,7 @@ Patch0:       sleuthkit.patch
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, perl-time
-PreReq:       OpenPKG, openpkg >= 20040130, perl, perl-time
+PreReq:       OpenPKG, openpkg >= 20040130, perl, perl-time, file
 AutoReq:      no
 AutoReqProv:  no
 
@@ -77,9 +77,6 @@ AutoReqProv:  no
         -e 's;/usr/local/bin/;%{l_prefix}/bin/;' \
         -e 's;read perlexe;exit 1;' \
         src/sorter/install src/timeline/config-perl
-    %{l_shtool} subst \
-        -e 's;\(MAGIC = \)\$(pkgdatadir)/magic;\1%{l_prefix}/share/sleuthkit/file/magic;' \
-        src/file/src/Makefile.in
 
 %build
     #   build programs
@@ -102,7 +99,6 @@ AutoReqProv:  no
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/bin \
         $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
-        $RPM_BUILD_ROOT%{l_prefix}/share/sleuthkit/file \
         $RPM_BUILD_ROOT%{l_prefix}/share/sleuthkit/sorter
     %{l_shtool} install -c -m 755 \
         bin/* $RPM_BUILD_ROOT%{l_prefix}/bin/
@@ -110,8 +106,6 @@ AutoReqProv:  no
         man/man1/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
     %{l_shtool} install -c -m 644 \
         share/sorter/* $RPM_BUILD_ROOT%{l_prefix}/share/sleuthkit/sorter/
-    %{l_shtool} install -c -m 644 \
-        share/file/* $RPM_BUILD_ROOT%{l_prefix}/share/sleuthkit/file/
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}