summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-misc/uptimed/Manifest12
-rw-r--r--app-misc/uptimed/files/digest-uptimed-0.3.93
-rw-r--r--app-misc/uptimed/files/uptimed19
-rw-r--r--app-misc/uptimed/uptimed-0.3.9.ebuild39
4 files changed, 73 insertions, 0 deletions
diff --git a/app-misc/uptimed/Manifest b/app-misc/uptimed/Manifest
new file mode 100644
index 0000000..2841388
--- /dev/null
+++ b/app-misc/uptimed/Manifest
@@ -0,0 +1,12 @@
+AUX uptimed 426 RMD160 b9fee01eeb5fc67831051d74b1b227ee7f53e14c SHA1 ae665099156d4b4bec838938e02350f8daee8ff3 SHA256 d39434712bfdb6fc3577968943d660138c9c4dcba6ce0613ab3ed4178591aa93
+MD5 56326dc9ce386b05157fb8137476f43f files/uptimed 426
+RMD160 b9fee01eeb5fc67831051d74b1b227ee7f53e14c files/uptimed 426
+SHA256 d39434712bfdb6fc3577968943d660138c9c4dcba6ce0613ab3ed4178591aa93 files/uptimed 426
+DIST uptimed-0.3.9.tar.bz2 236323 RMD160 3ffd474577cca2fb735fb787e0ed9086eb5397f0 SHA1 ca675c41abaf994e34238a15aa60012273f8c8c0 SHA256 e77e2b730daf4801b7a9f221a180277610bc99635871ec56e18771118790ed56
+EBUILD uptimed-0.3.9.ebuild 964 RMD160 73876d68ace20de2d0062267576cf452b631328c SHA1 d269510dc1fececf4ae60989421a091831b61709 SHA256 bad31c0b08395233a39073530899d905471458069e226058fff0f7e33e88b538
+MD5 2f5d0768b8039cd3abeabc8b2b16147e uptimed-0.3.9.ebuild 964
+RMD160 73876d68ace20de2d0062267576cf452b631328c uptimed-0.3.9.ebuild 964
+SHA256 bad31c0b08395233a39073530899d905471458069e226058fff0f7e33e88b538 uptimed-0.3.9.ebuild 964
+MD5 a5ac16931c02ac27692b8fd14d600643 files/digest-uptimed-0.3.9 244
+RMD160 2c1bb521c16a8e9dd0ec12361e4961be77e47745 files/digest-uptimed-0.3.9 244
+SHA256 4b311916c81cc7e90ee197f2f156498d759b37f60390acc1317373193159f18f files/digest-uptimed-0.3.9 244
diff --git a/app-misc/uptimed/files/digest-uptimed-0.3.9 b/app-misc/uptimed/files/digest-uptimed-0.3.9
new file mode 100644
index 0000000..8272dc2
--- /dev/null
+++ b/app-misc/uptimed/files/digest-uptimed-0.3.9
@@ -0,0 +1,3 @@
+MD5 f1aa5b40c021fc839dde0381366027aa uptimed-0.3.9.tar.bz2 236323
+RMD160 3ffd474577cca2fb735fb787e0ed9086eb5397f0 uptimed-0.3.9.tar.bz2 236323
+SHA256 e77e2b730daf4801b7a9f221a180277610bc99635871ec56e18771118790ed56 uptimed-0.3.9.tar.bz2 236323
diff --git a/app-misc/uptimed/files/uptimed b/app-misc/uptimed/files/uptimed
new file mode 100644
index 0000000..873d28c
--- /dev/null
+++ b/app-misc/uptimed/files/uptimed
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# Copyright 2002 Sean Russell
+
+start() {
+ ebegin "Starting uptimed"
+ uptimed -b
+ start-stop-daemon --quiet --start --pidfile /var/run/uptimed --exec /usr/sbin/uptimed
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping uptimed"
+ start-stop-daemon --quiet --stop --pidfile /var/run/uptimed
+ eend $?
+}
diff --git a/app-misc/uptimed/uptimed-0.3.9.ebuild b/app-misc/uptimed/uptimed-0.3.9.ebuild
new file mode 100644
index 0000000..9021436
--- /dev/null
+++ b/app-misc/uptimed/uptimed-0.3.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+WANT_AUTOCONF=latest
+WANT_AUTOMAKE=latest
+inherit autotools
+
+DESCRIPTION="System uptime record daemon that keeps track of your highest uptimes"
+HOMEPAGE="http://podgorny.cz/uptimed/"
+SRC_URI="http://podgorny.cz/uptimed/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # respect DESTDIR
+ sed -i -e 's|-d \(/var/spool.*\)$|-d $(DESTDIR)\1|' Makefile.am || \
+ die "sed failed"
+
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake install failed"
+ keepdir /var/spool/uptimed
+ dodoc ChangeLog README TODO AUTHORS CREDITS INSTALL.cgi sample-cgi/*
+ doinitd "${FILESDIR}/uptimed" || die "failed to install init.d file"
+}
+
+pkg_postinst() {
+ elog "Start uptimed with '/etc/init.d/uptimed start'"
+ elog "To view your uptime records, use the command 'uprecords'."
+}