add corewatcher packaging info and init file
authorWilliam Douglas <william.douglas@intel.com>
Wed, 24 Oct 2012 18:12:44 +0000 (11:12 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Wed, 24 Oct 2012 18:34:36 +0000 (11:34 -0700)
Signed-off-by: William Douglas <william.douglas@intel.com>
packaging/corewatcher [new file with mode: 0644]
packaging/corewatcher.spec [new file with mode: 0644]

diff --git a/packaging/corewatcher b/packaging/corewatcher
new file mode 100644 (file)
index 0000000..b486538
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/sbin/corewatcher &
\ No newline at end of file
diff --git a/packaging/corewatcher.spec b/packaging/corewatcher.spec
new file mode 100644 (file)
index 0000000..4ce7dda
--- /dev/null
@@ -0,0 +1,49 @@
+Name:       corewatcher
+Summary:    A crash dump reporting tool
+Version:    0.9.8
+Release:    1
+Group:      System/Base
+License:    GPLv2
+Source0:    corewatcher-%{version}.tar.gz
+Source1:    corewatcher
+Requires:   gdb
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  curl-devel
+BuildRequires:  pkgconfig(elementary)
+
+
+%description
+This tool sends application crash reports to the central crash
+reporting database.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+%reconfigure
+
+make
+
+%install
+rm -rf %{buildroot}
+
+%make_install
+
+mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
+mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc{3,4}.d
+install -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/corewatcher
+ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S10corewatcher
+ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc4.d/S10corewatcher
+
+%files
+%defattr(-,root,root,-)
+%config(noreplace) /etc/corewatcher/corewatcher.conf
+%{_sbindir}/corewatcher
+%{_sbindir}/crash-popup
+/usr/share/man/man8/corewatcher.8.gz
+%{_sysconfdir}/corewatcher/gdb.command
+%{_sysconfdir}/rc.d/init.d/corewatcher
+%{_sysconfdir}/rc.d/rc3.d/S10corewatcher
+%{_sysconfdir}/rc.d/rc4.d/S10corewatcher
+%exclude %{_libdir}/systemd/system/corewatcher.service