summaryrefslogtreecommitdiff
path: root/wmtop
diff options
context:
space:
mode:
authorMikhail Kolesnik <mike@openbunker.org>2006-11-13 22:27:00 +0200
committerMikhail Kolesnik <mike@openbunker.org>2006-11-13 22:27:00 +0200
commit9caa0246bda1a0f5365ee40884d09fc8868177bf (patch)
tree703a26e549da7aedddfc6effa79b74752a9adcdc /wmtop
parent32295a9faf0f964a313a84bb5a4e3fdeaf15e72f (diff)
downloadcontrib-9caa0246bda1a0f5365ee40884d09fc8868177bf.tar.gz
contrib-9caa0246bda1a0f5365ee40884d09fc8868177bf.tar.xz
wmtop: initial import
Diffstat (limited to 'wmtop')
-rw-r--r--wmtop/.footprint6
-rw-r--r--wmtop/.md5sum2
-rw-r--r--wmtop/Pkgfile17
-rw-r--r--wmtop/wmtop-0.84-makefile.patch29
4 files changed, 54 insertions, 0 deletions
diff --git a/wmtop/.footprint b/wmtop/.footprint
new file mode 100644
index 000000000..d06b99ed1
--- /dev/null
+++ b/wmtop/.footprint
@@ -0,0 +1,6 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/wmtop
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/wmtop.1.gz
diff --git a/wmtop/.md5sum b/wmtop/.md5sum
new file mode 100644
index 000000000..10c6f3561
--- /dev/null
+++ b/wmtop/.md5sum
@@ -0,0 +1,2 @@
+804a6fb0cf2ada628c36c8dee310df24 wmtop-0.84-makefile.patch
+2bab22c5bc3a5b887e7c03d6dbfe59d7 wmtop-0.84.tar.bz2
diff --git a/wmtop/Pkgfile b/wmtop/Pkgfile
new file mode 100644
index 000000000..98bc4bbee
--- /dev/null
+++ b/wmtop/Pkgfile
@@ -0,0 +1,17 @@
+# Description: A dockapp that is a mini graphical version of the cpu monitoring utility top
+# URL: http://wmtop.sourceforge.net/
+# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
+# Depends on: x11
+
+name=wmtop
+version=0.84
+release=2
+source=(http://ftp1.sourceforge.net/$name/$name-$version.tar.bz2 \
+ $name-$version-makefile.patch)
+
+build() {
+ cd $name-$version
+ patch -p1 -i $SRC/$name-$version-makefile.patch
+ make linux
+ make DESTDIR=$PKG install
+}
diff --git a/wmtop/wmtop-0.84-makefile.patch b/wmtop/wmtop-0.84-makefile.patch
new file mode 100644
index 000000000..bd2dc0e5c
--- /dev/null
+++ b/wmtop/wmtop-0.84-makefile.patch
@@ -0,0 +1,29 @@
+diff -ru wmtop-0.84-orig/Makefile wmtop-0.84/Makefile
+--- wmtop-0.84-orig/Makefile 2001-03-06 23:30:55.000000000 +0200
++++ wmtop-0.84/Makefile 2006-01-25 22:11:31.000000000 +0200
+@@ -3,11 +3,10 @@
+ LIBS = -lXpm -lXext -lX11
+ INCS = -I/usr/X11R6/share/include -I/usr/X11R6/include
+ OBJS = wmtop.o wmgeneral/wmgeneral.o wmgeneral/misc.o wmgeneral/list.o
+-OPTS = -O3 -g -Wall
+-FLAGS = $(DEBUG) $(OPTS) -D$(OS)
++FLAGS = -Wall -D$(OS) $(CFLAGS)
+ MAKE = make
+ CC = cc
+-PREFIX ?= /usr/local
++PREFIX = $(DESTDIR)/usr
+
+ default:
+ @echo Use '"make os"' where '"os"' is one of:
+@@ -38,9 +37,6 @@
+ rm -f *~
+
+ install: wmtop
+- strip wmtop
+- cp -f wmtop $(PREFIX)/bin/
+- chmod 755 $(PREFIX)/bin/wmtop
+- cp -f wmtop.1 $(PREFIX)/man/man1
+- chmod 644 $(PREFIX)/man/man1/wmtop.1
++ /usr/bin/install -D -o 0 -g 0 -m 755 -s wmtop $(PREFIX)/bin/wmtop
++ /usr/bin/install -D -o 0 -g 0 -m 644 wmtop.1 $(PREFIX)/man/man1/wmtop.1
+ @echo "wmtop Installation finished..."

Generated by cgit