From 4a57db9c35eb5c8bca56840b508ffb6c88ff7d55 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 24 Oct 2012 11:12:44 -0700 Subject: [PATCH] add corewatcher packaging info and init file Signed-off-by: William Douglas --- packaging/corewatcher | 3 +++ packaging/corewatcher.spec | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 packaging/corewatcher create mode 100644 packaging/corewatcher.spec diff --git a/packaging/corewatcher b/packaging/corewatcher new file mode 100644 index 0000000..b486538 --- /dev/null +++ b/packaging/corewatcher @@ -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 index 0000000..4ce7dda --- /dev/null +++ b/packaging/corewatcher.spec @@ -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 -- 2.7.4