aboutsummaryrefslogtreecommitdiff
path: root/deskutils/mdh
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2003-11-12 22:11:12 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2003-11-12 22:11:12 +0000
commita66cf2b83d93e5fcf8b3242494e04b12b09ce681 (patch)
treeab684769b32e19a7b1ebc6aad05e442dff8c8dac /deskutils/mdh
parent74f5eee387a8ed023e082a6dff9595216d9981cd (diff)
downloadports-a66cf2b83d93e5fcf8b3242494e04b12b09ce681.tar.gz
ports-a66cf2b83d93e5fcf8b3242494e04b12b09ce681.zip
Notes
Diffstat (limited to 'deskutils/mdh')
-rw-r--r--deskutils/mdh/Makefile35
-rw-r--r--deskutils/mdh/distinfo1
-rw-r--r--deskutils/mdh/files/patch-src::mdh_panel_temp.c13
-rw-r--r--deskutils/mdh/files/patch-src::mdh_panel_uptime.c19
-rw-r--r--deskutils/mdh/pkg-descr5
-rw-r--r--deskutils/mdh/pkg-plist3
6 files changed, 76 insertions, 0 deletions
diff --git a/deskutils/mdh/Makefile b/deskutils/mdh/Makefile
new file mode 100644
index 000000000000..c56bdbf518db
--- /dev/null
+++ b/deskutils/mdh/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: mdh
+# Date created: 12 November 2003
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mdh
+PORTVERSION= 1.9.54
+CATEGORIES= deskutils gnome
+MASTER_SITES= http://www.gozer.org/my_stuff/gtk/gtk/mdh/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= GTK2-based toolbar, sortof a gnomepanel replacement sortof
+
+USE_X_PREFIX= yes
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomehack gnomeprefix gnometarget gtk20
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|<wait.h>|<sys/wait.h>|" \
+ ${WRKSRC}/src/mdh.c ${WRKSRC}/src/mdh_panel_temp.c
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/deskutils/mdh/distinfo b/deskutils/mdh/distinfo
new file mode 100644
index 000000000000..ce1c458dddb4
--- /dev/null
+++ b/deskutils/mdh/distinfo
@@ -0,0 +1 @@
+MD5 (mdh-1.9.54.tar.bz2) = eaacc354521d01a9a41aec9c147e9fe8
diff --git a/deskutils/mdh/files/patch-src::mdh_panel_temp.c b/deskutils/mdh/files/patch-src::mdh_panel_temp.c
new file mode 100644
index 000000000000..6bdc3982c6ea
--- /dev/null
+++ b/deskutils/mdh/files/patch-src::mdh_panel_temp.c
@@ -0,0 +1,13 @@
+--- src/mdh_panel_temp.c.orig Wed Nov 12 05:36:52 2003
++++ src/mdh_panel_temp.c Wed Nov 12 05:37:28 2003
+@@ -33,9 +33,9 @@
+ #include <string.h>
+ #include <stdarg.h>
+ #include <errno.h>
++#include <sys/types.h>
+ #include <regex.h>
+ #include <signal.h>
+-#include <sys/types.h>
+ #include <sys/stat.h>
+ #include <time.h>
+ #include <wait.h>
diff --git a/deskutils/mdh/files/patch-src::mdh_panel_uptime.c b/deskutils/mdh/files/patch-src::mdh_panel_uptime.c
new file mode 100644
index 000000000000..414b7f5e6f77
--- /dev/null
+++ b/deskutils/mdh/files/patch-src::mdh_panel_uptime.c
@@ -0,0 +1,19 @@
+--- src/mdh_panel_uptime.c.orig Wed Nov 12 05:38:41 2003
++++ src/mdh_panel_uptime.c Wed Nov 12 05:45:55 2003
+@@ -40,6 +40,7 @@
+
+ #ifdef BSD4_4
+ #include <sys/sysctl.h>
++#include <sys/time.h>
+ #endif
+
+ #ifdef __sun__
+@@ -227,7 +228,7 @@
+
+ #ifdef BSD4_4
+ if(sysctl(mib, 2, &btime, &size, NULL, 0) != -1 && btime.tv_sec != 0)
+- sec = (time(NULL) - boottime.tv_sec) + 30;
++ sec = (time(NULL) - btime.tv_sec) + 30;
+ #endif
+
+ *seconds = sec;
diff --git a/deskutils/mdh/pkg-descr b/deskutils/mdh/pkg-descr
new file mode 100644
index 000000000000..1399ab662d2e
--- /dev/null
+++ b/deskutils/mdh/pkg-descr
@@ -0,0 +1,5 @@
+mdh (MailDooHicky) is a GTK2-based toolbar that can display the time,
+email message count and various system (CPU, network, etc.) utilization.
+It also features user-definable buttons, a run window and scratch-pad.
+
+WWW: http://www.gozer.org/my_stuff/gtk/mdh.php
diff --git a/deskutils/mdh/pkg-plist b/deskutils/mdh/pkg-plist
new file mode 100644
index 000000000000..c54028234a94
--- /dev/null
+++ b/deskutils/mdh/pkg-plist
@@ -0,0 +1,3 @@
+bin/mdh
+%%PORTDOCS%%%%DATADIR%%/README
+%%PORTDOCS%%@dirrm %%DATADIR%%