SPECS: metasploit3.spec - simplify spec a little
glen
glen at pld-linux.org
Thu Jul 24 11:45:53 CEST 2008
Author: glen Date: Thu Jul 24 09:45:53 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- simplify spec a little
---- Files affected:
SPECS:
metasploit3.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/metasploit3.spec
diff -u SPECS/metasploit3.spec:1.3 SPECS/metasploit3.spec:1.4
--- SPECS/metasploit3.spec:1.3 Fri Apr 6 00:26:59 2007
+++ SPECS/metasploit3.spec Thu Jul 24 11:45:47 2008
@@ -1,11 +1,9 @@
# $Revision$, $Date$
-#
# TODO:
# - add R: rails and RubyGems
# - fix double marking files
# - some docs redundant
# - fix req /usr/local/bin/ruby
-#
Summary: The Metasploit Framework - a powerful tool for penetration testing
Summary(pl.UTF-8): Metasploit Framework - narzędzie wspomagające testy penetracyjne
Name: metasploit3
@@ -44,13 +42,11 @@
%prep
%setup -q -n framework-%{version}
+find -name .svn -type d -print0 | xargs -0 rm -rf
%install
rm -rf $RPM_BUILD_ROOT
-find . -name .svn -type d -print0 | xargs -0 rm -rf
-
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_libdir}/metasploit3
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/metasploit3}
# test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition
l=''
@@ -61,15 +57,8 @@
cp -a$l * $RPM_BUILD_ROOT%{_libdir}/metasploit3
-cp -a$l documentation/COPYING COPYING
-cp -a$l documentation/LICENSE LICENSE
-cp -a$l documentation/ChangeLog ChangeLog
-
-cd $RPM_BUILD_ROOT%{_bindir}
-
-for msf in msfcli msfconsole msfd msfencode msfgui msfopcode msfpayload msfpescan msfweb
-do
- ln -sf %{_libdir}/metasploit3/${msf} ${msf}
+for msf in msfcli msfconsole msfd msfencode msfgui msfopcode msfpayload msfpescan msfweb; do
+ ln -sf %{_libdir}/metasploit3/$msf $RPM_BUILD_ROOT%{_bindir}/$msf
done
%clean
@@ -77,7 +66,7 @@
%files
%defattr(644,root,root,755)
-%doc README COPYING LICENSE ChangeLog
+%doc README documentation/{COPYING,LICENSE,ChangeLog}
%attr(755,root,root) %{_bindir}/msf*
%dir %{_libdir}/metasploit3
%attr(755,root,root) %{_libdir}/metasploit3/msf*
@@ -780,6 +769,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2008/07/24 09:45:47 glen
+- simplify spec a little
+
Revision 1.3 2007/04/05 22:26:59 mguevara
- rel 0.6, fixed runtime lookup for rex.rb
@@ -788,4 +780,3 @@
Revision 1.1 2007/04/05 18:52:32 mguevara
- initial release
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/metasploit3.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list