summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@gentoo.org>2006-12-12 01:25:18 +0000
committerDaniel Gryniewicz <dang@gentoo.org>2006-12-12 01:25:18 +0000
commit5167c97abff22b22ad272fa08f1c714f2326a920 (patch)
tree10ee6b2fff90523953f4b4009f10fbaf92198a21 /net-news/liferea/files
parentliferea 1.2 RC3 with networkmanager support (diff)
downloadmaintainer-5167c97abff22b22ad272fa08f1c714f2326a920.tar.gz
maintainer-5167c97abff22b22ad272fa08f1c714f2326a920.tar.bz2
maintainer-5167c97abff22b22ad272fa08f1c714f2326a920.zip
rc5 with xulrunner
svn path=/maintainer/; revision=20
Diffstat (limited to 'net-news/liferea/files')
-rw-r--r--net-news/liferea/files/digest-liferea-1.2_rc3-r13
-rw-r--r--net-news/liferea/files/digest-liferea-1.2_rc53
-rw-r--r--net-news/liferea/files/liferea-1.2_rc1-nm.patch191
3 files changed, 3 insertions, 194 deletions
diff --git a/net-news/liferea/files/digest-liferea-1.2_rc3-r1 b/net-news/liferea/files/digest-liferea-1.2_rc3-r1
deleted file mode 100644
index 7d7630f..0000000
--- a/net-news/liferea/files/digest-liferea-1.2_rc3-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 30542c315370db12cc9598d3b809b2d5 liferea-1.2-RC3.tar.gz 1282608
-RMD160 d0d11aa18384fb1bc0d5cb8a317f1011c39ac92e liferea-1.2-RC3.tar.gz 1282608
-SHA256 5e4028a655bb9f5912662e47b69c125646b3222d64125160929856c5d7aab53a liferea-1.2-RC3.tar.gz 1282608
diff --git a/net-news/liferea/files/digest-liferea-1.2_rc5 b/net-news/liferea/files/digest-liferea-1.2_rc5
new file mode 100644
index 0000000..114546b
--- /dev/null
+++ b/net-news/liferea/files/digest-liferea-1.2_rc5
@@ -0,0 +1,3 @@
+MD5 da5f471185743c6ce72695fc0904dc02 liferea-1.2-RC5.tar.gz 1307072
+RMD160 bd489325333483567e7c37d8ed05c31ab88c7e10 liferea-1.2-RC5.tar.gz 1307072
+SHA256 ff4c633e559065626291a1d16b6e1331f1282a285c75d2a5623c50186001562f liferea-1.2-RC5.tar.gz 1307072
diff --git a/net-news/liferea/files/liferea-1.2_rc1-nm.patch b/net-news/liferea/files/liferea-1.2_rc1-nm.patch
deleted file mode 100644
index 35d4614..0000000
--- a/net-news/liferea/files/liferea-1.2_rc1-nm.patch
+++ /dev/null
@@ -1,191 +0,0 @@
-diff --exclude-from=/home/dang/.diffrc -up -ruN liferea-1.2-RC1.orig/configure.ac liferea-1.2-RC1/configure.ac
---- liferea-1.2-RC1.orig/configure.ac 2006-11-04 09:32:53.000000000 -0500
-+++ liferea-1.2-RC1/configure.ac 2006-11-24 13:00:18.000000000 -0500
-@@ -30,6 +30,7 @@ AC_SYS_LARGEFILE
-
- AC_ARG_ENABLE(sm, AS_HELP_STRING([--disable-sm],[compile without X session management support]),,enable_sm=yes)
- AC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus],[compile without DBUS support]),,enable_dbus=yes)
-+AC_ARG_ENABLE(nm, AS_HELP_STRING([--disable-nm],[compile without NetworkManager support]),,enable_nm=yes)
- AC_ARG_ENABLE(gtkhtml2, AS_HELP_STRING([--disable-gtkhtml2],[don't compile the gtkhtml2 backend]),,enable_gtkhtml2=yes)
- AC_ARG_ENABLE(xulrunner, AS_HELP_STRING([--disable-xulrunner],[don't compile the xulrunner backend]),,enable_xulrunner=yes)
- AC_ARG_ENABLE(gecko, AS_HELP_STRING([--disable-gecko],[don't compile the Gecko backend]),,enable_gecko=yes)
-@@ -342,6 +343,20 @@ AC_SUBST(DBUS_CFLAGS)
- AC_SUBST(DBUS_LIBS)
- dnl AM_CONDITIONAL(WITH_DBUS, test "x$enable_dbus" != "xyes")
-
-+dnl ****
-+dnl NetworkManager
-+dnl ****
-+if test "x$enable_nm" = "xyes"; then
-+ AC_MSG_NOTICE([checking for NetworkManager])
-+ PKG_CHECK_MODULES([NM], [dbus-glib-1 libnm_glib],enable_nm=yes,enable_nm=no)
-+fi
-+
-+if test "x$enable_nm" = "xyes"; then
-+ AC_DEFINE(USE_NM, 1, [Define if we're using NetworkManager.])
-+fi
-+
-+AC_SUBST(NM_CFLAGS)
-+AC_SUBST(NM_LIBS)
-
- dnl #
- dnl # Check for GNUTLS if it's specified.
-@@ -470,6 +485,7 @@ echo "Build LUA scripting Plugin ..... :
- echo
- echo "Use X Session Management........ : $enable_sm"
- echo "Use DBUS........................ : $enable_dbus"
-+echo "Use NetworkManager.............. : $enable_nm"
- echo "GNUTLS SSL/HTTPS Support........ : $enable_gnutls"
- echo
- eval eval echo Liferea will be installed in $bindir.
-diff --exclude-from=/home/dang/.diffrc -up -ruN liferea-1.2-RC1.orig/src/main.c liferea-1.2-RC1/src/main.c
---- liferea-1.2-RC1.orig/src/main.c 2006-11-07 18:30:35.000000000 -0500
-+++ liferea-1.2-RC1/src/main.c 2006-11-24 11:57:58.000000000 -0500
-@@ -136,6 +136,9 @@ int main(int argc, char *argv[]) {
- #ifdef USE_DBUS
- dbus_g_thread_init();
- #endif
-+#ifdef USE_NM
-+ update_nm_initialize();
-+#endif
- gtk_init(&argc, &argv);
-
- bacon_connection = bacon_message_connection_new("liferea");
-diff --exclude-from=/home/dang/.diffrc -up -ruN liferea-1.2-RC1.orig/src/Makefile.am liferea-1.2-RC1/src/Makefile.am
---- liferea-1.2-RC1.orig/src/Makefile.am 2006-10-17 13:11:04.000000000 -0400
-+++ liferea-1.2-RC1/src/Makefile.am 2006-11-24 12:35:22.000000000 -0500
-@@ -15,6 +15,7 @@ AM_CPPFLAGS = \
- $(PACKAGE_CFLAGS) \
- $(X_CFLAGS) \
- $(DBUS_CFLAGS) \
-+ $(NM_CFLAGS) \
- $(GNUTLS_CFLAGS)
-
- bin_PROGRAMS = liferea-bin
-@@ -39,7 +40,6 @@ liferea_bin_SOURCES = \
- itemset.c itemset.h \
- itemlist.c itemlist.h \
- itemview.c itemview.h \
-- main.c \
- metadata.c metadata.h \
- newsbin.c newsbin.h \
- node.c node.h \
-@@ -49,6 +49,7 @@ liferea_bin_SOURCES = \
- social.c social.h \
- support.c support.h \
- update.c update.h \
-+ main.c \
- vfolder.c vfolder.h
-
- liferea_bin_LDADD = net/liblinet.a \
-@@ -57,7 +58,7 @@ liferea_bin_LDADD = net/liblinet.a \
- notification/liblinotification.a \
- scripting/libliscript.a \
- ui/libliui.a \
-- $(PACKAGE_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS) $(DBUS_LIBS) $(INTLLIBS) $(GNUTLS_LIBS)
-+ $(PACKAGE_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS) $(DBUS_LIBS) $(NM_LIBS) $(INTLLIBS) $(GNUTLS_LIBS)
-
- if PLATFORM_WIN32
-
-Files liferea-1.2-RC1.orig/src/.Makefile.am.swp and liferea-1.2-RC1/src/.Makefile.am.swp differ
-diff --exclude-from=/home/dang/.diffrc -up -ruN liferea-1.2-RC1.orig/src/update.c liferea-1.2-RC1/src/update.c
---- liferea-1.2-RC1.orig/src/update.c 2006-09-11 18:57:03.000000000 -0400
-+++ liferea-1.2-RC1/src/update.c 2006-11-24 12:46:22.000000000 -0500
-@@ -34,6 +34,10 @@
- #include <sys/wait.h>
- #include <string.h>
-
-+#ifdef USE_NM
-+#include <NetworkManager/libnm_glib.h>
-+#endif
-+
- #include "common.h"
- #include "conf.h"
- #include "debug.h"
-@@ -60,6 +64,12 @@ static GMutex *cond_mutex = NULL;
- static GCond *offline_cond = NULL;
- static gboolean online = TRUE;
-
-+#ifdef USE_NM
-+/* State for NM support */
-+static libnm_glib_ctx *nm_ctx = NULL;
-+static guint nm_id = 0;
-+#endif
-+
- /* update state interface */
-
- updateStatePtr update_state_new(void) {
-@@ -583,3 +593,49 @@ void update_init(void) {
- NULL,
- NULL);
- }
-+
-+#ifdef USE_NM
-+static void update_network_monitor(libnm_glib_ctx *ctx, gpointer user_data)
-+{
-+ libnm_glib_state state;
-+ gboolean online;
-+
-+ g_return_if_fail(ctx != NULL);
-+
-+ state = libnm_glib_get_network_state(ctx);
-+ online = update_is_online();
-+
-+ if (online && state == LIBNM_NO_NETWORK_CONNECTION) {
-+ update_set_online(FALSE);
-+ } else if (!online && state == LIBNM_ACTIVE_NETWORK_CONNECTION) {
-+ update_set_online(TRUE);
-+ }
-+}
-+
-+
-+gboolean update_nm_initialize(void)
-+{
-+ if (!nm_ctx)
-+ {
-+ nm_ctx = libnm_glib_init();
-+ if (!nm_ctx) {
-+ fprintf(stderr, "Could not initialize libnm.\n");
-+ return FALSE;
-+ }
-+ }
-+
-+ nm_id = libnm_glib_register_callback(nm_ctx, update_network_monitor, NULL, NULL);
-+
-+ return TRUE;
-+}
-+
-+void update_nm_cleanup(void)
-+{
-+ if (nm_id != 0 && nm_ctx != NULL) {
-+ libnm_glib_unregister_callback(nm_ctx, nm_id);
-+ libnm_glib_shutdown(nm_ctx);
-+ nm_ctx = NULL;
-+ nm_id = 0;
-+ }
-+}
-+#endif
-diff --exclude-from=/home/dang/.diffrc -up -ruN liferea-1.2-RC1.orig/src/update.h liferea-1.2-RC1/src/update.h
---- liferea-1.2-RC1.orig/src/update.h 2006-09-11 18:12:25.000000000 -0400
-+++ liferea-1.2-RC1/src/update.h 2006-11-24 12:28:40.000000000 -0500
-@@ -245,4 +245,20 @@ void update_cancel_requests(gpointer own
- */
- gboolean update_request_cancel_retry(struct request *request);
-
-+#ifdef USE_NM
-+/**
-+ * Initialize NetworkManager support
-+ * Set up NM support, so that offline state can be set based on availability of
-+ * a network
-+ *
-+ * @return TRUE if successfully initialized NM support
-+ */
-+gboolean update_nm_initialize(void);
-+
-+/**
-+ * Clean up NetworkManager support
-+ */
-+void update_nm_cleanup(void);
-+#endif // USE_NM
-+
- #endif