summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-07-19 20:50:24 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-07-19 20:50:24 +0000
commit27b4ea57ea8201f8dd504f04c769b80d71797f98 (patch)
tree81601e3c6e61be39845d2cd243505628f0c32941 /app-misc/uptimed
parentversion bump (diff)
downloadgentoo-2-27b4ea57ea8201f8dd504f04c769b80d71797f98.tar.gz
gentoo-2-27b4ea57ea8201f8dd504f04c769b80d71797f98.tar.bz2
gentoo-2-27b4ea57ea8201f8dd504f04c769b80d71797f98.zip
new package. Fixes #4013. Submitted by Sean E Russell
Diffstat (limited to 'app-misc/uptimed')
-rw-r--r--app-misc/uptimed/ChangeLog6
-rw-r--r--app-misc/uptimed/files/digest-uptimed-0.2.0-r11
-rw-r--r--app-misc/uptimed/files/uptimed12
-rw-r--r--app-misc/uptimed/files/uptimed-0.2.0.patch34
-rw-r--r--app-misc/uptimed/uptimed-0.2.0-r1.ebuild42
5 files changed, 95 insertions, 0 deletions
diff --git a/app-misc/uptimed/ChangeLog b/app-misc/uptimed/ChangeLog
new file mode 100644
index 000000000000..a3f9cf477b8b
--- /dev/null
+++ b/app-misc/uptimed/ChangeLog
@@ -0,0 +1,6 @@
+# ChangeLog for sys-apps/uptimed
+
+*uptimed-0.2.0 (21 Jun 2002)
+
+ 21 Jun 2002; Sean E. Russell <ser@germane-software.com> ChangeLog:
+ Added initial Portage entry.
diff --git a/app-misc/uptimed/files/digest-uptimed-0.2.0-r1 b/app-misc/uptimed/files/digest-uptimed-0.2.0-r1
new file mode 100644
index 000000000000..bddca428c346
--- /dev/null
+++ b/app-misc/uptimed/files/digest-uptimed-0.2.0-r1
@@ -0,0 +1 @@
+MD5 b7b9b590ebb68833569d1174e2a9ddb4 uptimed-0.2.0.tar.bz2 143689
diff --git a/app-misc/uptimed/files/uptimed b/app-misc/uptimed/files/uptimed
new file mode 100644
index 000000000000..ddd34daa0754
--- /dev/null
+++ b/app-misc/uptimed/files/uptimed
@@ -0,0 +1,12 @@
+#!/sbin/runscript
+# Copyright 2002 Sean Russell
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+start() {
+ uptimed -b
+ start-stop-daemon --quiet --start --pidfile /var/run/uptimed --exec /usr/sbin/uptimed
+}
+
+stop() {
+ start-stop-daemon --quiet --stop --pidfile /var/run/uptimed
+}
diff --git a/app-misc/uptimed/files/uptimed-0.2.0.patch b/app-misc/uptimed/files/uptimed-0.2.0.patch
new file mode 100644
index 000000000000..0a3e13a59490
--- /dev/null
+++ b/app-misc/uptimed/files/uptimed-0.2.0.patch
@@ -0,0 +1,34 @@
+diff -cr uptimed-0.2.0_old/Makefile.am uptimed-0.2.0_new/Makefile.am
+*** uptimed-0.2.0_old/Makefile.am Fri Jun 21 21:28:54 2002
+--- uptimed-0.2.0_new/Makefile.am Fri Jun 21 21:28:25 2002
+***************
+*** 7,10 ****
+ sample-cgi/uprecords.footer uptimed.lsm uptimed.spec
+
+ install-data-local:
+! $(INSTALL) -d /var/spool/uptimed
+--- 7,10 ----
+ sample-cgi/uprecords.footer uptimed.lsm uptimed.spec
+
+ install-data-local:
+! $(INSTALL) -d $(DESTDIR)/var/spool/uptimed
+diff -cr uptimed-0.2.0_old/Makefile.in uptimed-0.2.0_new/Makefile.in
+*** uptimed-0.2.0_old/Makefile.in Mon May 13 02:10:56 2002
+--- uptimed-0.2.0_new/Makefile.in Fri Jun 21 21:22:31 2002
+***************
+*** 366,372 ****
+
+
+ install-data-local:
+! $(INSTALL) -d /var/spool/uptimed
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+--- 366,372 ----
+
+
+ install-data-local:
+! $(INSTALL) -d $(DESTDIR)/var/spool/uptimed
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/app-misc/uptimed/uptimed-0.2.0-r1.ebuild b/app-misc/uptimed/uptimed-0.2.0-r1.ebuild
new file mode 100644
index 000000000000..0fb03fffac93
--- /dev/null
+++ b/app-misc/uptimed/uptimed-0.2.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/uptimed-0.2.0-r1.ebuild,v 1.1 2002/07/19 20:50:24 rphillips Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Standard informational utilities and process-handling tools"
+SRC_URI="http://telia.dl.sourceforge.net/sourceforge/uptimed/${P}.tar.bz2"
+HOMEPAGE="http://unixcode.org/uptimed"
+DEPEND="virtual/glibc"
+RDEPEND="${DEPEND}"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ patch -p1 <${FILESDIR}/${P}.patch
+}
+
+src_compile() {
+ ./configure --prefix=/usr || die
+ emake || die
+}
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/sbin
+ dodir /var/spool/uptimed
+
+ make DESTDIR=${D} install || die
+
+ dodoc README NEWS TODO AUTHORS COPYING CREDITS
+ exeinto /etc/init.d ; newexe ${FILESDIR}/uptimed uptimed
+}
+
+pkg_postinst() {
+ echo -e "\e[32;01m To start uptimed, you must enable the /etc/init.d/uptimed rc file \033[0m"
+ echo -e "\e[32;01m You may start uptimed now with: \033[0m"
+ echo -e "\e[32;01m /etc/init.d/uptimed start \033[0m"
+ echo -e "\e[32;01m To view your uptimes, use the command 'uprecords'.\033[0m"
+}