mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-02-22 02:55:52 +01:00
initial import
This commit is contained in:
3
x11-misc/bubblemon/Manifest
Normal file
3
x11-misc/bubblemon/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
AUX bubblemon-1.46-correct_mem-swap_values.patch 4549 RMD160 48d0e1775a6d7f38518cadc8f11544e68cfbaeab SHA1 0298dc7c9bd24c93f4305d2758a2c05dfd04148f SHA256 1fbe00f7892b0d1e258d137812b58a5147739e8c2503f40e37c09ebf73fae256
|
||||
DIST bubblemon-dockapp-1.46.tar.gz 40001 RMD160 79e8be36cd11a2c6f4998cd747b6125696603a81 SHA1 172de9ea7d78e4578143469187a72da8f836647a SHA256 f928073d3c69b2668e89b93cdcca5f390437831aab3eac3aa2129f8713e79dbf
|
||||
EBUILD bubblemon-1.46-r10.ebuild 1001 RMD160 aa0ea160d7eb84bd1c497ee73195bac63205fcda SHA1 cb18e9d7a344b6c5cbc866aedc2814b5d7b86fa9 SHA256 7cb0c32c3f7faec99ba5a799cf478c78e3cc1db95000aa708487efcf4e754f73
|
||||
35
x11-misc/bubblemon/bubblemon-1.46-r10.ebuild
Normal file
35
x11-misc/bubblemon/bubblemon-1.46-r10.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-misc/bubblemon/bubblemon-1.46.ebuild,v 1.7 2006/02/07 21:11:56 blubb Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A fun monitoring applet for your desktop, complete with swimming duck"
|
||||
HOMEPAGE="http://www.ne.jp/asahi/linux/timecop"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
S=${WORKDIR}/${PN}-dockapp-${PV}
|
||||
SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${PN}-dockapp-${PV}.tar.gz"
|
||||
DEPEND="virtual/libc
|
||||
=x11-libs/gtk+-1.2*
|
||||
>=sys-apps/sed-4"
|
||||
|
||||
src_unpack(){
|
||||
unpack ${A}
|
||||
cd ${S}
|
||||
epatch ${FILESDIR}/bubblemon-1.46-correct_mem-swap_values.patch || die "epatch failed"
|
||||
}
|
||||
src_compile() {
|
||||
sed -i "s/CFLAGS = -O3/CFLAGS = ${CFLAGS}/" Makefile
|
||||
# sed -i "s/# EXTRA += -DUPSIDE_DOWN_DUCK/EXTRA += -DUPSIDE_DOWN_DUCK/" Makefile
|
||||
|
||||
make || die
|
||||
}
|
||||
|
||||
src_install () {
|
||||
into /usr
|
||||
dobin bubblemon
|
||||
dodoc ChangeLog README doc/* misc/*
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
--- bubblemon-dockapp-1.46/sys_linux.c 2003-10-01 04:30:41.000000000 +0200
|
||||
+++ bubblemon-dockapp-1.46-patched/sys_linux.c 2007-02-18 17:43:46.000000000 +0100
|
||||
@@ -69,89 +69,92 @@ int system_cpu(void)
|
||||
return cpuload;
|
||||
}
|
||||
|
||||
+/* code was taken from wmsysmon which is better */
|
||||
int system_memory(void)
|
||||
{
|
||||
- u_int64_t my_mem_used, my_mem_max;
|
||||
- u_int64_t my_swap_used, my_swap_max;
|
||||
-#ifdef KERNEL_26
|
||||
- char *p;
|
||||
-#endif
|
||||
-
|
||||
- static int mem_delay = 0;
|
||||
- FILE *mem;
|
||||
- static u_int64_t aa, ab, ac, ad;
|
||||
-#ifndef KERNEL_26
|
||||
- static u_int64_t ae, af, ag, ah;
|
||||
-#endif
|
||||
- /* put this in permanent storage instead of stack */
|
||||
- static char shit[2048];
|
||||
-
|
||||
- /* we might as well get both swap and memory at the same time.
|
||||
- * sure beats opening the same file twice */
|
||||
+ static int mem_delay = 0;
|
||||
if (mem_delay-- <= 0) {
|
||||
+ FILE *memfp;
|
||||
+ char buf[1024];
|
||||
+ long mem_total = 0;
|
||||
+ long mem_buffers = 0;
|
||||
+ long mem_cache = 0;
|
||||
+ long swap_total = 0;
|
||||
+ long swap_free = 0;
|
||||
#ifdef KERNEL_26
|
||||
- mem = fopen("/proc/meminfo", "r");
|
||||
- memset(shit, 0, sizeof(shit));
|
||||
- fread(shit, 2048, 1, mem);
|
||||
- p = strstr(shit, "MemTotal");
|
||||
- if (p) {
|
||||
- sscanf(p, "MemTotal:%Ld", &aa);
|
||||
- my_mem_max = aa << 10;
|
||||
-
|
||||
- p = strstr(p, "Active");
|
||||
- if (p) {
|
||||
- sscanf(p, "Active:%Ld", &ab);
|
||||
- my_mem_used = ab << 10;
|
||||
-
|
||||
- p = strstr(p, "SwapTotal");
|
||||
- if (p) {
|
||||
- sscanf(p, "SwapTotal:%Ld", &ac);
|
||||
- my_swap_max = ac << 10;
|
||||
-
|
||||
- p = strstr(p, "SwapFree");
|
||||
- if (p) {
|
||||
- sscanf(p, "SwapFree:%Ld", &ad);
|
||||
- my_swap_used = my_swap_max - (ad << 10);
|
||||
+ static char *p_mem_tot=NULL, *p_mem_free, *p_mem_buffers, *p_mem_cache;
|
||||
+ static char *p_swap_total, *p_swap_free;
|
||||
+
|
||||
+ static long mem_free = 0;
|
||||
+
|
||||
+ memfp = fopen("/proc/meminfo", "r");
|
||||
+ fread(buf, 1024, 1, memfp);
|
||||
|
||||
- bm.mem_used = my_mem_used;
|
||||
- bm.mem_max = my_mem_max;
|
||||
- bm.swap_used = my_swap_used;
|
||||
- bm.swap_max = my_swap_max;
|
||||
- }
|
||||
+ if (!p_mem_tot)
|
||||
+ {
|
||||
+ p_mem_tot = strstr(buf, "MemTotal:" ) + 13;
|
||||
+ p_mem_free = strstr(buf, "MemFree:" ) + 13;
|
||||
+ p_mem_buffers = strstr(buf, "Buffers:" ) + 13;
|
||||
+ p_mem_cache = strstr(buf, "Cached:" ) + 13;
|
||||
+ p_swap_total = strstr(buf, "SwapTotal:") + 13;
|
||||
+ p_swap_free = strstr(buf, "SwapFree:" ) + 13;
|
||||
}
|
||||
- }
|
||||
- }
|
||||
- fclose(mem);
|
||||
- mem_delay = 25;
|
||||
+
|
||||
+
|
||||
+ sscanf(p_mem_tot, "%ld", &mem_total );
|
||||
+ sscanf(p_mem_free, "%ld", &mem_free );
|
||||
+ sscanf(p_mem_buffers, "%ld", &mem_buffers);
|
||||
+ sscanf(p_mem_cache, "%ld", &mem_cache );
|
||||
+ sscanf(p_swap_total, "%ld", &swap_total );
|
||||
+ sscanf(p_swap_free, "%ld", &swap_free );
|
||||
+
|
||||
+ fclose(memfp);
|
||||
+
|
||||
+ bm.mem_used = (mem_total - mem_free - mem_buffers - mem_cache) * 1024;
|
||||
+ bm.mem_max = mem_total * 1024;
|
||||
+ bm.swap_used = (swap_total - swap_free) * 1024;
|
||||
+ bm.swap_max = swap_total * 1024;
|
||||
+ mem_delay = 25;
|
||||
#else
|
||||
- mem = fopen("/proc/meminfo", "r");
|
||||
- fgets(shit, 2048, mem);
|
||||
-
|
||||
- fscanf(mem, "%*s %Ld %Ld %Ld %Ld %Ld %Ld", &aa, &ab, &ac,
|
||||
- &ad, &ae, &af);
|
||||
- fscanf(mem, "%*s %Ld %Ld", &ag, &ah);
|
||||
- fclose(mem);
|
||||
- mem_delay = 25;
|
||||
-
|
||||
- /* calculate it */
|
||||
- my_mem_max = aa; /* memory.total; */
|
||||
- my_swap_max = ag; /* swap.total; */
|
||||
-
|
||||
- my_mem_used = ah + ab - af - ae; /* swap.used + memory.used - memory.cached - memory.buffer; */
|
||||
-
|
||||
- if (my_mem_used > my_mem_max) {
|
||||
- my_swap_used = my_mem_used - my_mem_max;
|
||||
- my_mem_used = my_mem_max;
|
||||
- } else {
|
||||
- my_swap_used = 0;
|
||||
- }
|
||||
+ int last_mem = 0, last_swap = 0, first = 1;
|
||||
+ long swap_used = 0;
|
||||
+ long mem_used = 0;
|
||||
+ int Mem_l;
|
||||
+ int Swap_l;
|
||||
+ int i, ents;
|
||||
+
|
||||
+ memfp = fopen("/proc/meminfo", "r");
|
||||
+ for(i = 0; fgets(buf, 1024, memfp); i++) {
|
||||
+ if(strstr(buf, "Mem:")) Mem_l = i;
|
||||
+ else if(strstr(buf, "Swap:")) Swap_l = i;
|
||||
+ }
|
||||
+
|
||||
+ memfp = freopen("/proc/meminfo", "r", memfp);
|
||||
|
||||
- bm.mem_used = my_mem_used;
|
||||
- bm.mem_max = my_mem_max;
|
||||
- bm.swap_used = my_swap_used;
|
||||
- bm.swap_max = my_swap_max;
|
||||
+ for(i = 0, ents = 0; ents < 2 && fgets(buf, 1024, memfp); i++) {
|
||||
+ if(i == Mem_l) {
|
||||
+ sscanf(buf, "%*s %ld %ld %*d %*d %ld %ld",
|
||||
+ &mem_total,
|
||||
+ &mem_used,
|
||||
+ &mem_buffers,
|
||||
+ &mem_cache);
|
||||
+ ents++;
|
||||
+ } else if(i == Swap_l) {
|
||||
+ sscanf(buf, "%*s %ld %ld %ld",
|
||||
+ &swap_total,
|
||||
+ &swap_used,
|
||||
+ &swap_free);
|
||||
+ ents++;
|
||||
+ }
|
||||
+ }
|
||||
+ fclose(memfp);
|
||||
+
|
||||
+ bm.mem_used = mem_used - mem_buffers - mem_cache;
|
||||
+ bm.mem_max = mem_total;
|
||||
+ bm.swap_used = swap_used;
|
||||
+ bm.swap_max = swap_total;
|
||||
+ mem_delay = 25;
|
||||
#endif
|
||||
-
|
||||
/* memory info changed - update things */
|
||||
return 1;
|
||||
}
|
||||
3
x11-misc/bubblemon/files/digest-bubblemon-1.46-r10
Normal file
3
x11-misc/bubblemon/files/digest-bubblemon-1.46-r10
Normal file
@@ -0,0 +1,3 @@
|
||||
MD5 f1f86fe5c725bf3a6f5fef8709992931 bubblemon-dockapp-1.46.tar.gz 40001
|
||||
RMD160 79e8be36cd11a2c6f4998cd747b6125696603a81 bubblemon-dockapp-1.46.tar.gz 40001
|
||||
SHA256 f928073d3c69b2668e89b93cdcca5f390437831aab3eac3aa2129f8713e79dbf bubblemon-dockapp-1.46.tar.gz 40001
|
||||
2
x11-misc/ldtp/Manifest
Normal file
2
x11-misc/ldtp/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST ldtp-1.3.0.tar.gz 407838 RMD160 eb69558b7dd5c952e1b2a6ec425c50c1b4b523d6 SHA1 79fc58da8c728843c5adf68784e641a81a7c2582 SHA256 48c86e405c36ca2a2ee76c7225ad192be929dfd3e2b59d39de226af7577a5876
|
||||
EBUILD ldtp-1.3.0.ebuild 1038 RMD160 99ef3e80b3b29dd844bb7b9b34ad7b2eda522597 SHA1 c621f25b2ceb189dc3eb7d15cc65e1b04364061d SHA256 72859f64c42db4c34874305f7eeceb09b33f572a4095ba2cf8c1d78b2cee4dfd
|
||||
42
x11-misc/ldtp/ldtp-1.3.0.ebuild
Normal file
42
x11-misc/ldtp/ldtp-1.3.0.ebuild
Normal file
@@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
# For bugs/comments/suggestion
|
||||
# Navtej Singh (n.s.buttar@gmail.com)
|
||||
|
||||
|
||||
DESCRIPTION="A high quality test automation framework for desktop applications."
|
||||
HOMEPAGE="http://ldtp.freedesktop.org"
|
||||
#http://download.freedesktop.org/ldtp/1.x/1.3.x/ldtp-1.3.0.tar.gz
|
||||
SRC_URI="http://download.freedesktop.org/${PN}/1.x/1.3.x/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL"
|
||||
SLOT="0"
|
||||
KEYWORDS="ia64 x86"
|
||||
IUSE="localization goptionparse newroles"
|
||||
DEPEND="gnome-extra/at-spi
|
||||
>=dev-libs/glib-2.2.0
|
||||
gnome-extra/libgail-gnome
|
||||
gnome-base/gail
|
||||
dev-lang/python
|
||||
localization? ( sys-devel/gettext )
|
||||
dev-libs/libxml2"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
|
||||
src_compile()
|
||||
{
|
||||
econf \
|
||||
$(use_enable localization) \
|
||||
$(use_enable goptionparse) \
|
||||
$(use_enable newroles) \
|
||||
|| die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
emake DESTDIR="${D}" install || die "install failed"
|
||||
dodoc AUTHORS COPYING NEWS README TODO
|
||||
}
|
||||
Reference in New Issue
Block a user