SPECS: nagircbot.spec (NEW) - initial
undefine
undefine at pld-linux.org
Mon Nov 20 00:32:31 CET 2006
Author: undefine Date: Sun Nov 19 23:32:31 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial
---- Files affected:
SPECS:
nagircbot.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/nagircbot.spec
diff -u /dev/null SPECS/nagircbot.spec:1.1
--- /dev/null Mon Nov 20 00:32:31 2006
+++ SPECS/nagircbot.spec Mon Nov 20 00:32:26 2006
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+Summary: NagIRCBot announces the Nagios status on an IRC channel
+Summary(pl): NagIRCBot pokazuje status Nagiosa na kanale IRC
+Name: nagircbot
+Version: 0.0.19
+Release: 0.1
+License: GPL
+Group: Applications
+Source0: http://www.vanheusden.com/nagircbot/%{name}-%{version}.tgz
+# Source0-md5: 99df01fef04b7cb3a8422a23f5c3e50e
+Source1: %{name}.init
+Source2: %{name}.sysconfig
+URL: http://www.vanheusden.com/nagircbot/
+BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires(post,preun): /sbin/chkconfig
+Requires: nagios
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+NagIRCBot announces the Nagios status on an IRC channel.
+
+%description -l pl
+NagIRCBot pokazuje status Nagiosa na kanale IRC.
+
+%prep
+%setup -q
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart "Nagios IRC Bot"
+
+%preun
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc readme.txt
+%attr(755,root,root) %{_bindir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/11/19 23:32:26 undefine
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list