[BACK]Return to INSTALL CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2

File: [cvs.NetBSD.org] / pkgsrc / devel / glib2 / INSTALL (download)

Revision 1.1, Sun Feb 20 17:40:54 2011 UTC (8 years, 7 months ago) by jmmv
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-, HEAD

Forcibly delete any stale cache files during deinstall.  For example, the
gio-querymodules utility does not delete the file when no modules are left,
so we were left with a giomodule.cache file after removing glib2 that was
not managed by any package.

Also, and as a side effect, ensure that the files are created during
install time so that in-place updates work correctly.

Bump PKGREVISION to 2.

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1 2011/02/20 17:40:54 jmmv Exp $
#
# Generate caches after installing the glib2 package.  This is theorically
# not needed for a fresh install but is required for in-place updates to
# work correctly.

GIO_MODULES_DIR="@GIO_MODULES_DIR@"
GIO_QUERYMODULES="@GIO_QUERYMODULES@"
GLIB_COMPILE_SCHEMAS="@GLIB_COMPILE_SCHEMAS@"
GLIB_SCHEMAS_DIR="@GLIB_SCHEMAS_DIR@"

case ${STAGE} in
POST-INSTALL)
	"${GIO_QUERYMODULES}" "${GIO_MODULES_DIR}"
	XDG_DATA_DIRS= "${GLIB_COMPILE_SCHEMAS}" "${GLIB_SCHEMAS_DIR}"
	;;
esac