pkgsrc/www/typo3/DEINSTALL
taca 88e7c93c9f Some fixes and improvement for typo3 package. (This is a leaf packge.)
* Enable DESTDIR support.
* Fix installing a none-existing file.
* Tweak default path for optional programs; GraphicMagick or ImageMagick.
* Remove files/directories at uninstall suitably.

Bump PKGREVISION.
2008-09-25 02:22:12 +00:00

24 lines
644 B
Text

# $NetBSD: DEINSTALL,v 1.3 2008/09/25 02:22:12 taca Exp $
TYPO3_DIR="@PREFIX@/@TYPO3DIR@"
TYPO3_SITEDIR="${TYPO3_DIR}/@SITEDIR@"
TYPO3_SUBDIRS="uploads/tf uploads/pics uploads/media uploads typo3temp \
typo3conf/l10n typo3conf/ext typo3conf \
fileadmin/user_upload/_temp_ fileadmin/user_upload fileadmin/_temp_ \
fileadmin ${DIR}"
case ${STAGE} in
DEINSTALL)
(
cd ${TYPO3_SITEDIR}
${RM} -f typo3conf/ENABLE_INSTALL_TOOL
${RM} -f typo3conf/temp*.php
${RM} -fr typo3temp/*
for d in ${TYPO3_SUBDIRS}; do
test -d $d && ${RMDIR} $d 2>/dev/null
done
)
${RMDIR} ${TYPO3_SITEDIR} 2>/dev/null
${RMDIR} ${TYPO3_DIR} 2>/dev/null
;;
esac