diff options
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/Makefile | 24 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/distinfo | 2 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/files/b4-conf.diff | 19 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/files/patch-src-functions.c | 53 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/files/patch-src-gui.c | 32 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/pkg-descr | 7 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/pkg-plist | 1 |
8 files changed, 139 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile index 57962c89ddb0..7acc4434f5db 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -217,6 +217,7 @@ SUBDIR += xextensions SUBDIR += xf86ext SUBDIR += xfce4-clipman-plugin + SUBDIR += xfce4-taskmanager SUBDIR += xfce4-trigger-launcher SUBDIR += xfedor SUBDIR += xfishtank diff --git a/x11/xfce4-taskmanager/Makefile b/x11/xfce4-taskmanager/Makefile new file mode 100644 index 000000000000..155c527282f8 --- /dev/null +++ b/x11/xfce4-taskmanager/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: xfce4-taskbar-plugin +# Date created: 5 May 2005 +# Whom: DaJoob +# +# $FreeBSD$ +# + +PORTNAME= xfce4-taskmanager +PORTVERSION= 0.2.1 +CATEGORIES= x11 xfce +MASTER_SITES= http://download.berlios.de/xfce-goodies/ + +MAINTAINER= DaJoob@dajoob.com +COMMENT= A task manager for XFCE + +BUILD_DEPENDS= xfwm4:${PORTSDIR}/x11-wm/xfce4-wm + +USE_AUTOMAKE_VER= 19 +USE_AUTOCONF_VER= 259 + +pre-configure: + @cd ${WRKSRC} && ${PATCH} -pl < ${FILESDIR}/b4-conf.diff + +.include <bsd.port.mk> diff --git a/x11/xfce4-taskmanager/distinfo b/x11/xfce4-taskmanager/distinfo new file mode 100644 index 000000000000..9064cd8c18d3 --- /dev/null +++ b/x11/xfce4-taskmanager/distinfo @@ -0,0 +1,2 @@ +MD5 (xfce4-taskmanager-0.2.1.tar.gz) = 223be8e08c2696ff468ad15093067f03 +SIZE (xfce4-taskmanager-0.2.1.tar.gz) = 321272 diff --git a/x11/xfce4-taskmanager/files/b4-conf.diff b/x11/xfce4-taskmanager/files/b4-conf.diff new file mode 100644 index 000000000000..fa6a73eb88ad --- /dev/null +++ b/x11/xfce4-taskmanager/files/b4-conf.diff @@ -0,0 +1,19 @@ +*** aclocal.m4.orig Mon May 9 19:35:59 2005 +--- aclocal.m4 Mon May 9 19:37:22 2005 +*************** +*** 98,104 **** + # Call AM_AUTOMAKE_VERSION so it can be traced. + # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. + AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +! [AM_AUTOMAKE_VERSION([1.9.1])]) + + # AM_AUX_DIR_EXPAND + +--- 98,104 ---- + # Call AM_AUTOMAKE_VERSION so it can be traced. + # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. + AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +! [AM_AUTOMAKE_VERSION([1.9.5])]) + + # AM_AUX_DIR_EXPAND + diff --git a/x11/xfce4-taskmanager/files/patch-src-functions.c b/x11/xfce4-taskmanager/files/patch-src-functions.c new file mode 100644 index 000000000000..3d453cea6744 --- /dev/null +++ b/x11/xfce4-taskmanager/files/patch-src-functions.c @@ -0,0 +1,53 @@ +--- src/functions.c.orig Tue Feb 1 23:32:27 2005 ++++ src/functions.c Tue May 24 21:57:39 2005 +@@ -41,13 +41,13 @@ + { + /* markes all tasks to "not checked" */ + gint i; ++ DIR *dir; ++ struct dirent *dir_entry; + + for(i = 0; i < task_count; i++) + all_tasks[i].checked = FALSE; + + /* load the current taskdetails */ +- DIR *dir; +- struct dirent *dir_entry; + + if((dir = opendir("/proc")) == NULL) + printf("Error: couldn't load the directory\n"); +@@ -56,18 +56,20 @@ + { + if(atoi(dir_entry->d_name) != 0) + { +- FILE *task_file; +- gchar task_file_name[256] = "/proc/"; +- g_strlcat(task_file_name,dir_entry->d_name, 256); +- g_strlcat(task_file_name,"/status", 256); +- + gchar buffer[256]; + gint line_count = 0; + struct task task; + struct passwd *passwdp; + ++ FILE *task_file; ++ gchar task_file_name[256] = "/proc/"; ++ g_strlcat(task_file_name,dir_entry->d_name, 256); ++ g_strlcat(task_file_name,"/status", 256); ++ + if((task_file = fopen(task_file_name,"r")) != NULL) + { ++ gboolean new_task = TRUE; ++ + while(fgets(buffer, 256, task_file) != NULL) + { + if(line_count == 0) +@@ -89,8 +91,6 @@ + fclose(task_file); + + /* check if task is new and marks the task that its checked*/ +- gboolean new_task = TRUE; +- + for(i = 0; i < task_count; i++) + { + if(strcmp(all_tasks[i].pid,task.pid) == 0) diff --git a/x11/xfce4-taskmanager/files/patch-src-gui.c b/x11/xfce4-taskmanager/files/patch-src-gui.c new file mode 100644 index 000000000000..19e9b9c180a3 --- /dev/null +++ b/x11/xfce4-taskmanager/files/patch-src-gui.c @@ -0,0 +1,32 @@ +--- src/gui.c.orig Tue Feb 1 23:20:47 2005 ++++ src/gui.c Tue May 24 21:51:04 2005 +@@ -98,24 +98,25 @@ + gboolean add_new_list_item(struct task task) + { + GtkTreeIter iter; ++ gchar *list_value_1, *list_value_2, *list_value_3, *list_value_4; + + /* Append new line in the list */ + gtk_list_store_append(GTK_LIST_STORE(list_store), &iter); + + /* Fill the appended line with data */ +- gchar *list_value_1 = g_strdup_printf("%s", task.uid); ++ list_value_1 = g_strdup_printf("%s", task.uid); + gtk_list_store_set(GTK_LIST_STORE(list_store), &iter, 0, list_value_1, -1); + g_free(list_value_1); + +- gchar *list_value_2 = g_strdup_printf("%s", task.pid); ++ list_value_2 = g_strdup_printf("%s", task.pid); + gtk_list_store_set(GTK_LIST_STORE(list_store), &iter, 1, list_value_2, -1); + g_free(list_value_2); + +- gchar *list_value_3 = g_strdup_printf("%s", task.ppid); ++ list_value_3 = g_strdup_printf("%s", task.ppid); + gtk_list_store_set(GTK_LIST_STORE(list_store), &iter, 2, list_value_3, -1); + g_free(list_value_3); + +- gchar *list_value_4 = g_strdup_printf("%s", task.name); ++ list_value_4 = g_strdup_printf("%s", task.name); + gtk_list_store_set(GTK_LIST_STORE(list_store), &iter, 3, list_value_4, -1); + g_free(list_value_4); + diff --git a/x11/xfce4-taskmanager/pkg-descr b/x11/xfce4-taskmanager/pkg-descr new file mode 100644 index 000000000000..c1d5bc5ef484 --- /dev/null +++ b/x11/xfce4-taskmanager/pkg-descr @@ -0,0 +1,7 @@ +This is a port of the xfce-goodies plugin that adds a task +manager to XFCE. + +WWW: http://xfce-goodies.berlios.de + +- DaJoob +DaJoob@dajoob.com diff --git a/x11/xfce4-taskmanager/pkg-plist b/x11/xfce4-taskmanager/pkg-plist new file mode 100644 index 000000000000..b25c6ff00a9b --- /dev/null +++ b/x11/xfce4-taskmanager/pkg-plist @@ -0,0 +1 @@ +bin/xfce4-taskmanager |