diff options
author | hubertf <hubertf@pkgsrc.org> | 2002-10-24 18:57:05 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2002-10-24 18:57:05 +0000 |
commit | fc94b5059cc3bceb43cd2d87b917ba5ecaf7f747 (patch) | |
tree | ee7b5544d3f993ba6682c830cc5897000ec9f24b /x11 | |
parent | 51e92e91357fbccffa8bf9d15a91aae45d361a42 (diff) | |
download | pkgsrc-fc94b5059cc3bceb43cd2d87b917ba5ecaf7f747.tar.gz |
Import hot-babe-0.1.2: System monitor
Hot-babe is a small graphical utility which display the system
activity in a very special way. When the CPU is idle, it displays
a dressed girl, and when the activity goes up, as the temperature
increases, the girl begins to undress, to finish totally naked when
the system activity reaches 100%. Of course, if you can be shocked
by nudity, don't use it!
Diffstat (limited to 'x11')
-rw-r--r-- | x11/hot-babe/DESCR | 6 | ||||
-rw-r--r-- | x11/hot-babe/Makefile | 13 | ||||
-rw-r--r-- | x11/hot-babe/PLIST | 3 | ||||
-rw-r--r-- | x11/hot-babe/distinfo | 6 | ||||
-rw-r--r-- | x11/hot-babe/patches/patch-aa | 25 | ||||
-rw-r--r-- | x11/hot-babe/patches/patch-ab | 15 |
6 files changed, 68 insertions, 0 deletions
diff --git a/x11/hot-babe/DESCR b/x11/hot-babe/DESCR new file mode 100644 index 00000000000..bf21b505d67 --- /dev/null +++ b/x11/hot-babe/DESCR @@ -0,0 +1,6 @@ +Hot-babe is a small graphical utility which display the system +activity in a very special way. When the CPU is idle, it displays +a dressed girl, and when the activity goes up, as the temperature +increases, the girl begins to undress, to finish totally naked when +the system activity reaches 100%. Of course, if you can be shocked +by nudity, don't use it! diff --git a/x11/hot-babe/Makefile b/x11/hot-babe/Makefile new file mode 100644 index 00000000000..435550277e4 --- /dev/null +++ b/x11/hot-babe/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ +# + +DISTNAME= hot-babe-0.1.2 +CATEGORIES= x11 +MASTER_SITES= http://dindinx.net/hotbabe/downloads/ + +MAINTAINER= hubertf@netbsd.org +HOMEPAGE= http://dindinx.net/hotbabe/ +COMMENT= System monitor + +.include "../../x11/gtk/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/hot-babe/PLIST b/x11/hot-babe/PLIST new file mode 100644 index 00000000000..e098bacb275 --- /dev/null +++ b/x11/hot-babe/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ +bin/hot-babe +man/man1/hot-babe.1 diff --git a/x11/hot-babe/distinfo b/x11/hot-babe/distinfo new file mode 100644 index 00000000000..b889b150962 --- /dev/null +++ b/x11/hot-babe/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ + +SHA1 (hot-babe-0.1.2.tar.gz) = 53410a9f5590250ba862ee220ac9140014c39114 +Size (hot-babe-0.1.2.tar.gz) = 708450 bytes +SHA1 (patch-aa) = 8e016eb38b21083b8d24c23ac480ebfd5275feb5 +SHA1 (patch-ab) = ebb9a0fae24c0ad6719fe99b34c77e49f91e02bc diff --git a/x11/hot-babe/patches/patch-aa b/x11/hot-babe/patches/patch-aa new file mode 100644 index 00000000000..ba032253583 --- /dev/null +++ b/x11/hot-babe/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ + +--- hot-babe.c.orig Sat Sep 21 16:53:24 2002 ++++ hot-babe.c +@@ -74,6 +74,12 @@ + /* returns current CPU load in percent, 0 to 256 */ + static int system_cpu(void) + { ++#ifdef __NetBSD__ ++ double l; ++ if (getloadavg(&l, 1) < 0) ++ return 256; ++ return (int)(256 * (l>1.0? 1.0 : l)); ++#else + unsigned int cpuload; + u_int64_t load, total, oload, ototal; + u_int64_t ab, ac, ad, ae; +@@ -111,6 +117,7 @@ + cpuload = (256 * (load - oload)) / (total - ototal); + + return cpuload; ++#endif + } + + diff --git a/x11/hot-babe/patches/patch-ab b/x11/hot-babe/patches/patch-ab new file mode 100644 index 00000000000..7117fd52806 --- /dev/null +++ b/x11/hot-babe/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/10/24 18:57:05 hubertf Exp $ + +--- Makefile.orig Sat Sep 21 17:28:43 2002 ++++ Makefile +@@ -1,5 +1,4 @@ + # where to install this program +-PREFIX = /usr/local + DESTDIR = ${PREFIX} + + # optimization cflags +@@ -21,3 +20,4 @@ + install: + install -d $(DESTDIR)/bin + install $(INSTALL) hot-babe $(DESTDIR)/bin ++ install $(INSTALL) hot-babe.1 $(DESTDIR)/man/man1 |