xmbmon: added more patches and cleaned up

This commit is contained in:
Jose V Beneyto 2008-11-12 11:49:01 +01:00
parent 28627b4d59
commit d030d7c6ba
5 changed files with 52 additions and 25 deletions

View File

@ -1,8 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/mbmon
-rwxr-xr-x root/root usr/bin/xmbmon
-r-sr-xr-x root/wheel usr/bin/mbmon
-r-sr-xr-x root/wheel usr/bin/xmbmon
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/mbmon.1.gz
-rw-r--r-- root/root usr/man/man1/xmbmon.1.gz
-r--r--r-- root/wheel usr/man/man1/mbmon.1.gz
-r--r--r-- root/wheel usr/man/man1/xmbmon.1x.gz

View File

@ -1,2 +1,4 @@
295f26a5439564dd4bcf4a47b8e28d46 Makefile.in.diff
ab6614c785f5b653fcc69fb9c02058f0 xmbmon205.tar.gz
c4c08595ee884b53fbc0c78ae623070e xmbmon205_A7N8X-VM.patch
cab271a816ed2aeb3f898f2dee493456 xmbmon205_fflush.patch

33
xmbmon/Makefile.in.diff Normal file
View File

@ -0,0 +1,33 @@
--- Makefile.in.orig 2008-11-12 10:42:22.000000000 +0100
+++ Makefile.in 2008-11-12 10:44:11.000000000 +0100
@@ -37,11 +37,12 @@ LINT=lint
RM=rm -f
INSTALL=install
-INST_DIR=/usr/local/bin
-INST_MANDIR=/usr/local/man/man1
-INST_XDIR=/usr/X11R6/bin
-INST_MANXDIR=/usr/X11R6/man/man1
-INST_XRDIR=/usr/X11R6/lib/X11/app-defaults
+DESTDIR=
+INST_DIR=$(DESTDIR)/usr/bin
+INST_MANDIR=$(DESTDIR)/usr/man/man1
+INST_XDIR=$(DESTDIR)/usr/bin
+INST_MANXDIR=$(DESTDIR)/usr/man/man1
+INST_XRDIR=$(DESTDIR)/usr/lib/X11/app-defaults
.c.o:
$(CC) -c $(CFLAGS) $*.c
@@ -133,10 +134,12 @@ distclean: clean
$(RM) Makefile config.cache config.log config.h config.status
install: $(PROGRAM)
+ $(INSTALL) -d $(INST_DIR) $(INST_XDIR)
$(INSTALL) -o root -g wheel -m 4555 -c -p mbmon $(INST_DIR)
$(INSTALL) -o root -g wheel -m 4555 -c -p xmbmon $(INST_XDIR)
install-man: $(MANPAGE)
+ $(INSTALL) -d $(INST_MANDIR) $(INST_MANXDIR)
$(INSTALL) -o root -g wheel -m 444 -c -p mbmon.1 $(INST_MANDIR)
$(INSTALL) -o root -g wheel -m 444 -c -p xmbmon.1x $(INST_MANXDIR)

View File

@ -2,23 +2,26 @@
# URL: http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
# Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
# Depends on: xorg
# Depends on: xorg-libxt
name=xmbmon
version=2.0.5
release=2
source=(http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/${name}/${name}205.tar.gz \
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/${name}/${name}205_A7N8X-VM.patch)
release=3
source=(http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/$name/${name}205.tar.gz \
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/$name/${name}205_A7N8X-VM.patch \
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/$name/${name}205_fflush.patch \
Makefile.in.diff)
build() {
cd ${name}205
patch methods.h ${SRC}/${name}205_A7N8X-VM.patch
patch -p0 -i $SRC/${name}205_A7N8X-VM.patch
patch -p0 -i $SRC/${name}205_fflush.patch
patch -p0 -i $SRC/Makefile.in.diff
./configure --prefix=/usr \
--with-x
make
sed -e 's|xmbmon 1x|xmbmon 1|g' -i ${name}.1x
install -D -m 0755 mbmon ${PKG}/usr/bin/mbmon
install -D -m 0755 ${name} ${PKG}/usr/bin/${name}
install -D -m 0644 mbmon.1 ${PKG}/usr/man/man1/mbmon.1
install -D -m 0644 ${name}.1x ${PKG}/usr/man/man1/${name}.1
make DESTDIR=$PKG install
make DESTDIR=$PKG install-man
}

View File

@ -1,11 +0,0 @@
--- methods.h.orig Fri Jan 7 04:14:02 2005
+++ methods.h Fri Jun 20 07:58:21 2003
@@ -2,7 +2,7 @@
#if !defined(__methods_h__)
#define __methods_h__
-#define IOP_ADDR 0x290
+#define IOP_ADDR 0xD00
#define WBIO1 (IOP_ADDR + 0x05)
#define WBIO2 (IOP_ADDR + 0x06)