diff options
author | Greg Kroah-Hartman <gregkh@gentoo.org> | 2007-12-18 22:22:52 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@gentoo.org> | 2007-12-18 22:22:52 +0000 |
commit | d13664ab5ade9f17f00fe7db1bdb6e776ee9bc48 (patch) | |
tree | f372bc157e650be355e157ad88b8b73cce5587ba /sys-kernel/kerneloops | |
parent | Stable for HPPA (bug #202730). (diff) | |
download | gentoo-2-d13664ab5ade9f17f00fe7db1bdb6e776ee9bc48.tar.gz gentoo-2-d13664ab5ade9f17f00fe7db1bdb6e776ee9bc48.tar.bz2 gentoo-2-d13664ab5ade9f17f00fe7db1bdb6e776ee9bc48.zip |
added init.d file, USE AT YOUR OWN RISK!!!
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'sys-kernel/kerneloops')
-rw-r--r-- | sys-kernel/kerneloops/ChangeLog | 14 | ||||
-rw-r--r-- | sys-kernel/kerneloops/files/digest-kerneloops-0.5-r1 | 3 | ||||
-rwxr-xr-x | sys-kernel/kerneloops/files/kerneloops | 33 | ||||
-rw-r--r-- | sys-kernel/kerneloops/kerneloops-0.5-r1.ebuild | 37 |
4 files changed, 86 insertions, 1 deletions
diff --git a/sys-kernel/kerneloops/ChangeLog b/sys-kernel/kerneloops/ChangeLog index 669c867a49f1..75e4febabaec 100644 --- a/sys-kernel/kerneloops/ChangeLog +++ b/sys-kernel/kerneloops/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for sys-kernel/kerneloops # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kerneloops/ChangeLog,v 1.1 2007/12/18 17:23:33 gregkh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kerneloops/ChangeLog,v 1.2 2007/12/18 22:22:51 gregkh Exp $ + +*kerneloops-0.5-r1 (18 Dec 2007) + + 18 Dec 2007; Greg Kroah-Hartman <gregkh@gentoo.org> +files/kerneloops, + +kerneloops-0.5-r1.ebuild: + added a init.d file to start this up automatically. + + Note that you MUST edit the /etc/kerneloops.org file by hand for this to work + properly, and that you might be sending data to the world that you don't + realize! + + USE AT YOUR OWN RISK!!! *kerneloops-0.5 (18 Dec 2007) diff --git a/sys-kernel/kerneloops/files/digest-kerneloops-0.5-r1 b/sys-kernel/kerneloops/files/digest-kerneloops-0.5-r1 new file mode 100644 index 000000000000..1c0d56d899dd --- /dev/null +++ b/sys-kernel/kerneloops/files/digest-kerneloops-0.5-r1 @@ -0,0 +1,3 @@ +MD5 312a235c396dd37d7d9eb185cf9eaab5 kerneloops-0.5.tar.gz 31792 +RMD160 4d52ef475e4e6c510e5efbf97441d87c3afb09e3 kerneloops-0.5.tar.gz 31792 +SHA256 94a00459df4295965b0177a7015ad47522797dbadb131a72adf69cebb4d5a830 kerneloops-0.5.tar.gz 31792 diff --git a/sys-kernel/kerneloops/files/kerneloops b/sys-kernel/kerneloops/files/kerneloops new file mode 100755 index 000000000000..c6c1c776107a --- /dev/null +++ b/sys-kernel/kerneloops/files/kerneloops @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kerneloops/files/kerneloops,v 1.1 2007/12/18 22:22:52 gregkh Exp $ + +depend() { + need net +} + +exec="/usr/sbin/kerneloops" +prog=$(basename $exec) +conf="/etc/kerneloops.org" +pidfile="/var/run/${prog}.pid" + +checkconfig() { + if [ ! -e $conf ] ; then + eerror "You need an ${exec} file to run $prog" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting Kerneloops Monitor daemon" + start-stop-daemon --start --quiet --background --pidfile ${pidfile} --make-pidfile --exec ${exec} -- --nodaemon + eend $? +} + +stop() { + ebegin "Stopping Kerneloops Monitor daemon" + start-stop-daemon --stop --quiet --pidfile ${pidfile} --name ${prog} + eend $? +} diff --git a/sys-kernel/kerneloops/kerneloops-0.5-r1.ebuild b/sys-kernel/kerneloops/kerneloops-0.5-r1.ebuild new file mode 100644 index 000000000000..047b5ba734ea --- /dev/null +++ b/sys-kernel/kerneloops/kerneloops-0.5-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kerneloops/kerneloops-0.5-r1.ebuild,v 1.1 2007/12/18 22:22:51 gregkh Exp $ + +inherit eutils + +DESCRIPTION="Tool to automatically collect and submit Linux kernel crash signatures" +HOMEPAGE="http://www.kerneloops.org/" +SRC_URI="http://www.kerneloops.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="net-misc/curl" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${WORKDIR}" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + + doinitd "${FILESDIR}"/kerneloops || die "doinitd failed" + +} + +pkg_postinst() { + ewarn "Be careful, you need to edit the /etc/kerneloops.org config file to" + ewarn "be able to successfully run this program. It is still very raw, and" + ewarn "you need to be aware of the potential information that you could" + ewarn "send to the world when running this program." + ewarn "" + ewarn "You have been warned, use at your own risk!" +} |