ports/59590: textproc/ppower4: add pkg-deinstall script
Stefan Walter
sw at gegenunendlich.de
Sat Nov 22 16:40:15 UTC 2003
>Number: 59590
>Category: ports
>Synopsis: textproc/ppower4: add pkg-deinstall script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 22 08:40:11 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Stefan Walter
>Release: FreeBSD 5.1-RELEASE-p2 i386
>Organization:
Infinity Approximation Task Force
>Environment:
System: FreeBSD kyuzo.dunkelkammer.void 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #0: Wed Sep 24 11:41:19 CEST 2003 root at kyuzo.dunkelkammer.void:/usr/src/sys/i386/compile/KYUZO i386
>Description:
- Add a pkg-deinstall script for updating LaTeX's content cache after
deinstalling, too. (Suggested by Greg Lewis)
- When installing via port, set $PKG_PREFIX to $PREFIX for the
pkg-install script to make it look for mktexlsr in there, too.
>How-To-Repeat:
(Un)Install the port.
>Fix:
--- ppower4-mktexlsr.patch begins here ---
diff -urN ppower4.old/Makefile ppower4/Makefile
--- ppower4.old/Makefile Sat Nov 22 16:32:27 2003
+++ ppower4/Makefile Sat Nov 22 16:45:44 2003
@@ -60,7 +60,7 @@
@${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4
post-install:
- ${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \
- ${PKGNAME} POST-INSTALL
+ ${SETENV} LOCALBASE=${LOCALBASE} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff -urN ppower4.old/pkg-deinstall ppower4/pkg-deinstall
--- ppower4.old/pkg-deinstall Thu Jan 1 01:00:00 1970
+++ ppower4/pkg-deinstall Sat Nov 22 17:10:45 2003
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+ echo "Updating content cache to let LaTeX know about the new style files:"
+ if [ -x ${PKG_PREFIX}/bin/mktexlsr ]; then
+ ${PKG_PREFIX}/bin/mktexlsr
+ elif [ -x /usr/local/bin/mktexlsr ]; then
+ /usr/local/bin/mktexlsr
+ else
+ echo "Could not find mktexlsr. Please run it manually to update"
+ echo "LaTeX's content cache."
+ fi
+fi
--- ppower4-mktexlsr.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list