From a371762cf663f779bd81db49cb2df8e0f3b2636e Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 12 Nov 2007 20:41:18 +0000 Subject: move the install/deinstall templates from scrollkeeper to rarian to reflect where the work is done (call the backwards-compatible rarian version "install-scrollkeeper" to leave room for a future non-compatibility version) --- textproc/rarian/files/install-scrollkeeper.tmpl | 14 ++++++++++++++ textproc/scrollkeeper/files/install.tmpl | 14 -------------- textproc/scrollkeeper/omf.mk | 10 ++++++---- 3 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 textproc/rarian/files/install-scrollkeeper.tmpl delete mode 100644 textproc/scrollkeeper/files/install.tmpl (limited to 'textproc') diff --git a/textproc/rarian/files/install-scrollkeeper.tmpl b/textproc/rarian/files/install-scrollkeeper.tmpl new file mode 100644 index 00000000000..f89e1c8c479 --- /dev/null +++ b/textproc/rarian/files/install-scrollkeeper.tmpl @@ -0,0 +1,14 @@ +# $NetBSD: install-scrollkeeper.tmpl,v 1.1 2007/11/12 20:41:18 drochner Exp $ + +SCROLLKEEPER_DATADIR="@SCROLLKEEPER_DATADIR@" +SCROLLKEEPER_REBUILDDB="@SCROLLKEEPER_REBUILDDB@" +SCROLLKEEPER_UPDATEDB="@SCROLLKEEPER_UPDATEDB@" + +case ${STAGE} in +POST-INSTALL) + ${SCROLLKEEPER_UPDATEDB} -q -p ${SCROLLKEEPER_DATADIR}/db + ;; +DEINSTALL) + ${SCROLLKEEPER_UPDATEDB} -q -p ${SCROLLKEEPER_DATADIR}/db + ;; +esac diff --git a/textproc/scrollkeeper/files/install.tmpl b/textproc/scrollkeeper/files/install.tmpl deleted file mode 100644 index 352f6ded0cb..00000000000 --- a/textproc/scrollkeeper/files/install.tmpl +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: install.tmpl,v 1.3 2004/03/07 11:53:43 jmmv Exp $ - -SCROLLKEEPER_DATADIR="@SCROLLKEEPER_DATADIR@" -SCROLLKEEPER_REBUILDDB="@SCROLLKEEPER_REBUILDDB@" -SCROLLKEEPER_UPDATEDB="@SCROLLKEEPER_UPDATEDB@" - -case ${STAGE} in -POST-INSTALL) - ${SCROLLKEEPER_UPDATEDB} -q -p ${SCROLLKEEPER_DATADIR}/db - ;; -DEINSTALL) - ${SCROLLKEEPER_UPDATEDB} -q -p ${SCROLLKEEPER_DATADIR}/db - ;; -esac diff --git a/textproc/scrollkeeper/omf.mk b/textproc/scrollkeeper/omf.mk index 270f545c998..c7920ec0304 100644 --- a/textproc/scrollkeeper/omf.mk +++ b/textproc/scrollkeeper/omf.mk @@ -1,4 +1,4 @@ -# $NetBSD: omf.mk,v 1.13 2007/10/31 20:26:21 drochner Exp $ +# $NetBSD: omf.mk,v 1.14 2007/11/12 20:41:18 drochner Exp $ # # This Makefile fragment is intended to be included by packages that install # OMF files. It takes care of registering them in scrollkeeper's global @@ -22,15 +22,17 @@ SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.rarian}/libdata/scrollkeeper SCROLLKEEPER_REBUILDDB= ${BUILDLINK_PREFIX.rarian}/bin/scrollkeeper-rebuilddb SCROLLKEEPER_UPDATEDB= ${BUILDLINK_PREFIX.rarian}/bin/scrollkeeper-update -INSTALL_TEMPLATES+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl -DEINSTALL_TEMPLATES+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl +INSTALL_TEMPLATES+= \ + ${.CURDIR}/../../textproc/rarian/files/install-scrollkeeper.tmpl +DEINSTALL_TEMPLATES+= \ + ${.CURDIR}/../../textproc/rarian/files/install-scrollkeeper.tmpl FILES_SUBST+= SCROLLKEEPER_DATADIR=${SCROLLKEEPER_DATADIR:Q} FILES_SUBST+= SCROLLKEEPER_REBUILDDB=${SCROLLKEEPER_REBUILDDB:Q} FILES_SUBST+= SCROLLKEEPER_UPDATEDB=${SCROLLKEEPER_UPDATEDB:Q} PRINT_PLIST_AWK+= /^@dirrm share\/omf$$/ \ - { print "@comment in scrollkeeper: " $$0; \ + { print "@comment in rarian: " $$0; \ next; } .include "../../textproc/rarian/buildlink3.mk" -- cgit v1.2.3