head	1.5;
access;
symbols
	pkgsrc-2013Q2:1.5.0.24
	pkgsrc-2013Q2-base:1.5
	pkgsrc-2012Q4:1.5.0.22
	pkgsrc-2012Q4-base:1.5
	pkgsrc-2011Q4:1.5.0.20
	pkgsrc-2011Q4-base:1.5
	pkgsrc-2011Q2:1.5.0.18
	pkgsrc-2011Q2-base:1.5
	pkgsrc-2009Q4:1.5.0.16
	pkgsrc-2009Q4-base:1.5
	pkgsrc-2008Q4:1.5.0.14
	pkgsrc-2008Q4-base:1.5
	pkgsrc-2008Q3:1.5.0.12
	pkgsrc-2008Q3-base:1.5
	cube-native-xorg:1.5.0.10
	cube-native-xorg-base:1.5
	pkgsrc-2008Q2:1.5.0.8
	pkgsrc-2008Q2-base:1.5
	pkgsrc-2008Q1:1.5.0.6
	pkgsrc-2008Q1-base:1.5
	pkgsrc-2007Q4:1.5.0.4
	pkgsrc-2007Q4-base:1.5
	pkgsrc-2007Q3:1.5.0.2
	pkgsrc-2007Q3-base:1.5
	pkgsrc-2007Q2:1.4.0.28
	pkgsrc-2007Q2-base:1.4
	pkgsrc-2007Q1:1.4.0.26
	pkgsrc-2007Q1-base:1.4
	pkgsrc-2006Q4:1.4.0.24
	pkgsrc-2006Q4-base:1.4
	pkgsrc-2006Q3:1.4.0.22
	pkgsrc-2006Q3-base:1.4
	pkgsrc-2006Q2:1.4.0.20
	pkgsrc-2006Q2-base:1.4
	pkgsrc-2006Q1:1.4.0.18
	pkgsrc-2006Q1-base:1.4
	pkgsrc-2005Q4:1.4.0.16
	pkgsrc-2005Q4-base:1.4
	pkgsrc-2005Q3:1.4.0.14
	pkgsrc-2005Q3-base:1.4
	pkgsrc-2005Q2:1.4.0.12
	pkgsrc-2005Q2-base:1.4
	pkgsrc-2005Q1:1.4.0.10
	pkgsrc-2005Q1-base:1.4
	pkgsrc-2004Q4:1.4.0.8
	pkgsrc-2004Q4-base:1.4
	pkgsrc-2004Q3:1.4.0.6
	pkgsrc-2004Q3-base:1.4
	pkgsrc-2004Q2:1.4.0.4
	pkgsrc-2004Q2-base:1.4
	pkgsrc-2004Q1:1.4.0.2
	pkgsrc-2004Q1-base:1.4
	pkgsrc-2003Q4:1.3.0.2
	pkgsrc-2003Q4-base:1.3;
locks; strict;
comment	@# @;


1.5
date	2007.09.21.12.58.17;	author wiz;	state dead;
branches;
next	1.4;

1.4
date	2003.12.28.14.24.49;	author jmmv;	state Exp;
branches;
next	1.3;

1.3
date	2003.06.20.10.49.18;	author jmmv;	state Exp;
branches;
next	1.2;

1.2
date	2003.03.17.17.46.49;	author jmmv;	state Exp;
branches;
next	1.1;

1.1
date	2003.02.14.20.05.14;	author jmmv;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Rename GConf2 to GConf and GConf2-ui to GConf-ui, to match the
upstream name.
@
text
@# $NetBSD: install.tmpl,v 1.4 2003/12/28 14:24:49 jmmv Exp $
#
# Register GConf2 schema files into GConf2's database at install time.
#

GCONFTOOL2="@@GCONFTOOL2@@"
GCONF2_ENTRIES="@@GCONF2_ENTRIES@@"
GCONF2_SCHEMAS="@@GCONF2_SCHEMAS@@"
GCONF2_SCHEMAS_DIR="@@GCONF2_SCHEMAS_DIR@@"
GCONF2_CONFIG_SOURCE="@@GCONF2_CONFIG_SOURCE@@"

case ${STAGE} in
POST-INSTALL)
	for f in ${GCONF2_SCHEMAS}; do
		GCONF_CONFIG_SOURCE="${GCONF2_CONFIG_SOURCE}" \
			${GCONFTOOL2} --makefile-install-rule \
			${GCONF2_SCHEMAS_DIR}/$f >/dev/null
	done
	for f in ${GCONF2_ENTRIES}; do
		${GCONFTOOL2} --config-source=${GCONF2_CONFIG_SOURCE} \
			--direct --load ${GCONF2_SCHEMAS_DIR}/$f >/dev/null
	done
	;;
*)
	;;
esac
@


1.4
log
@Implement a framework to handle .entries files.  If a package installs
one or more .entries files, it can set GCONF2_ENTRIES to the names of those
files and they will get (un)registered at (de)installation time.

Installation is handled after .schemas are installed, and uninstallation
before .schemas are deinstalled.

To achieve this, we need to implement an --unload flag in gconftool-2 to
allow clean removal of .entries from the database.  This will be fed back
to authors.

Bump PKGREVISION to 1.
@
text
@d1 1
a1 1
# $NetBSD: install.tmpl,v 1.3 2003/06/20 10:49:18 jmmv Exp $
@


1.3
log
@Make this silent if there are no errors.
@
text
@d1 1
a1 1
# $NetBSD: install.tmpl,v 1.2 2003/03/17 17:46:49 jmmv Exp $
d7 1
d19 4
@


1.2
log
@s/PKGBASE/PKGNAME/ (gives more information, and looks better ;)
@
text
@d1 1
a1 1
# $NetBSD: install.tmpl,v 1.1 2003/02/14 20:05:14 jmmv Exp $
a12 1
	${ECHO} "===> Registering GConf2 schemas for ${PKGNAME}"
@


1.1
log
@Updated to 2.2.0.  Changes since 1.2.1 include:

* backends/markup-tree.c (markup_entry_get_value): fix a logic error causing
  us to deref a null pointer, reported by Brian Alexander Quistorff.
* configure.in: fix gtk-doc version check.
* configure.in: Added Belarusian to ALL_LINGUAS.
* gconf/gconf-internals.c (gconf_value_list_to_primitive_list_destructive):
  fix using the wrong type (value->type not value->list_type) in an error
  message, #96210.
* gconf/gconf-internals.c (subst_variables): patch from Benn Vosseteig fixing
  a crash with a long path to $HOME.
* doc/gconf/gconf.sgml, doc/gconf-1.0.dtd: Some additions to match the full
  range of schema elements curently accepted by gconftool. Supposedly complete
  now.
* doc/Makefile.am: change the gconf-1.0.dtd install location to
  $(datadir)/sgml/gconf which sounds more standards compliant.
* backends/markup-backend.c (resolve_address): add FIXME about.

Changes in the package:
* Honor PKG_SYSCONFDIR, maintaining the database inside it (PLIST do not need
  to care about files in etc/gconf.xml.defaults any more).
* Provide a schemas.mk file that is used to automatically register .schemas
  files in the database.
* Add a patch to handle schema deinstallation.

Reviewed by wiz.
@
text
@d1 1
a1 1
# $NetBSD$
d13 1
a13 1
	${ECHO} "===> Registering GConf2 schemas for ${PKGBASE}"
@

