summaryrefslogtreecommitdiff
path: root/print/apsfilter/INSTALL
diff options
context:
space:
mode:
authorjmmv <jmmv>2002-11-26 11:26:31 +0000
committerjmmv <jmmv>2002-11-26 11:26:31 +0000
commit82db1042a57297b51fe2265a0cb7822fe44041a6 (patch)
treec548d9349ad1ca02a34bdbeb52305218dff90a1c /print/apsfilter/INSTALL
parentbb4b501c29a7f665bde012fea7cc1b34e00ab878 (diff)
downloadpkgsrc-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/INSTALL23
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