Changes of Revision 4
[-] | Added | uptimed.spec |
x 1
2 +Summary: A daemon to record and keep track of system uptimes 3 +Name: uptimed 4 +Version: 0.3.12 5 +Release: 1 6 +License: GPL 7 +Group: System Environment/Daemons 8 +Source: %{name}-%{version}.tar.bz2 9 +URL: http://podgorny.cz/moin/Uptimed 10 +Patch0: %{name}.diff 11 +Patch1: spoolfix.diff 12 +BuildRoot: /var/tmp/%{name}-buildroot 13 +Packager: Carsten Schoene <cs@linux-administrator.com> 14 +Vendor: linux-administrator.com 15 +Provides: libuptimed.0 16 +BuildRequires: glibc-devel libgcc gcc gcc-c++ 17 + 18 +%description 19 +Uptimed is an uptime record daemon keeping track of the highest 20 +uptimes the system ever had. Instead of using a pid file to 21 +keep sessions apart from each other, it uses the system boot 22 +time. 23 + 24 +Uptimed has the ability to inform you of records and milestones 25 +though syslog and e-mail, and comes with a console front end to 26 +parse the records, which can also easily be used to show your 27 +records on your Web page 28 + 29 +%prep 30 +%setup -q 31 +%patch0 32 +%patch1 -p1 33 +%build 34 +%configure 35 +make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 36 + 37 +%install 38 +rm -rf "$RPM_BUILD_ROOT" 39 +make DESTDIR="$RPM_BUILD_ROOT" install 40 +install -m 755 -d $RPM_BUILD_ROOT/%_docdir/%{name}/sample-cgi 41 +install -m 644 sample-cgi/uprecords.* $RPM_BUILD_ROOT/%_docdir/%{name}/sample-cgi 42 +install -m 755 -d $RPM_BUILD_ROOT/etc/init.d 43 +install -m 755 etc/rc.uptimed $RPM_BUILD_ROOT/etc/init.d/uptimed 44 +install -m 755 boot.uptimed $RPM_BUILD_ROOT/etc/init.d/boot.uptimed 45 +install -m 755 -d $RPM_BUILD_ROOT/var/spool/uptimed 46 +mv $RPM_BUILD_ROOT/etc/uptimed.conf-dist $RPM_BUILD_ROOT/etc/uptimed.conf 47 +rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/uptimed-%{version} 48 + 49 +%post 50 +/sbin/ldconfig 51 +/sbin/chkconfig --add boot.uptimed 52 +/sbin/chkconfig --add uptimed 53 + 54 +%postun 55 +/sbin/ldconfig 56 + 57 +%preun 58 +/sbin/chkconfig --del uptimed 59 +/sbin/chkconfig --del boot.uptimed 60 + 61 +%clean 62 +rm -rf "$RPM_BUILD_ROOT" 63 + 64 +%files 65 +%defattr(-,root,root) 66 +%{_defaultdocdir}/%{name}/* 67 +%{_defaultdocdir}/%{name}/sample-cgi/* 68 +%config(noreplace) /etc/uptimed.conf 69 +%config /etc/init.d/uptimed 70 +%config /etc/init.d/boot.uptimed 71 +%{_sbindir}/uptimed 72 +%{_bindir}/uprecords 73 +%{_mandir}/*/* 74 +%{_libdir}/libuptimed.* 75 +%dir /var/spool/uptimed 76 + 77 +%changelog 78 +* Thu Nov 01 2007 Carsten Schoene <cs@linux-administrator.com> 79 +- version bump to 0.3.12 80 + 81 +* Sun Jan 07 2007 Carsten Schoene <cs@linux-administrator.com> 82 +- version bump to 0.3.9 83 + 84 +* Sun Mar 05 2006 Carsten Schoene <cs@linux-administrator.com> 85 +- version bump to 0.3.7 86 + 87 +* Mon Oct 17 2005 Carsten Schoene <cs@linux-administrator.com> 88 +- rebuild for SuSE 10.0 89 + 90 +* Sat Apr 09 2005 Carsten Schoene <cs@linux-administrator.com> 91 +- rebuild for SuSE9.3 92 + 93 +* Wed Oct 27 2004 Carsten Schoene <cs@linux-administrator.com> 94 +- rebuild for SuSE 9.2, fixed uptimed init script - added INFO header 95 + without it segfaults insserv 96 + 97 +* Sun Jun 20 2004 Carsten Schoene <cs@linux-administrator.com> 98 +- version bump to 0.3.3 for SuSE 9.1 99 + 100 +* Fri May 04 2004 Carsten Schoene <cs@linux-administrator.com> 101 +- version bump to 0.3.2 for SuSE 9.1 102 + 103 +* Mon May 04 2004 Carsten Schoene <cs@linux-administrator.com> 104 +- Changed .spec for SuSE 9.1 RPM 105 + 106 +* Fri Jan 30 2004 Carsten Schoene <cs@linux-administrator.com> 107 +- Changed .spec for SuSE 9.0 RPM 108 +- Added patch which creates init script for boot id creation 109 + 110 +* Tue May 14 2002 Brett Pemberton <generica@email.com> 111 +- Reset release to 0 for uptimed-2.0 112 +- Change source location 113 + 114 +* Sat Mar 16 2002 Brett Pemberton <generica@email.com> 115 +- Add /etc/rc.d/init.d/uptimed 116 +- Use chkconfig 117 + 118 +* Wed Mar 13 2002 Brett Pemberton <generica@email.com> 119 +- Automate rc.{sysinit,local} add/remove 120 +- Warn if rc.{sysinit,local} not found 121 + 122 +* Fri Dec 21 2001 Brett Pemberton <generica@email.com> 123 +- Handle sample-cgi dir properly 124 +- Install uptimed.conf properly 125 +- Install /var/spool/uptimed 126 +- Warn user to finish configuring 127 + 128 +* Thu Dec 20 2001 Brett Pemberton <generica@email.com> 129 +- Initial spec-file 130 + 131 |