diff options
author | obraun <obraun@FreeBSD.org> | 2002-10-27 04:07:44 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2002-10-27 04:07:44 +0800 |
commit | 20e46e48816322811a6bdafc9f62a6c1dc66bfae (patch) | |
tree | 5f7376b5b50cdb6ce1030db3dc9c0f1f94260697 /sysutils | |
parent | 5f37559d81701a73750ff1f63222bbc0128553b6 (diff) | |
download | freebsd-ports-gnome-20e46e48816322811a6bdafc9f62a6c1dc66bfae.tar.gz freebsd-ports-gnome-20e46e48816322811a6bdafc9f62a6c1dc66bfae.tar.zst freebsd-ports-gnome-20e46e48816322811a6bdafc9f62a6c1dc66bfae.zip |
Add gtk-imonc, a gtk based client to control an one disc fli4l router.
PR: 44503
Submitted by: Steffen Vogelreuter <steffen@vogelreuter.de>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/gtk-imonc/Makefile | 29 | ||||
-rw-r--r-- | sysutils/gtk-imonc/distinfo | 1 | ||||
-rw-r--r-- | sysutils/gtk-imonc/files/patch-timer.c | 48 | ||||
-rw-r--r-- | sysutils/gtk-imonc/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/gtk-imonc/pkg-descr | 8 | ||||
-rw-r--r-- | sysutils/gtk-imonc/pkg-plist | 12 |
7 files changed, 100 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 3f264e1fb5ef..1dc20964eb71 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -91,6 +91,7 @@ SUBDIR += gnomesystemmonitor SUBDIR += gpart SUBDIR += grub + SUBDIR += gtk-imonc SUBDIR += gtoaster SUBDIR += gtop SUBDIR += gupsc diff --git a/sysutils/gtk-imonc/Makefile b/sysutils/gtk-imonc/Makefile new file mode 100644 index 000000000000..b225213d2c0d --- /dev/null +++ b/sysutils/gtk-imonc/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: gtk-imonc +# Date Created: 26. October 2002 +# Whom: Steffen Vogelreuter +# +# $FreeBSD$ +# + +PORTNAME= gtk-imonc +PORTVERSION= 0.3a +CATEGORIES= sysutils +MASTER_SITES= http://userpage.fu-berlin.de/~zeank/gtk-imonc/download/ + +MAINTAINER= steffen@vogelreuter.de + +WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} +ALL_TARGET= #empty +HAS_CONFIGURE= yes +USE_GMAKE= yes +USE_GNOME= gtk12 +USE_GNOMENG= yes +USE_REINPLACE= yes +USE_X_PREFIX= yes + +post-patch: + @${REINPLACE_CMD} -e 's|gtk-config|gtk12-config|g ; \ + s|/usr/local|${X11BASE}|g' \ + ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/sysutils/gtk-imonc/distinfo b/sysutils/gtk-imonc/distinfo new file mode 100644 index 000000000000..1216d4472ad3 --- /dev/null +++ b/sysutils/gtk-imonc/distinfo @@ -0,0 +1 @@ +MD5 (gtk-imonc-0.3a.tar.gz) = b4718cea4076e7af1581092ade9b61f1 diff --git a/sysutils/gtk-imonc/files/patch-timer.c b/sysutils/gtk-imonc/files/patch-timer.c new file mode 100644 index 000000000000..60d2cf5b24c4 --- /dev/null +++ b/sysutils/gtk-imonc/files/patch-timer.c @@ -0,0 +1,48 @@ +--- gtk-imonc/timer.c.orig Fri Aug 16 21:52:15 2002 ++++ gtk-imonc/timer.c Sat Oct 26 15:43:20 2002 +@@ -183,12 +183,12 @@ + row[i] = chargebuf; + break; + case 8: /* IBytes */ +- tmpbytes = atoll (strtok (NULL, " ")); ++ tmpbytes = atoi (strtok (NULL, " ")); + ibytes += tmpbytes; + row[i] = get_bytes (tmpbytes, ibytebuf); + break; + case 9: /* OBytes */ +- tmpbytes = atoll (strtok (NULL, " ")); ++ tmpbytes = atoi (strtok (NULL, " ")); + obytes += tmpbytes; + row[i] = get_bytes (tmpbytes, obytebuf); + break; +@@ -773,8 +773,8 @@ + gtk_clist_set_text (GTK_CLIST (clist), j, 2, get_answer (fd)); + + send_command (fd, "quantity pppoe"); +- 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 (atoi (strtok (get_answer (fd), " ")), buf)); ++ gtk_clist_set_text (GTK_CLIST (clist), j, 4, get_bytes (atoi (strtok (NULL, " ")), buf)); + + send_command (fd, "online-time pppoe"); + gtk_clist_set_text (GTK_CLIST (clist), j, 5, get_answer (fd)); +@@ -814,8 +814,8 @@ + + sprintf (buf, "quantity %i", i); + send_command (fd, buf); +- gtk_clist_set_text (GTK_CLIST (clist), (j+i-1), 3, get_bytes (atoll (strtok (get_answer (fd), " ")), buf)); +- gtk_clist_set_text (GTK_CLIST (clist), (j+i-1), 4, get_bytes (atoll (strtok (NULL, " ")), buf)); ++ gtk_clist_set_text (GTK_CLIST (clist), (j+i-1), 3, get_bytes (atoi (strtok (get_answer (fd), " ")), buf)); ++ gtk_clist_set_text (GTK_CLIST (clist), (j+i-1), 4, get_bytes (atoi (strtok (NULL, " ")), buf)); + + sprintf (buf, "online-time %i", i); + send_command (fd, buf); +@@ -892,7 +892,7 @@ + return buf; + } + +- sprintf (buf, "%lu", (ulong) bytes); ++ sprintf (buf, "%lu", (long) bytes); + return buf; + + } /* get_bytes (bytes, *buf) */ diff --git a/sysutils/gtk-imonc/pkg-comment b/sysutils/gtk-imonc/pkg-comment new file mode 100644 index 000000000000..51368fcd83a5 --- /dev/null +++ b/sysutils/gtk-imonc/pkg-comment @@ -0,0 +1 @@ +A gtk based client to control an one disc fli4l router diff --git a/sysutils/gtk-imonc/pkg-descr b/sysutils/gtk-imonc/pkg-descr new file mode 100644 index 000000000000..631739ba2061 --- /dev/null +++ b/sysutils/gtk-imonc/pkg-descr @@ -0,0 +1,8 @@ +A gtk-based client to control the one disc linux router fli4l +You can dial, hangup, add lins, remove links, check timetables ... + +Author: Stefan "Steve" Strigler <zeank@x-berg.de> +WWW: http://userpage.fu-berlin.de/%7Ezeank/gtk-imonc/ + +-- Steffen Vogelreuter +steffen@vogelreuter.de diff --git a/sysutils/gtk-imonc/pkg-plist b/sysutils/gtk-imonc/pkg-plist new file mode 100644 index 000000000000..c9e7f25eed4d --- /dev/null +++ b/sysutils/gtk-imonc/pkg-plist @@ -0,0 +1,12 @@ +bin/gtk-imonc +share/gtk-imonc/pixmaps/fli4l.xpm +share/gtk-imonc/pixmaps/gtk-imonc.png +share/gtk-imonc/pixmaps/offline.xpm +share/gtk-imonc/pixmaps/online.xpm +lib/charset.alias +share/gnome/apps/Internet/gtk-imonc.desktop +share/locale/locale.alias +share/locale/de/LC_MESSAGES/gtk-imonc.mo +share/pixmaps/gtk-imonc.png +@dirrm share/gtk-imonc/pixmaps +@dirrm share/gtk-imonc |