-
Notifications
You must be signed in to change notification settings - Fork 13
/
biggrep.spec.in
107 lines (95 loc) · 3.78 KB
/
biggrep.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Don't try fancy stuff like debuginfo, which is useless on binary-only
# packages. Don't strip binary too
# Be sure buildpolicy set to do nothing
%define __spec_install_post %{nil}
%define debug_package %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define version @PACKAGE_VERSION@
%define release 1
Summary: CERT biggrep
Name: biggrep
Version: %{version}
Release: %{release}%{?dist}
License: GPLv2
Group: Applications/System
Source: %{name}-%{version}.tar.gz
URL: http://github.com/cmu-sei/BigGrep
#for rhel5:
#Requires: python26
#Requires: python >= 2.6, poco-foundation, poco-util, poco-xml
Requires: python >= 2.6
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
#AutoReqProv: no
%description
%{summary} is used to create and query N-gram
indexes of arbitrary binary files.
%define _curdir %(pwd)
%define pythondir %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
%prep
%setup -q -n %{name}-%{version}
%build
./configure --prefix=/usr
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
#make DESTDIR=$RPM_BUILD_ROOT install -C %{name}-%{version}
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/biggrep
install --mode=0644 conf/biggrep/biggrep.conf $RPM_BUILD_ROOT%{_sysconfdir}/biggrep
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
#%%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_mandir}/man1/bgverify.1
%{_mandir}/man1/bgparse.1
%{_mandir}/man1/bgindex.1
%{_mandir}/man1/bgsearch.1
%{_mandir}/man1/bgextractfile.1
%{_mandir}/man5/biggrep.conf.5
%{_bindir}/bgindex
%{_bindir}/bgverify
%{_bindir}/bgsearch
%{_bindir}/bgparse
%{_bindir}/bgextractfile
%{_bindir}/bgcount
#%/usr/share/doc/%{name}-%{version}/LICENSE.txt
%{pythondir}/biggrep/__init__.py
%{pythondir}/biggrep/bgsearch.py
%{pythondir}/biggrep/bgsearch_jobmanager.py
%{pythondir}/biggrep/bgsearch_processor.py
%{pythondir}/biggrep/bgverify_processor.py
%{pythondir}/jobdispatch/__init__.py
%{pythondir}/jobdispatch/jobdispatch.py
%{pythondir}/jobdispatch/jobmanager.py
%{pythondir}/jobdispatch/mockjobmanager.py
%{pythondir}/jobdispatch/processor.py
%config %{_sysconfdir}/biggrep/biggrep.conf
%config %{_prefix}/etc/biggrep.conf
%changelog
* Fri Aug 11 2017 ecoff <[email protected]> 2.7-1
- New autotools build system.
- Remove libpoco dependency.
- New bgextractfile program.
- New logging.
- Add Boost lockfree queue option.
- Add -O overflow option to work with max unique ngram limit
- Add compression support to bgindex and decompression support bgparse/bgdump
* Thu Sep 18 2014 mfcoates <[email protected]> 2.5-1
- Speed & memory consumption improvements for large candidate queries, and index generation.
- Metadata filtering bug fixes.
* Tue Apr 15 2014 mfcoates <[email protected]> 2.4-1
- Yara matches now reported as metadata, terminating wildcard is now supported for metadata filtering, Yara verification is much faster, usability improvements.
* Fri Feb 28 2014 mfcoates <[email protected]> 2.3-1
- Added Yara verification, metadata filtering, configurable index hint table (new index format), rejection during indexing of files that exceed an ngram threshold, bgsearch can now read defaults from a configuration file.
* Fri Nov 15 2013 mfcoates <[email protected]> 2.2-1
- Rearchitect bgsearch to use Jobdispatch, greatly improved search/verification speed.
* Tue Oct 29 2013 mfcoates <[email protected]> 2.1-2
- Staticically linked release for RHEL 5
* Tue Oct 15 2013 mfcoates <[email protected]> 2.1-1
- Numerous indexing-related bug fixes, build/package cleanup/repair
* Mon Jun 24 2013 mfcoates <[email protected]> 2.0-3
- Added MAN pages, renamed bgsearch.py to bgsearch, renamed bgindex_th to bgindex
* Tue Jan 22 2013 hines <[email protected]> 2.0-1
- Intial RPM Build, static binaries only