diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-01-25 20:10:41 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-01-25 20:10:41 +0000 |
commit | 94b8e0fa7f193b32f7f16dd6cc173842e321ba5e (patch) | |
tree | b581065183ddb6464bcc61175b25485efaf5803f /www/linux-mozilla-devel | |
parent | Mention the ability of this port to use the plugins bundled with (diff) |
Install a new script, linkfarm, with linux-mozilla. This script
makes symlinks under PREFIX/lib/linux-mozilla/plugins/, pointing
to anything the script finds in the netscape-linux or linux-netscape6
plugin directories. The script is run automatically on installation
of the port or the package and the user is advised to run it after
installing new Netscape plugins. Unlike the former arrangement,
the symlinks are now removed upon de-installation of linux-mozilla.
Increment PORTREVISION.
Notes
Notes:
svn path=/head/; revision=53726
Diffstat (limited to 'www/linux-mozilla-devel')
-rw-r--r-- | www/linux-mozilla-devel/Makefile | 22 | ||||
-rw-r--r-- | www/linux-mozilla-devel/pkg-message | 8 |
2 files changed, 22 insertions, 8 deletions
diff --git a/www/linux-mozilla-devel/Makefile b/www/linux-mozilla-devel/Makefile index 3d1f9d14bd3b..3742cee60399 100644 --- a/www/linux-mozilla-devel/Makefile +++ b/www/linux-mozilla-devel/Makefile @@ -8,6 +8,7 @@ PORTNAME= mozilla PORTVERSION= 0.9.7 +PORTREVISION= 1 CATEGORIES= www linux MASTER_SITES= ${MASTER_SITE_MOZILLA} MASTER_SITE_SUBDIR= mozilla/releases/mozilla${PORTVERSION}/linux-xpi/ @@ -40,6 +41,7 @@ USE_XLIB= yes USE_LINUX= yes WRKSRC= ${WRKDIR}/xpi INSTALL_DIR= ${PREFIX}/lib/linux-mozilla +PKGMESSAGE= ${WRKDIR}/pkg-message PLIST= ${WRKDIR}/pkg-plist STARTUP_CMD= linux-mozilla @@ -59,30 +61,38 @@ do-configure: ${ECHO} -n "cd " >>${WRKDIR}/${STARTUP_CMD} ${ECHO} ${INSTALL_DIR} >>${WRKDIR}/${STARTUP_CMD} ${ECHO} "exec ./mozilla" >>${WRKDIR}/${STARTUP_CMD} + ${ECHO} "#!/bin/sh" >${WRKDIR}/linkfarm + ${ECHO} "# Run this after installing Netscape plugins." >>${WRKDIR}/linkfarm + ${ECHO} "cd ${PREFIX}/lib/linux-mozilla/plugins" >>${WRKDIR}/linkfarm + ${ECHO} -n "${FIND} ../../netscape-linux/plugins/*" >>${WRKDIR}/linkfarm + ${ECHO} " -maxdepth 1 -exec ${LN} -s {} \; 2>/dev/null" >>${WRKDIR}/linkfarm + ${ECHO} -n "${FIND} ../../linux-netscape6/plugins" >>${WRKDIR}/linkfarm + ${ECHO} " -maxdepth 1 -exec ${LN} -s {} \; 2>/dev/null" >>${WRKDIR}/linkfarm pre-install: ${ECHO} bin/${STARTUP_CMD} > ${PLIST} + ${ECHO} "@unexec ${FIND} ${PREFIX}/lib/linux-mozilla/plugins -type l \ + -exec ${RM} {} \;" >> ${PLIST} cd ${WRKSRC}/bin; for i in `find * \! -type d | sort`; do \ ${ECHO} lib/linux-mozilla/$${i} >> ${PLIST}; \ done - ${ECHO} lib/linux-mozilla/plugins/libflashplayer.so >> ${PLIST} - ${ECHO} lib/linux-mozilla/plugins/ShockwaveFlash.class >> ${PLIST} cd ${WRKSRC}/bin; \ for i in `find -d * -type d`; do \ ${ECHO} @dirrm lib/linux-mozilla/$${i} >> ${PLIST}; \ done + ${ECHO} lib/linux-mozilla/linkfarm >> ${PLIST} + ${ECHO} "@exec ${PREFIX}/lib/linux-mozilla/linkfarm" >> ${PLIST} ${ECHO} @dirrm lib/linux-mozilla >> ${PLIST} do-install: ${MKDIR} ${INSTALL_DIR} ${CP} -Rp ${WRKSRC}/bin/* ${INSTALL_DIR} -# These links are broken if the linux-flashplugin package is not installed. - cd ${PREFIX}/lib/linux-mozilla/plugins \ - && ${LN} -s ../../netscape-linux/plugins/libflashplayer.so \ - && ${LN} -s ../../netscape-linux/plugins/ShockwaveFlash.class ${INSTALL_SCRIPT} ${WRKDIR}/${STARTUP_CMD} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/linkfarm ${PREFIX}/lib/linux-mozilla/ post-install: + ${SED} -e 's:PREFIX:${PREFIX}:g' ${PKGDIR}/pkg-message > ${PKGMESSAGE} + - ${PREFIX}/lib/linux-mozilla/linkfarm ${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/www/linux-mozilla-devel/pkg-message b/www/linux-mozilla-devel/pkg-message index 2a630a8303c5..008670abfd2f 100644 --- a/www/linux-mozilla-devel/pkg-message +++ b/www/linux-mozilla-devel/pkg-message @@ -1,8 +1,12 @@ -*********************************************** +********************************************************** This is a beta version. It would be a good idea to back up any important bookmark files. Settings in users' ~/.mozilla/ from an older Mozilla may not work. In that case, remove the old files and make fresh ones. -*********************************************** + +After installing new plugins within (Linux) Netscape, run +PREFIX/lib/linux-mozilla/linkfarm +each time as root to make them available to linux-mozilla. +********************************************************** |