summaryrefslogtreecommitdiff
path: root/devel/dconf
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-11-16 19:47:07 +0000
committerdrochner <drochner@pkgsrc.org>2010-11-16 19:47:07 +0000
commit7c71817524cd72c3289c10f9721586c501f38d6a (patch)
treea619fcc851e65469af44b3ec5b2df61301c4adfb /devel/dconf
parentd1587a486d44a19d2e835c9e63049dfe223255d8 (diff)
downloadpkgsrc-7c71817524cd72c3289c10f9721586c501f38d6a.tar.gz
add dconf-0.5.1, a backend for the "gsettings" part of GConf which
is needed to store data persistently (The code is still crappy, but it will be needed by some gnome>=2.32 applications which switched to "gsettings".)
Diffstat (limited to 'devel/dconf')
-rw-r--r--devel/dconf/DESCR3
-rw-r--r--devel/dconf/Makefile24
-rw-r--r--devel/dconf/PLIST33
-rw-r--r--devel/dconf/distinfo7
-rw-r--r--devel/dconf/patches/patch-aa39
-rw-r--r--devel/dconf/patches/patch-ab14
6 files changed, 120 insertions, 0 deletions
diff --git a/devel/dconf/DESCR b/devel/dconf/DESCR
new file mode 100644
index 00000000000..4ecd2a6f734
--- /dev/null
+++ b/devel/dconf/DESCR
@@ -0,0 +1,3 @@
+dconf is a low-level configuration system. Its main purpose is
+to provide a backend to GSettings on platforms that don't already
+have configuration storage systems.
diff --git a/devel/dconf/Makefile b/devel/dconf/Makefile
new file mode 100644
index 00000000000..de154c75cb1
--- /dev/null
+++ b/devel/dconf/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/11/16 19:47:07 drochner Exp $
+#
+
+DISTNAME= dconf-0.5.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/dconf/0.5/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://live.gnome.org/dconf
+COMMENT= Backend for gsettings
+#LICENSE= # TODO: (see mk/license.mk)
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --disable-editor
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= client/dconf.pc.in
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/dconf/PLIST b/devel/dconf/PLIST
new file mode 100644
index 00000000000..309e65f5c8e
--- /dev/null
+++ b/devel/dconf/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/11/16 19:47:07 drochner Exp $
+bin/dconf
+include/dconf/dconf-client.h
+include/dconf/dconf-engine.h
+include/dconf/dconf-paths.h
+include/dconf/dconf-readtype.h
+include/dconf/dconf-resetlist.h
+include/dconf/dconf.h
+lib/gio/modules/libdconfsettings.so
+lib/libdconf.so
+lib/libdconf.so.0
+lib/libdconf.so.0.0.0
+lib/pkgconfig/dconf.pc
+libexec/dconf-service
+share/dbus-1/services/ca.desrt.dconf.service
+share/dbus-1/system-services/ca.desrt.dconf.service
+share/gtk-doc/html/dconf/DConfClient.html
+share/gtk-doc/html/dconf/annotation-glossary.html
+share/gtk-doc/html/dconf/api-index-full.html
+share/gtk-doc/html/dconf/ch01.html
+share/gtk-doc/html/dconf/dconf-DConf-Paths.html
+share/gtk-doc/html/dconf/dconf.devhelp
+share/gtk-doc/html/dconf/dconf.devhelp2
+share/gtk-doc/html/dconf/home.png
+share/gtk-doc/html/dconf/index.html
+share/gtk-doc/html/dconf/index.sgml
+share/gtk-doc/html/dconf/left.png
+share/gtk-doc/html/dconf/object-tree.html
+share/gtk-doc/html/dconf/right.png
+share/gtk-doc/html/dconf/style.css
+share/gtk-doc/html/dconf/up.png
+share/vala/vapi/dconf.deps
+share/vala/vapi/dconf.vapi
diff --git a/devel/dconf/distinfo b/devel/dconf/distinfo
new file mode 100644
index 00000000000..262ea234bd4
--- /dev/null
+++ b/devel/dconf/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/11/16 19:47:07 drochner Exp $
+
+SHA1 (dconf-0.5.1.tar.bz2) = 4e1dab1f744aad0bff1896ac6f288ad6a9dfece8
+RMD160 (dconf-0.5.1.tar.bz2) = ebc02b010a44d78ac48dc1c4426cc723430b3016
+Size (dconf-0.5.1.tar.bz2) = 251287 bytes
+SHA1 (patch-aa) = 4e0ca83a57cae340cb0f661e36a4af4e772ae91b
+SHA1 (patch-ab) = c9878b23be5bf4b2305aae6318026cd081c674ce
diff --git a/devel/dconf/patches/patch-aa b/devel/dconf/patches/patch-aa
new file mode 100644
index 00000000000..4d79b8c265e
--- /dev/null
+++ b/devel/dconf/patches/patch-aa
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/11/16 19:47:07 drochner Exp $
+
+--- common/dconf-shmdir.c.orig 2010-07-26 14:10:20.000000000 +0000
++++ common/dconf-shmdir.c
+@@ -21,9 +21,6 @@
+
+ #include "dconf-shmdir.h"
+
+-#include <sys/statfs.h>
+-#include <sys/vfs.h>
+-#include <errno.h>
+
+ #ifndef NFS_SUPER_MAGIC
+ #define NFS_SUPER_MAGIC 0x6969
+@@ -32,23 +29,7 @@
+ static gboolean
+ is_local (const gchar *filename)
+ {
+- struct statfs buf;
+- gint s;
+-
+- do
+- s = statfs (filename, &buf);
+- while (s < 0 && errno == EINTR);
+-
+- if (s < 0 && errno == ENOENT)
+- {
+- g_mkdir_with_parents (filename, 0700);
+-
+- do
+- s = statfs (filename, &buf);
+- while (s < 0 && errno == EINTR);
+- }
+-
+- return s == 0 && buf.f_type != NFS_SUPER_MAGIC;
++ return 1;
+ }
+
+ gchar *
diff --git a/devel/dconf/patches/patch-ab b/devel/dconf/patches/patch-ab
new file mode 100644
index 00000000000..068b7ef371b
--- /dev/null
+++ b/devel/dconf/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/11/16 19:47:07 drochner Exp $
+
+--- engine/dconf-engine.c.orig 2010-08-04 15:40:53.000000000 +0000
++++ engine/dconf-engine.c
+@@ -144,7 +144,8 @@ dconf_engine_setup_user (DConfEngine *en
+
+ if (fd >= 0)
+ {
+- if (posix_fallocate (fd, 0, 1) == 0)
++ ftruncate(fd, 1);
++ if (1)
+ {
+ engine->shm = mmap (NULL, 1, PROT_READ, MAP_SHARED, fd, 0);
+