1eee29d534
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.
23 lines
636 B
Text
23 lines
636 B
Text
#!/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
|