diff options
author | trevor <trevor@FreeBSD.org> | 2002-01-26 04:10:41 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2002-01-26 04:10:41 +0800 |
commit | 9026a9717e27bcce6a4242fe8735224bb4263f4e (patch) | |
tree | 54a43196b549c0cc74ec6d200015f56ad59f3f1b /www | |
parent | e8f4773148c45bd90460cd2d761717f5db7658d9 (diff) | |
download | freebsd-ports-gnome-9026a9717e27bcce6a4242fe8735224bb4263f4e.tar.gz freebsd-ports-gnome-9026a9717e27bcce6a4242fe8735224bb4263f4e.tar.zst freebsd-ports-gnome-9026a9717e27bcce6a4242fe8735224bb4263f4e.zip |
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.
Diffstat (limited to 'www')
-rw-r--r-- | www/linux-mozilla-devel/Makefile | 22 | ||||
-rw-r--r-- | www/linux-mozilla-devel/pkg-message | 8 | ||||
-rw-r--r-- | www/linux-mozilla/Makefile | 22 | ||||
-rw-r--r-- | www/linux-mozilla/pkg-message | 8 |
4 files changed, 44 insertions, 16 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. +********************************************************** diff --git a/www/linux-mozilla/Makefile b/www/linux-mozilla/Makefile index 3d1f9d14bd3b..3742cee60399 100644 --- a/www/linux-mozilla/Makefile +++ b/www/linux-mozilla/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/pkg-message b/www/linux-mozilla/pkg-message index 2a630a8303c5..008670abfd2f 100644 --- a/www/linux-mozilla/pkg-message +++ b/www/linux-mozilla/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. +********************************************************** |