pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox-bin-acroread Add INSTALL/DEINSTALL scripts...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd45f7d8e321
branches:  trunk
changeset: 531444:dd45f7d8e321
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Jul 30 16:15:10 2007 +0000

description:
Add INSTALL/DEINSTALL scripts for managing the symlinks to the plugins.

diffstat:

 www/firefox-bin-acroread/DEINSTALL |  8 ++++++++
 www/firefox-bin-acroread/INSTALL   |  9 +++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r 647776de8638 -r dd45f7d8e321 www/firefox-bin-acroread/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox-bin-acroread/DEINSTALL        Mon Jul 30 16:15:10 2007 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: DEINSTALL,v 1.1 2007/07/30 16:15:10 jlam Exp $
+
+case "${STAGE}" in
+DEINSTALL)
+       dest="${PKG_PREFIX}/lib/firefox-linux/plugins/nppdf.so"
+       ${RM} -f "$dest"
+       ;;
+esac
diff -r 647776de8638 -r dd45f7d8e321 www/firefox-bin-acroread/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox-bin-acroread/INSTALL  Mon Jul 30 16:15:10 2007 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: INSTALL,v 1.1 2007/07/30 16:15:11 jlam Exp $
+
+case "${STAGE}" in
+POST-INSTALL)
+       src="${PKG_PREFIX}/@ACROREAD@/@ACRO_SUBDIR@/@ACRO_PLATFORM@/nppdf.so"
+       dest="${PKG_PREFIX}/lib/firefox-linux/plugins/nppdf.so"
+       ${TEST} -f "$dest" || ${LN} -s "$src" "$dest"
+       ;;
+esac



Home | Main Index | Thread Index | Old Index