summaryrefslogtreecommitdiffstats
path: root/deskutils/notification-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/notification-daemon')
-rw-r--r--deskutils/notification-daemon/Makefile30
-rw-r--r--deskutils/notification-daemon/distinfo3
-rw-r--r--deskutils/notification-daemon/files/patch-src-daemon.c62
-rw-r--r--deskutils/notification-daemon/pkg-descr9
-rw-r--r--deskutils/notification-daemon/pkg-plist7
5 files changed, 111 insertions, 0 deletions
diff --git a/deskutils/notification-daemon/Makefile b/deskutils/notification-daemon/Makefile
new file mode 100644
index 000000000..917e23d33
--- /dev/null
+++ b/deskutils/notification-daemon/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: notification-daemon
+# Date created: 2005-08-06
+# Whom: Andreas Kohn <andreas@syndrom23.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= notification-daemon
+PORTVERSION= 0.3.5
+PORTREVISION= 2
+CATEGORIES= deskutils gnome
+MASTER_SITES= http://www.galago-project.org/files/releases/source/notification-daemon/
+
+MAINTAINER= andreas@syndrom23.de
+COMMENT= Send small notifications to your desktop
+
+LIB_DEPENDS= dbus-1.2:${PORTSDIR}/devel/dbus \
+ sexy:${PORTSDIR}/x11-toolkits/libsexy \
+ popt.0:${PORTSDIR}/devel/popt
+
+USE_GNOME= gnomehack gnomeprefix gnometarget intlhack gconf2 libwnck
+USE_GMAKE= yes
+USE_XLIB= yes
+GNU_CONFIGURE= yes
+GCONF_SCHEMAS= notification-daemon.schemas
+CONFIGURE_ARGS= --with-dbus-services=${PREFIX}/share/dbus-1/services
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
diff --git a/deskutils/notification-daemon/distinfo b/deskutils/notification-daemon/distinfo
new file mode 100644
index 000000000..51f8e9973
--- /dev/null
+++ b/deskutils/notification-daemon/distinfo
@@ -0,0 +1,3 @@
+MD5 (notification-daemon-0.3.5.tar.gz) = 7977c4c15139f9d53ddbfa8af707270f
+SHA256 (notification-daemon-0.3.5.tar.gz) = 83a15eb99bb7a895d52e31be1c1548789a8bc29e83d30e758cf034a6627a1184
+SIZE (notification-daemon-0.3.5.tar.gz) = 383582
diff --git a/deskutils/notification-daemon/files/patch-src-daemon.c b/deskutils/notification-daemon/files/patch-src-daemon.c
new file mode 100644
index 000000000..e931c54e6
--- /dev/null
+++ b/deskutils/notification-daemon/files/patch-src-daemon.c
@@ -0,0 +1,62 @@
+diff -Naur notification-daemon-0.3.5.orig/src/daemon.c notification-daemon-0.3.5/src/daemon.c
+--- src/daemon.c 2006-04-26 10:32:50.000000000 +0200
++++ src/daemon.c 2006-06-18 05:07:47.000000000 +0200
+@@ -399,14 +399,54 @@
+ GValueArray *image_struct;
+ GValue *value;
+ GArray *tmp_array;
++ GType type = G_VALUE_TYPE (icon_data);
++
++ static const GType types[] = {
++ G_TYPE_INT,
++ G_TYPE_INT,
++ G_TYPE_INT,
++ G_TYPE_BOOLEAN,
++ G_TYPE_INT,
++ G_TYPE_INT
++ };
++
++
++ if (dbus_g_type_is_struct (type))
++ {
++ int n;
++
++ if (dbus_g_type_get_struct_size (type) < 7)
++ {
++ g_warning("_notify_daemon_process_icon_data expected 7 data members, got only %d", dbus_g_type_get_struct_size (type));
++ return FALSE;
++ }
++
++ for (n = 0; n < G_N_ELEMENTS (types); ++n)
++ {
++ GType check = dbus_g_type_get_struct_member_type (type, n);
++ if (check != types[n])
++ {
++ g_warning("_notify_daemon_process_icon_data expected '%s' at position %d, but got '%s'",
++ g_type_name (types[n]), n, g_type_name (check));
++ return FALSE;
++ }
+
+- if (!G_VALUE_HOLDS(icon_data, G_TYPE_VALUE_ARRAY))
++ /* We must check this separately as it's not a constant and can't be part of the types[] array */
++ if (dbus_g_type_get_struct_member_type (type, 6) != DBUS_TYPE_G_UCHAR_ARRAY)
++ {
++ g_warning("_notify_daemon_process_icon_data expected '%s' at position %d, but got '%s'",
++ g_type_name (DBUS_TYPE_G_UCHAR_ARRAY), 6, g_type_name (dbus_g_type_get_struct_member_type (type,6)));
++ return FALSE;
++ }
++ }
++ }
++ else
+ {
+- g_warning("_notify_daemon_process_icon_data expected a "
+- "GValue of type GValueArray");
+- return FALSE;
++ g_warning("_notify_daemon_process_icon_data got wrong data");
++ return FALSE;
+ }
+
++
+ image_struct = (GValueArray *)g_value_get_boxed(icon_data);
+ value = g_value_array_get_nth(image_struct, 0);
+
diff --git a/deskutils/notification-daemon/pkg-descr b/deskutils/notification-daemon/pkg-descr
new file mode 100644
index 000000000..33ba0cc36
--- /dev/null
+++ b/deskutils/notification-daemon/pkg-descr
@@ -0,0 +1,9 @@
+The Desktop Notifications framework provides a standard way of doing passive
+pop-up notifications on the desktop. These are designed to notify the
+user of something without interrupting their work with a dialog box that they
+must close. Passive popups can automatically disappear after a short period
+of time.
+
+This port contains the daemon.
+
+WWW: http://www.galago-project.org/specs/notification/index.php
diff --git a/deskutils/notification-daemon/pkg-plist b/deskutils/notification-daemon/pkg-plist
new file mode 100644
index 000000000..cfab3addc
--- /dev/null
+++ b/deskutils/notification-daemon/pkg-plist
@@ -0,0 +1,7 @@
+lib/notification-daemon-1.0/engines/libstandard.a
+lib/notification-daemon-1.0/engines/libstandard.la
+lib/notification-daemon-1.0/engines/libstandard.so
+libexec/notification-daemon
+share/dbus-1/services/org.freedesktop.Notifications.service
+@dirrm lib/notification-daemon-1.0/engines
+@dirrm lib/notification-daemon-1.0