diff options
author | jmmv <jmmv> | 2002-11-26 11:26:31 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2002-11-26 11:26:31 +0000 |
commit | 82db1042a57297b51fe2265a0cb7822fe44041a6 (patch) | |
tree | c548d9349ad1ca02a34bdbeb52305218dff90a1c /print/apsfilter/INSTALL | |
parent | bb4b501c29a7f665bde012fea7cc1b34e00ab878 (diff) | |
download | pkgsrc-82db1042a57297b51fe2265a0cb7822fe44041a6.tar.gz |
Make this package behave properly when installing configuration files, that
is, using the PKG_SYSCONFDIR stuff. apsfilter needs a symlink in the
configuration directory, so add an INSTALL script to create it (which
handles all DEINSTALL stuff too). Bump PKGREVISION to 2.
Approved by wiz.
This closes PR 18994.
Diffstat (limited to 'print/apsfilter/INSTALL')
-rw-r--r-- | print/apsfilter/INSTALL | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/print/apsfilter/INSTALL b/print/apsfilter/INSTALL new file mode 100644 index 00000000000..49e95e50432 --- /dev/null +++ b/print/apsfilter/INSTALL @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2002/11/26 11:26:32 jmmv Exp $ + +PREFIX="@PREFIX@" + +case ${STAGE} in +POST-INSTALL) + ${LN} -s ${PREFIX}/share/apsfilter ${PKG_SYSCONFDIR}/basedir + ;; +DEINSTALL) + ${RM} ${PKG_SYSCONFDIR}/basedir + + cat << EOF +=========================================================================== +If you will not be using apsfilter any longer, you may want to remove +apsfilter's configuration directory (${PKG_SYSCONFDIR}) and the +SETUP.cfg configuration file from apsfilter's directory +(${PREFIX}/share/apsfilter/SETUP.cfg). +=========================================================================== +EOF + ;; +esac |