From 5014ec7d6471d55a9bdb60360a59572563fc6e2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 3 Jul 2012 10:10:15 +0000 Subject: [PATCH] - new. created from repoforge spec https://github.com/repoforge/rpms/raw/master/specs/cfg2html/cfg2html.spec - are you afraid to run this code as root? i am! Changed files: cfg2html.spec -> 1.1 --- cfg2html.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 cfg2html.spec diff --git a/cfg2html.spec b/cfg2html.spec new file mode 100644 index 0000000..2a06c73 --- /dev/null +++ b/cfg2html.spec @@ -0,0 +1,55 @@ +Summary: Tool to collect Linux system configuration into a HTML and text file +Name: cfg2html +Version: 2.50 +Release: 1 +License: Unknown +Group: Applications/System +URL: http://www.cfg2html.com/ +Source0: http://www.cfg2html.com/%{name}-linux-%{version}-20120601_all.zip +# Source0-md5: a3d2991a515f5ed5f23ea0b7dda8f82c +BuildRequires: unzip +Obsoletes: cfg2html-linux < 2.50-1 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Config to HTML is the "swiss army knife" for the ASE, CE, sysadmin +etc. It helps to get the nessary informations to plan an update, to +performe basic trouble shooting or performance analysis. + +As a bonus cfg2html creates a nice HTML and plain ASCII documentation +from Linux System, Cron and At, installed Hardware, installed +Software, Filesystems, Dump- and Swapconfiguration, LVM, Network +Settings, Kernel, Systemenhancements and Applications, Subsystems. + +%prep +%setup -qc + +mv %{name}-linux_*.changes Changes +mv descript.ion README + +%{__tar} xzf %{name}-linux_%{version}*.tar.gz +mv %{name}-linux-%{version}/* . + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8} +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +echo '.so man8/cfg2html-linux.8' > $RPM_BUILD_ROOT%{_mandir}/man8/cfg2html.8 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README* AUTHORS contrib collect *.html *.txt +%dir %{_sysconfdir}/%{name} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/files +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/systeminfo +%attr(755,root,root) %{_bindir}/cfg2html +%attr(755,root,root) %{_bindir}/cfg2html-linux +%{_mandir}/man8/cfg2html.8* +%{_mandir}/man8/cfg2html-linux.8* -- 2.43.0