[crudminer] Initial package import to master.

Konstantin Ryabitsev icon at fedoraproject.org
Wed Oct 26 18:10:09 UTC 2011


commit 96e586f1fd6b782245f8997a509d5c93191e9c34
Author: Konstantin Ryabitsev <icon at fedoraproject.org>
Date:   Wed Oct 26 14:09:55 2011 -0400

    Initial package import to master.

 .gitignore                         |    1 +
 crudminer-0.3.2-system-paths.patch |   35 ++++++++++++++++++++
 crudminer.spec                     |   62 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5f425bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/crudminer-0.3.2.tar.gz
diff --git a/crudminer-0.3.2-system-paths.patch b/crudminer-0.3.2-system-paths.patch
new file mode 100644
index 0000000..0f35ed8
--- /dev/null
+++ b/crudminer-0.3.2-system-paths.patch
@@ -0,0 +1,35 @@
+diff -ur crudminer-0.3.orig/crudminer.py crudminer-0.3/crudminer.py
+--- crudminer-0.3.1.orig/crudminer.py	2011-10-19 15:36:48.000000000 -0400
++++ crudminer-0.3.1/crudminer.py	2011-10-19 15:53:57.491061518 -0400
+@@ -44,8 +44,8 @@
+ 
+ 
+ VERSION  = '0.3.2'
+-CRUDFILE = 'crud.ini'
+-MAILOPTS = 'mailopts.ini'
++CRUDFILE = '/etc/crudminer/crud.ini'
++MAILOPTS = '/etc/crudminer/mailopts.ini'
+ 
+ dotremove = re.compile('^\.$', re.MULTILINE)
+ 
+diff -ur crudminer-0.3.orig/mailopts.ini crudminer-0.3/mailopts.ini
+--- crudminer-0.3.orig/mailopts.ini	2011-10-19 15:36:48.000000000 -0400
++++ crudminer-0.3/mailopts.ini	2011-10-19 15:54:57.570533202 -0400
+@@ -1,7 +1,7 @@
+ [main]
+ ; location of the file containing the mapping of paths to site names
+ ; and admin emails
+-mailmap = mailmap.ini
++mailmap = /etc/crudminer/mailmap.ini
+ ; how many days do site owners have to update their software?
+ nagdays = 30
+ ; how often should we nag them (in days):
+@@ -9,7 +9,7 @@
+ ; which host to use for smtp connections (on port 25)
+ mailhost = localhost
+ ; where to keep the state database
+-statedb = nagstate.sqlite
++statedb = /var/lib/crudminer/nagstate.sqlite
+ 
+ ; Configuration for the mail that will go out to clients.
+ [nagmail]
diff --git a/crudminer.spec b/crudminer.spec
new file mode 100644
index 0000000..9450c65
--- /dev/null
+++ b/crudminer.spec
@@ -0,0 +1,62 @@
+Name:       crudminer
+Version:    0.3.2
+Release:    2%{?dist}
+Summary:    Find and report insecure web software in a web root
+
+Group:      Applications/System
+License:    GPLv3
+URL:        https://github.com/mricon/CrudMiner
+Source0:    https://github.com/downloads/mricon/CrudMiner/crudminer-%{version}.tar.gz
+Patch0:     crudminer-%{version}-system-paths.patch
+BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildArch:  noarch
+
+%description
+Locate vulnerable software in a web root by comparing the installed files
+against a list of insecure products.
+
+%prep
+%setup -q
+%patch0 -p1 -b .paths
+
+
+%build
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p -m0755 \
+    %{buildroot}%{_sysconfdir}/crudminer \
+    %{buildroot}%{_localstatedir}/lib/crudminer \
+    %{buildroot}%{_bindir} \
+    %{buildroot}%{_mandir}/man5
+install -p -m 0755 crudminer.py %{buildroot}%{_bindir}/crudminer
+install -p -m 0644 *.ini %{buildroot}%{_sysconfdir}/crudminer/
+install -p -m 0644 crudminer.5 %{buildroot}%{_mandir}/man5/
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc tests COPYING TODO README.rst
+%dir %{_sysconfdir}/crudminer
+%dir %{_localstatedir}/lib/crudminer
+%config(noreplace) %{_sysconfdir}/crudminer/*.ini
+%{_bindir}/*
+%{_mandir}/man5/*
+
+%changelog
+* Wed Oct 26 2011 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.3.2-2
+- Update summary to be more descriptive.
+- Minor readability fixes.
+
+* Fri Oct 21 2011 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.3.2-1
+- New version 0.3.2
+- Man file is now bundled.
+- sharedstatedir doesn't exist in older RPMs, use localstatedir/lib
+
+* Wed Oct 19 2011 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.3-1
+- Initial packaging.
+
diff --git a/sources b/sources
index e69de29..0524fb3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c279abe0dbbb4f3c1d8db3efb7170bfa  crudminer-0.3.2.tar.gz


More information about the scm-commits mailing list