[onesixtyone] Resurrect for fedora 17
rebus
rebus at fedoraproject.org
Fri Aug 3 00:08:39 UTC 2012
commit 8f16c96e127e6868cb445f44e99ff8c042a4c844
Author: Michal Ambroz <rebus at seznam.cz>
Date: Fri Aug 3 02:08:00 2012 +0200
Resurrect for fedora 17
.gitignore | 1 +
onesixtyone.spec | 27 ++++++++++++++++++---------
sources | 1 +
3 files changed, 20 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f44cbe0..cb4b57d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/onesixtyone-0.3.2.tar.gz
+/onesixtyone-0.3.2.tar.gz.sig
diff --git a/onesixtyone.spec b/onesixtyone.spec
index ec53092..c6342d4 100644
--- a/onesixtyone.spec
+++ b/onesixtyone.spec
@@ -5,15 +5,19 @@ Summary: An efficient SNMP scanner
Group: Applications/Internet
License: GPLv2+
-URL: http://www.phreedom.org/solar/onesixtyone/
-Source0: http://www.phreedom.org/solar/onesixtyone/%{name}-%{version}.tar.gz
+URL: http://www.phreedom.org/software/onesixtyone/
+Source0: http://www.phreedom.org/software/onesixtyone/releases/%{name}-%{version}.tar.gz
+#GPG Signature by "Solar Eclipse <solareclipse at phreedom.org>"
+Source1: http://www.phreedom.org/software/onesixtyone/releases/%{name}-%{version}.tar.gz.sig
+#Manpage
+Source2: %{name}.1
Patch0: onesixtyone-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
onesixtyone takes a different approach to SNMP scanning. It takes advantage of
-the fact that SNMP is a connectionless protocol and sends all SNMP requests
+the fact that SNMP is a connection-less protocol and sends all SNMP requests
as fast as it can. Then the scanner waits for responses to come back and logs
them, in a fashion similar to Nmap ping sweeps.
@@ -22,15 +26,19 @@ them, in a fashion similar to Nmap ping sweeps.
%patch0 -p0
%build
-make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
+make CFLAGS="%{optflags}" %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-install -D onesixtyone $RPM_BUILD_ROOT%{_bindir}/onesixtyone
-install -D -m 0644 dict.txt $RPM_BUILD_ROOT%{_datadir}/onesixtyone/dict.txt
+#Not needed for Fedora, but package exists for EPEL as well
+rm -rf %{buildroot}
+
+install -D onesixtyone %{buildroot}%{_bindir}/onesixtyone
+install -D -m 0644 dict.txt %{buildroot}%{_datadir}/onesixtyone/dict.txt
+install -m 0644 -pD %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
%clean
-rm -rf $RPM_BUILD_ROOT
+#Not needed for Fedora, but package exists for EPEL as well
+rm -rf %{buildroot}
%files
@@ -38,7 +46,8 @@ rm -rf $RPM_BUILD_ROOT
#no copy of GPL in tarball, licencing info in .c file.
%doc ChangeLog README
%{_bindir}/*
-%{_datadir}/onesixtyone
+%{_datadir}/%{name}
+%{_mandir}/man1/%{name}.1.*
%changelog
diff --git a/sources b/sources
index b8137fa..60de0f4 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
+9740bf6aaa9d51f90a9243aa70c5527b onesixtyone-0.3.2.tar.gz.sig
b08ac88615c04fa50d4eeecd75882e3f onesixtyone-0.3.2.tar.gz
More information about the scm-commits
mailing list