ports/59589: textproc/foiltex: add pkg-deinstall script
Stefan Walter
sw at gegenunendlich.de
Sat Nov 22 16:40:15 UTC 2003
>Number: 59589
>Category: ports
>Synopsis: textproc/foiltex: 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:10 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:
--- foiltex-mktexlsr.patch begins here ---
diff -urN foiltex.old/Makefile foiltex/Makefile
--- foiltex.old/Makefile Mon Nov 10 20:54:12 2003
+++ foiltex/Makefile Sat Nov 22 17:00:25 2003
@@ -57,7 +57,7 @@
@${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR}
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 foiltex.old/pkg-deinstall foiltex/pkg-deinstall
--- foiltex.old/pkg-deinstall Thu Jan 1 01:00:00 1970
+++ foiltex/pkg-deinstall Sat Nov 22 17:09:47 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
--- foiltex-mktexlsr.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list