From 585f0b0dfc959d54bc7cac05b735410eb9047d85 Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 25 May 2014 06:06:00 +0000 Subject: Add dconf database management support fragments. --- devel/dconf/database.mk | 23 +++++++++++++++++++++++ devel/dconf/files/database.tmpl | 17 +++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 devel/dconf/database.mk create mode 100644 devel/dconf/files/database.tmpl (limited to 'devel/dconf') diff --git a/devel/dconf/database.mk b/devel/dconf/database.mk new file mode 100644 index 00000000000..f759c2ff552 --- /dev/null +++ b/devel/dconf/database.mk @@ -0,0 +1,23 @@ +# $NetBSD: database.mk,v 1.1 2014/05/25 06:06:00 obache Exp $ +# +# This Makefile fragment is intended to be included by packages that install +# dconf database. It takes care of update the corresponding databases +# at (de)installation time. +# + +.if !defined(DCONF_DATABASE_MK) +DCONF_DATABASE_MK= # defined + +EVAL_PREFIX+= BUILDLINK_PREFIX.dconf=dconf + +DCONF= ${BUILDLINK_PREFIX.dconf}/bin/dconf + +FILES_SUBST+= DCONF=${DCONF:Q} +INSTALL_TEMPLATES+= ../../devel/dconf/files/database.tmpl +DEINSTALL_TEMPLATES+= ../../devel/dconf/files/database.tmpl + +TOOLS_NOOP+= dconf + +DEPENDS+= dconf-[0-9]*:../../devel/dconf + +.endif # DCONF_DATABASE_MK diff --git a/devel/dconf/files/database.tmpl b/devel/dconf/files/database.tmpl new file mode 100644 index 00000000000..cf1561e899d --- /dev/null +++ b/devel/dconf/files/database.tmpl @@ -0,0 +1,17 @@ +# $NetBSD: database.tmpl,v 1.1 2014/05/25 06:06:00 obache Exp $ +# +# Update the dconf database. +# + +DCONF="@DCONF@" + +case "${STAGE}" in +POST-INSTALL) + ${DCONF} update + ;; +POST-DEINSTALL) + ${DCONF} update + ;; +*) + ;; +esac -- cgit v1.2.3