summaryrefslogtreecommitdiffstats
path: root/sysutils/gtk-imonc
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/gtk-imonc')
-rw-r--r--sysutils/gtk-imonc/Makefile27
-rw-r--r--sysutils/gtk-imonc/distinfo3
-rw-r--r--sysutils/gtk-imonc/files/patch-timer.c30
-rw-r--r--sysutils/gtk-imonc/pkg-descr6
-rw-r--r--sysutils/gtk-imonc/pkg-plist16
5 files changed, 82 insertions, 0 deletions
diff --git a/sysutils/gtk-imonc/Makefile b/sysutils/gtk-imonc/Makefile
new file mode 100644
index 000000000..8f801abc3
--- /dev/null
+++ b/sysutils/gtk-imonc/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: gtk-imonc
+# Date Created: 26. October 2002
+# Whom: Steffen Vogelreuter
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtk-imonc
+PORTVERSION= 0.6.4.1
+PORTREVISION= 2
+CATEGORIES= sysutils
+MASTER_SITES= http://userpage.fu-berlin.de/~zeank/gtk-imonc/download/
+
+MAINTAINER= aberg@doomnet.de
+COMMENT= A GTK2-based imond-client to control an on(e) disc fli4l router
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+USE_GNOME= gtk20 gnomeprefix
+USE_XLIB= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|<endian.h>|<sys/endian.h>|' \
+ ${WRKSRC}/src/md5.h
+
+.include <bsd.port.mk>
diff --git a/sysutils/gtk-imonc/distinfo b/sysutils/gtk-imonc/distinfo
new file mode 100644
index 000000000..fceb8aa51
--- /dev/null
+++ b/sysutils/gtk-imonc/distinfo
@@ -0,0 +1,3 @@
+MD5 (gtk-imonc-0.6.4.1.tar.gz) = 5f81576eb68ccb0f386844af18392c83
+SHA256 (gtk-imonc-0.6.4.1.tar.gz) = 8ed6c13ed7b3fcac08ad9383adeb0b8dfdc4c2ed2ba48ce7d4c6d0a3778c966b
+SIZE (gtk-imonc-0.6.4.1.tar.gz) = 216002
diff --git a/sysutils/gtk-imonc/files/patch-timer.c b/sysutils/gtk-imonc/files/patch-timer.c
new file mode 100644
index 000000000..62698a6c8
--- /dev/null
+++ b/sysutils/gtk-imonc/files/patch-timer.c
@@ -0,0 +1,30 @@
+--- src/timer.c.orig Wed Jan 12 12:36:24 2005
++++ src/timer.c Thu Feb 17 21:10:06 2005
+@@ -293,14 +293,14 @@
+ }
+ else
+ {
+- tmpbytes = atoll (strtok (NULL, " "));
++ tmpbytes = strtoll (strtok (NULL, " "), NULL, 10);
+ ibytes += tmpbytes;
+ row[i] = get_bytes (tmpbytes,
+ ibytebuf);
+ }
+ break;
+ case 9: /* OBytes */
+- tmpbytes = atoll (strtok (NULL, " "));
++ tmpbytes = strtoll (strtok (NULL, " "), NULL, 10);
+ obytes += tmpbytes;
+ row[i] = get_bytes (tmpbytes, obytebuf);
+ break;
+@@ -1165,8 +1165,8 @@
+ }
+ else
+ {
+- gtk_clist_set_text (GTK_CLIST (clist), j, 3, get_bytes(atoll(strtok(get_answer (fd)," ")), buf));
+- gtk_clist_set_text (GTK_CLIST (clist), j, 4, get_bytes(atoll(strtok(NULL, " ")), buf));
++ gtk_clist_set_text (GTK_CLIST (clist), j, 3, get_bytes(strtoll(strtok(get_answer (fd)," "), NULL, 10), buf));
++ gtk_clist_set_text (GTK_CLIST (clist), j, 4, get_bytes(strtoll(strtok(NULL, " "), NULL, 10), buf));
+ }
+
+ send_command (fd, "online-time pppoe");
diff --git a/sysutils/gtk-imonc/pkg-descr b/sysutils/gtk-imonc/pkg-descr
new file mode 100644
index 000000000..eb566498f
--- /dev/null
+++ b/sysutils/gtk-imonc/pkg-descr
@@ -0,0 +1,6 @@
+GTK-Imonc is a GTK2-based imond-client to control an on(e) disc fli4l
+router. You can dial/hangup the connection, show status information
+(traffic, cpu), shutdown/reboot and even remotely update the router.
+
+Author: Stefan "Steve" Strigler <steve@zeank.in-berlin.de>
+WWW: http://userpage.fu-berlin.de/%7Ezeank/gtk-imonc/
diff --git a/sysutils/gtk-imonc/pkg-plist b/sysutils/gtk-imonc/pkg-plist
new file mode 100644
index 000000000..844509e1a
--- /dev/null
+++ b/sysutils/gtk-imonc/pkg-plist
@@ -0,0 +1,16 @@
+bin/gtk-imonc
+share/gnome/apps/Internet/gtk-imonc.desktop
+share/gtk-imonc/pixmaps/docklet-inactive.png
+share/gtk-imonc/pixmaps/docklet-offline.png
+share/gtk-imonc/pixmaps/docklet-online.png
+share/gtk-imonc/pixmaps/gtk-imonc.png
+share/gtk-imonc/pixmaps/offline.png
+share/gtk-imonc/pixmaps/offline.xpm
+share/gtk-imonc/pixmaps/online.png
+share/gtk-imonc/pixmaps/online.xpm
+share/gtk-imonc/pixmaps/reboot.png
+share/gtk-imonc/pixmaps/shutdown.png
+share/locale/de/LC_MESSAGES/gtk-imonc.mo
+share/pixmaps/gtk-imonc.png
+@dirrm share/gtk-imonc/pixmaps
+@dirrm share/gtk-imonc