diff options
author | Markus Nigbur <pyrania@gentoo.org> | 2003-09-20 15:04:38 +0000 |
---|---|---|
committer | Markus Nigbur <pyrania@gentoo.org> | 2003-09-20 15:04:38 +0000 |
commit | 88670f714ebdf68776a6172c1ce5dcd6bb70d960 (patch) | |
tree | 80097d27c6df714f04b7cec3596eabfa36f1a31e /app-misc | |
parent | Altered initscript to integrate into Gentoo's initsystem. (diff) | |
download | gentoo-2-88670f714ebdf68776a6172c1ce5dcd6bb70d960.tar.gz gentoo-2-88670f714ebdf68776a6172c1ce5dcd6bb70d960.tar.bz2 gentoo-2-88670f714ebdf68776a6172c1ce5dcd6bb70d960.zip |
Altered initscript to integrate into Gentoo's initsystem.
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/uptimed/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/uptimed/Manifest | 6 | ||||
-rw-r--r-- | app-misc/uptimed/files/digest-uptimed-0.3.0-r1 | 1 | ||||
-rw-r--r-- | app-misc/uptimed/files/uptimed | 12 | ||||
-rw-r--r-- | app-misc/uptimed/uptimed-0.3.0-r1.ebuild | 40 |
5 files changed, 63 insertions, 4 deletions
diff --git a/app-misc/uptimed/ChangeLog b/app-misc/uptimed/ChangeLog index 2ca4d773734d..ba727dc8b4bc 100644 --- a/app-misc/uptimed/ChangeLog +++ b/app-misc/uptimed/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/uptimed # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/ChangeLog,v 1.7 2003/07/01 22:31:32 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/ChangeLog,v 1.8 2003/09/20 15:04:31 pyrania Exp $ + +*uptimed-0.3.0-r1 (20 Sep 2003) + + 20 Sep 2003; Markus Nigbur,,, <pyrania@gentoo.org> uptimed-0.3.0-r1.ebuild, + files/uptimed: + Altered initscript to integrate into Gentoo's initsystem. *uptimed-0.3.0 (17 Jun 2003) diff --git a/app-misc/uptimed/Manifest b/app-misc/uptimed/Manifest index 45412cc94551..ccbe39e1c08f 100644 --- a/app-misc/uptimed/Manifest +++ b/app-misc/uptimed/Manifest @@ -1,8 +1,8 @@ MD5 006aca904bf3c200ff36ae34c8d964d6 uptimed-0.2.0-r1.ebuild 1012 MD5 0ec98163e1bb4b55142664aadf88a7b7 uptimed-0.3.0.ebuild 1150 -MD5 0ec98163e1bb4b55142664aadf88a7b7 uptimed-0.3.0-r1.ebuild 1150 -MD5 af69f1f87fd74eec995f48e2ed8066ed ChangeLog 1044 -MD5 c8ffcf734ff78c4c58f247e531772771 files/uptimed 516 +MD5 51fc3771b60db6c62af0d83e95877a56 uptimed-0.3.0-r1.ebuild 1155 +MD5 46b8999e73d974a7b8c79bc1853055a0 ChangeLog 1047 +MD5 7c9e040c4a204ab81858f64217239af9 files/uptimed 610 MD5 62e0d24df328ce3efaeda371e633cb87 files/digest-uptimed-0.2.0-r1 66 MD5 b288b16ae3891f2fe74994ee41960bfd files/digest-uptimed-0.3.0-r1 66 MD5 b288b16ae3891f2fe74994ee41960bfd files/digest-uptimed-0.3.0 66 diff --git a/app-misc/uptimed/files/digest-uptimed-0.3.0-r1 b/app-misc/uptimed/files/digest-uptimed-0.3.0-r1 new file mode 100644 index 000000000000..458869f3e14f --- /dev/null +++ b/app-misc/uptimed/files/digest-uptimed-0.3.0-r1 @@ -0,0 +1 @@ +MD5 eab6d75b16bac804b89eebf63ee659f8 uptimed-0.3.0.tar.bz2 156131 diff --git a/app-misc/uptimed/files/uptimed b/app-misc/uptimed/files/uptimed index ddd34daa0754..d9b2a4d77ffb 100644 --- a/app-misc/uptimed/files/uptimed +++ b/app-misc/uptimed/files/uptimed @@ -1,12 +1,24 @@ #!/sbin/runscript +# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed,v 1.2 2003/09/20 15:04:31 pyrania Exp $ +# # Copyright 2002 Sean Russell # Distributed under the terms of the GNU General Public License, v2 or later +# +# Edited to better integrate into Gentoo's initsystem. +# Markus Nigbur <pYrania@gentoo.org> +# September 20, 2003 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.0-r1.ebuild b/app-misc/uptimed/uptimed-0.3.0-r1.ebuild new file mode 100644 index 000000000000..a5f3e6ae49ab --- /dev/null +++ b/app-misc/uptimed/uptimed-0.3.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/uptimed-0.3.0-r1.ebuild,v 1.1 2003/09/20 15:04:31 pyrania Exp $ + +DESCRIPTION="Standard informational utilities and process-handling tools" +SRC_URI="mirror://sourceforge/uptimed/${P}.tar.bz2" +HOMEPAGE="http://unixcode.org/uptimed/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86" + +src_compile() { + cp ${S}/Makefile.am ${S}/Makefile.am.t + cp ${S}/Makefile.in ${S}/Makefile.in.t + + sed "s:-d /var/:-d ${D}/var/:g" ${S}/Makefile.am.t > ${S}/Makefile.am + sed "s:-d /var/:-d ${D}/var/:g" ${S}/Makefile.in.t > ${S}/Makefile.in + + econf + 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() { + einfo "To start uptimed, you must enable the /etc/init.d/uptimed rc file" + einfo "You may start uptimed now with:" + einfo "/etc/init.d/uptimed start" + einfo "To view your uptimes, use the command 'uprecords'." +} |