1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

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.
This commit is contained in:
Trevor Johnson 2002-01-25 20:10:41 +00:00
parent 488af2351c
commit 94b8e0fa7f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53726
4 changed files with 44 additions and 16 deletions

View File

@ -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>

View File

@ -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.
**********************************************************

View File

@ -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>

View File

@ -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.
**********************************************************