From 9caa0246bda1a0f5365ee40884d09fc8868177bf Mon Sep 17 00:00:00 2001 From: Mikhail Kolesnik Date: Mon, 13 Nov 2006 22:27:00 +0200 Subject: wmtop: initial import --- wmtop/.footprint | 6 ++++++ wmtop/.md5sum | 2 ++ wmtop/Pkgfile | 17 +++++++++++++++++ wmtop/wmtop-0.84-makefile.patch | 29 +++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 wmtop/.footprint create mode 100644 wmtop/.md5sum create mode 100644 wmtop/Pkgfile create mode 100644 wmtop/wmtop-0.84-makefile.patch (limited to 'wmtop') 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..." -- cgit v1.2.3