From 5c16fb329da14b1c29c3fcc37485ef1c20b0fc38 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Sun, 2 May 2010 21:01:57 +0200 Subject: [PATCH] add gconf schemas --- .gitignore | 2 ++ Makefile.am | 2 +- configure.ac | 4 ++++ data/Makefile.am | 21 +++++++++++++++++++++ data/azimuth.schemas.in | 20 ++++++++++++++++++++ 5 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 data/Makefile.am create mode 100644 data/azimuth.schemas.in diff --git a/.gitignore b/.gitignore index 8f01d72..90455c7 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,8 @@ status src/azimuth src/cpazimuth.desktop +data/azimuth.schemas + debian/azimuth.postinst.debhelper debian/azimuth.postrm.debhelper debian/azimuth.substvars diff --git a/Makefile.am b/Makefile.am index af437a6..9768a98 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1 @@ -SUBDIRS = src +SUBDIRS = src data diff --git a/configure.ac b/configure.ac index d51c6c4..79bc1e9 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,8 @@ AC_SUBST(HILDON_CFLAGS) PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6) AC_SUBST(GCONF_LIBS) AC_SUBST(GCONF_CFLAGS) +AM_GCONF_SOURCE_2 +AC_PATH_PROG(GCONFTOOL, gconftool-2) PKG_CHECK_MODULES(DBUSGLIB, dbus-glib-1 >= 0.23.4) AC_SUBST(DBUSGLIB_LIBS) @@ -101,4 +103,6 @@ AC_OUTPUT([ Makefile src/Makefile src/cpazimuth.desktop + data/Makefile + data/azimuth.schemas ]) diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..32551f0 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,21 @@ +schemasdir = $(GCONF_SCHEMA_FILE_DIR) +schemas_in_files = azimuth.schemas.in +schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) + +if GCONF_SCHEMAS_INSTALL +install-data-local: + if test -z "$(DESTDIR)" ; then \ + for p in $(schemas_DATA) ; do \ + GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \ + done \ + fi +else +install-data-local: +endif + +EXTRA_DIST = \ + $(schemas_in_files) \ + $(schemas_DATA) + +DISTCLEANFILES = \ + $(schemas_DATA) diff --git a/data/azimuth.schemas.in b/data/azimuth.schemas.in new file mode 100644 index 0000000..8b471cf --- /dev/null +++ b/data/azimuth.schemas.in @@ -0,0 +1,20 @@ + + + + + /schemas/apps/azimuth/enabled + /apps/azimuth/enabled + azimuth + bool + false + + Enable publishing offline contacts + + Publish position when GPS is running. + + + + + + + -- 1.7.9.5