converted guifications-daemon-web to cmake, this is behind a bit when it comes to api and needs to have the updates completed yet
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-web/CMakeLists.txt Mon Dec 13 23:40:42 2010 -0600
@@ -0,0 +1,75 @@
+cmake_minimum_required(VERSION 2.8) +############################################################################### +############################################################################### +project(guifications-daemon-web C) +set(GUIFICATION_DAEMON_WEB_MAJOR_VERSION 0) +set(GUIFICATION_DAEMON_WEB_MINOR_VERSION 0) +set(GUIFICATION_DAEMON_WEB_MICRO_VERSION 1) +set(GUIFICATION_DAEMON_WEB_EXTRA_VERSION dev) +set(VERSION ${GUIFICATIONS_DAEMON_WEB_MAJOR_VERSION}.${GUIFICATIONS_DAEMON_WEB_MINOR_VERSION}.${GUIFICATIONS_DAEMON_WEB_MICRO_VERSION}${GUIFICATIONS_DAEMON_WEB_EXTRA_VERSION}) +############################################################################### +############################################################################### +pkg_check_modules(GLIB REQUIRED +pkg_check_modules(GFLIB REQUIRED gflib) +pkg_check_modules(GUIFICATIONS_DAEMON REQUIRED guifications-daemon) +pkg_check_modules(GPLATE REQUIRED gplate) +pkg_check_modules(SOUP REQUIRED libsoup-2.4>=2.4.0) +############################################################################### +############################################################################### + -DGETTEXT_PACKAGE="guifications-daemon-web" + -DDATADIR="${CMAKE_INSTALL_PREFIX}/share" + -DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale" +############################################################################### +############################################################################### +add_subdirectory(pixmaps) +add_subdirectory(themes) +############################################################################### +############################################################################### + FILES AUTHORS ChangeLog COPYING NEWS README + DESTINATION share/doc/guifications-daemon-web --- a/guifications-daemon-web/Makefile.am Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-SUBDIRS=pixmaps po src themes
-libtool: $(LIBTOOL_DEPS)
- $(SHELL) ./config.status --recheck
--- a/guifications-daemon-web/autogen.sh Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-# Guifications - The end-all, be-all notification framework
-# Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-which gflib-autogen.sh || {
- echo "You need to install gflib to run autogen"
--- a/guifications-daemon-web/configure.ac Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,161 +0,0 @@
-dnl Process this file with autoconf to create configure.
-dnl ################################################################
-dnl # Initialize autoconf
-dnl ################################################################
-AC_INIT(guifications-daemon-web, 0.0.1dev, guifications-devel@lists.guifications.org)
-AC_CONFIG_SRCDIR(config.h.in)
-AC_COPYRIGHT([Copyright 2003-2009 Gary Kramlich])
-dnl ################################################################
-dnl # Initialize automake
-dnl ################################################################
-AM_INIT_AUTOMAKE([gnu dist-bzip2])
-dnl # disable the static library
-dnl ################################################################
-dnl # Configuration file
-dnl ################################################################
-AM_CONFIG_HEADER(config.h)
-dnl # Stash configure args
-AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
-dnl #######################################################################
-dnl # Make sure we have pkg-config
-dnl #######################################################################
-dnl #######################################################################
-dnl #######################################################################
-LIBTOOL="$LIBTOOL --silent"
-dnl #######################################################################
-dnl #######################################################################
-AH_TOP([ /* our header */
-AC_MSG_CHECKING([for wasted cpu cycles])
-dnl #######################################################################
-dnl #######################################################################
-GETTEXT_PACKAGE=guifications-web
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
-dnl #######################################################################
-dnl # Look for the C compiler
-dnl #######################################################################
-AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
-if test x"$enable_debug" = x"yes" ; then
- AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
-if test x"$GCC" = x"yes"; then
- CFLAGS="$CFLAGS -Wall -g3"
-dnl #######################################################################
-dnl #######################################################################
-PKG_CHECK_MODULES(GFLIB, gflib)
-GFLIB_GENHEADER=`pkg-config --variable=gflib_genheader gflib`
-AC_SUBST(GFLIB_GENHEADER)
-dnl #######################################################################
-dnl # check for gfd and grab it's plugin dir
-dnl #######################################################################
-PKG_CHECK_MODULES(GFD, guifications-daemon)
-if test x"${prefix}" = x"NONE" ; then
- GFD_PLUGIN_DIR=`pkg-config --variable=plugin_dir guifications-daemon`
- GFD_PLUGIN_DIR="${prefix}/lib/guifications-daemon/"
-AC_SUBST(GFD_PLUGIN_DIR)
-dnl #######################################################################
-dnl # check for glib and other glib dependencies
-dnl #######################################################################
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14.0 gobject-2.0 >= 2.14.0)
-PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.14.0)
-AC_SUBST(GTHREAD_CFLAGS)
-dnl #######################################################################
-dnl #######################################################################
-PKG_CHECK_MODULES(GPLATE, gplate)
-dnl #######################################################################
-dnl #######################################################################
-PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.4.0)
-dnl #######################################################################
-dnl #######################################################################
- themes/default/Makefile
-dnl #######################################################################
-dnl #######################################################################
-echo AC_PACKAGE_NAME AC_PACKAGE_VERSION Configuration complete
-echo Debugging enabled....................: $enable_debug
-echo guifications-daemon plugin directory.: $GFD_PLUGIN_DIR
-echo Type make to compile
--- a/guifications-daemon-web/pixmaps/Makefile.am Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-web/src/CMakeLists.txt Mon Dec 13 23:40:42 2010 -0600
@@ -0,0 +1,38 @@
+############################################################################### +# guifications-daemon-web target +############################################################################### +set(GUIFICATIONS_DAEMON_WEB_HEADERS + guifications-daemon-web-handlers.h + guifications-daemon-web-theme.h +set(GUIFICATIONS_DAEMON_WEB_SOURCES + guifications-daemon-web.c + guifications-daemon-web-handler-debug.c + guifications-daemon-web-handler-feeds.c + guifications-daemon-web-handlers.c + guifications-daemon-web-theme.c +add_library(guifications-daemon-web MODULE + ${GUIFICATIONS_DAEMON_WEB_HEADERS} + ${GUIFICATIONS_DAEMON_WEB_SOURCES} +target_link_libraries(guifications-daemon-web +set_target_properties(guifications-daemon-web PROPERTIES PREFIX "") +############################################################################### +############################################################################### + TARGETS guifications-daemon-web LIBRARY + DESTINATION lib/guifications-daemon --- a/guifications-daemon-web/src/Makefile.am Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
- guifications-daemon-web-handlers.h \
- guifications-daemon-web-theme.h
-gfdwebdir=$(GFD_PLUGIN_DIR)
-gfdweb_LTLIBRARIES = guifications-daemon-web.la
-guifications_daemon_web_la_SOURCES = \
- guifications-daemon-web.c \
- guifications-daemon-web-handler-debug.c \
- guifications-daemon-web-handler-feeds.c \
- guifications-daemon-web-handlers.c \
- guifications-daemon-web-theme.c
-guifications_daemon_web_la_LIBADD = \
-guifications_daemon_web_la_LDFLAGS = -avoid-version -module
-INCLUDES = -I$(top_srcdir)
- -DDATADIR=\"$(datadir)\" \
- -DLIBDIR=\"$(libdir)\" \
- -DLOCALEDIR=\"$(datadir)/locale\" \
--- a/guifications-daemon-web/src/guifications-daemon-web-handlers.h Mon Dec 13 23:16:27 2010 -0600
+++ b/guifications-daemon-web/src/guifications-daemon-web-handlers.h Mon Dec 13 23:40:42 2010 -0600
@@ -20,7 +20,7 @@
-#include <gflib/gf_lib.h>
#include <gplate/gplate.h>
--- a/guifications-daemon-web/src/guifications-daemon-web.c Mon Dec 13 23:16:27 2010 -0600
+++ b/guifications-daemon-web/src/guifications-daemon-web.c Mon Dec 13 23:40:42 2010 -0600
@@ -19,8 +19,7 @@
#endif /* HAVE_CONFIG_H */
-#include <gflib/gf_lib.h>
-#include <gflib/gf_intl.h>
#include <libsoup/soup.h>
@@ -86,8 +85,8 @@
static GfPluginInfo info = {
GF_NATIVE_PLUGIN_ABI_VERSION,
+ "Guifications Web Interface", N_("Web Interface for Guifications"),
N_("This is a daemon plugin for monitoring via a web browser"),
"Gary Kramlich <grim@reaperworld.com>",
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-web/themes/CMakeLists.txt Mon Dec 13 23:40:42 2010 -0600
@@ -0,0 +1,2 @@
+add_subdirectory(default) --- a/guifications-daemon-web/themes/Makefile.am Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-web/themes/default/CMakeLists.txt Mon Dec 13 23:40:42 2010 -0600
@@ -0,0 +1,14 @@
+ install(FILES ${PAGE} DESTINATION share/guifications-daemon/web/themes/default) --- a/guifications-daemon-web/themes/default/Makefile.am Mon Dec 13 23:16:27 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-EXTRA_DIST=$(DEFAULT_THEME)
-default_DATA=$(DEFAULT_THEME)
-defaultdir=$(datadir)/guifications-daemon/web/themes/default/