diff options
author | glewis <glewis@FreeBSD.org> | 2004-07-10 02:03:44 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-07-10 02:03:44 +0800 |
commit | 680e28350a491c42868539f0f7c264dec0acc17b (patch) | |
tree | dbea0d44b70b6d1a33588d988667d5942e701c4d /java | |
parent | 05b0fcccdd065c09c2bf1a4f0b7e7b4869af0214 (diff) | |
download | freebsd-ports-gnome-680e28350a491c42868539f0f7c264dec0acc17b.tar.gz freebsd-ports-gnome-680e28350a491c42868539f0f7c264dec0acc17b.tar.zst freebsd-ports-gnome-680e28350a491c42868539f0f7c264dec0acc17b.zip |
. Use a more up to date browser plugin directory and respect ${X11BASE}
when doing do.
Diffstat (limited to 'java')
-rw-r--r-- | java/diablo-jdk13/Makefile | 13 | ||||
-rw-r--r-- | java/diablo-jdk13/files/pkg-deinstall.in (renamed from java/diablo-jdk13/pkg-deinstall) | 12 | ||||
-rw-r--r-- | java/diablo-jdk13/files/pkg-install.in (renamed from java/diablo-jdk13/pkg-install) | 18 | ||||
-rw-r--r-- | java/diablo-jre13/Makefile | 13 | ||||
-rw-r--r-- | java/diablo-jre13/files/pkg-deinstall.in (renamed from java/diablo-jre13/pkg-deinstall) | 12 | ||||
-rw-r--r-- | java/diablo-jre13/files/pkg-install.in (renamed from java/diablo-jre13/pkg-install) | 20 |
6 files changed, 53 insertions, 35 deletions
diff --git a/java/diablo-jdk13/Makefile b/java/diablo-jdk13/Makefile index e6ffb52e2803..7b17c2b2748b 100644 --- a/java/diablo-jdk13/Makefile +++ b/java/diablo-jdk13/Makefile @@ -50,6 +50,9 @@ NO_BUILD= yes INSTALL_DIR= ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall + .if defined(WITHOUT_PLUGIN) PLIST_SUB+= PLUGIN:="@comment " PKGNAMESUFFIX= -noplugin @@ -99,10 +102,16 @@ do-install: post-install: # Register the VM - ${LOCALBASE}/bin/registervm "${INSTALL_DIR}/bin/java # DiabloCaffe${JDK_VERSION}" + ${LOCALBASE}/bin/registervm \ + "${INSTALL_DIR}/bin/java # DiabloCaffe${JDK_VERSION}" .if !defined(WITHOUT_PLUGIN) + # Create pkg-(de)install + ${SED} -e "s:%%X11BASE%%:${X11BASE}:g" < ${FILESDIR}/pkg-install.in \ + > ${PKGINSTALL} + ${SED} -e "s:%%X11BASE%%:${X11BASE}:g" < ${FILESDIR}/pkg-deinstall.in \ + > ${PKGDEINSTALL} # Install the plugin - ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL + ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif .include <bsd.port.post.mk> diff --git a/java/diablo-jdk13/pkg-deinstall b/java/diablo-jdk13/files/pkg-deinstall.in index f66d200d5797..42cc333f3c94 100644 --- a/java/diablo-jdk13/pkg-deinstall +++ b/java/diablo-jdk13/files/pkg-deinstall.in @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/java/diablo-jdk13/Attic/pkg-deinstall,v 1.1 2003-08-25 16:54:36 glewis Exp $ +# $FreeBSD$ # Set up a standard path PATH=/usr/bin:/bin @@ -12,7 +12,7 @@ fi # Remove the plugin # Plugin location variables -MOZILLAPLUGINDIR=/usr/X11R6/lib/mozilla/plugins +BROWSERPLUGINDIR=%%X11BASE%%/lib/browser_plugins if [ `echo "$1" | grep jdk` ]; then DIABLOPLUGINDIR=${PKG_PREFIX}/diablo-jdk1.3.1/jre/plugin/i386/ns600 else @@ -26,10 +26,10 @@ if [ ! -e "${DIABLOPLUGINDIR}/${PLUGIN}" ]; then fi # See if the browser plugin is a link to the package plugin and remove it if so. -if [ -e "${MOZILLAPLUGINDIR}/${PLUGIN}" -a \ - -L "${MOZILLAPLUGINDIR}/${PLUGIN}" -a \ - x`ls -l "${MOZILLAPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${DIABLOPLUGINDIR}/${PLUGIN}" ]; then - rm -f "${MOZILLAPLUGINDIR}/${PLUGIN}" +if [ -e "${BROWSERPLUGINDIR}/${PLUGIN}" -a \ + -L "${BROWSERPLUGINDIR}/${PLUGIN}" -a \ + x`ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${DIABLOPLUGINDIR}/${PLUGIN}" ]; then + rm -f "${BROWSERPLUGINDIR}/${PLUGIN}" fi exit 0 diff --git a/java/diablo-jdk13/pkg-install b/java/diablo-jdk13/files/pkg-install.in index 9d4279fd62c3..e417476e5054 100644 --- a/java/diablo-jdk13/pkg-install +++ b/java/diablo-jdk13/files/pkg-install.in @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/java/diablo-jdk13/Attic/pkg-install,v 1.2 2004-03-17 16:44:11 glewis Exp $ +# $FreeBSD$ # Set up a standard path PATH=/usr/bin:/bin @@ -12,7 +12,7 @@ fi # Attempt to install a link for the browser plugin during post-install if [ "$2" = "POST-INSTALL" ]; then # Plugin location variables - MOZILLAPLUGINDIR=/usr/X11R6/lib/mozilla/plugins + BROWSERPLUGINDIR=%%X11BASE%%/lib/browser_plugins if [ `echo "$1" | grep jdk` ]; then DIABLOPLUGINDIR=${PKG_PREFIX}/diablo-jdk1.3.1/jre/plugin/i386/ns600 else @@ -26,25 +26,25 @@ if [ "$2" = "POST-INSTALL" ]; then fi # Check if the plugin directory exists. - if [ ! -d "${MOZILLAPLUGINDIR}" ]; then + if [ ! -d "${BROWSERPLUGINDIR}" ]; then exit 0 fi # Check if the browser plugin currently exists - if [ ! -e "${MOZILLAPLUGINDIR}/${PLUGIN}" ]; then + if [ ! -e "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then # Create symbolic link ln -sf "${DIABLOPLUGINDIR}/${PLUGIN}" \ - "${MOZILLAPLUGINDIR}/${PLUGIN}" + "${BROWSERPLUGINDIR}/${PLUGIN}" exit 0 fi # If the browser plugin exists and is a symlink, but the link # doesn't exist, then overwrite with the diablo plugin. - if [ -L "${MOZILLAPLUGINDIR}/${PLUGIN}" ]; then + if [ -L "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then # Check if the linked to file exists. - if [ ! -e `ls -l "${MOZILLAPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` ]; then + if [ ! -e `ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` ]; then ln -sf "${DIABLOPLUGINDIR}/${PLUGIN}" \ - "${MOZILLAPLUGINDIR}/${PLUGIN}" + "${BROWSERPLUGINDIR}/${PLUGIN}" exit 0 fi fi @@ -58,7 +58,7 @@ if [ "$2" = "POST-INSTALL" ]; then case $ANSWER in [yY]|[yY][eE][sS]) ln -sf "${DIABLOPLUGINDIR}/${PLUGIN}" \ - "${MOZILLAPLUGINDIR}/${PLUGIN}" + "${BROWSERPLUGINDIR}/${PLUGIN}" ;; *) ;; diff --git a/java/diablo-jre13/Makefile b/java/diablo-jre13/Makefile index c79c9b2dc1b0..3deb42f3c3ff 100644 --- a/java/diablo-jre13/Makefile +++ b/java/diablo-jre13/Makefile @@ -50,6 +50,9 @@ NO_BUILD= yes INSTALL_DIR= ${PREFIX}/${PKGNAMEPREFIX}jre${JRE_VERSION} +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall + .if defined(WITHOUT_PLUGIN) PLIST_SUB+= PLUGIN:="@comment " PKGNAMESUFFIX= -noplugin @@ -99,10 +102,16 @@ do-install: post-install: # Register the VM - ${LOCALBASE}/bin/registervm "${INSTALL_DIR}/bin/java # DiabloLatte${JRE_VERSION}" + ${LOCALBASE}/bin/registervm \ + "${INSTALL_DIR}/bin/java # DiabloLatte${JRE_VERSION}" .if !defined(WITHOUT_PLUGIN) + # Create pkg-(de)install + ${SED} -e "s:%%X11BASE%%:${X11BASE}:g" < ${FILESDIR}/pkg-install.in \ + > ${PKGINSTALL} + ${SED} -e "s:%%X11BASE%%:${X11BASE}:g" < ${FILESDIR}/pkg-deinstall.in \ + > ${PKGDEINSTALL} # Install the plugin - ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL + ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif .include <bsd.port.post.mk> diff --git a/java/diablo-jre13/pkg-deinstall b/java/diablo-jre13/files/pkg-deinstall.in index e2aa807dc1ca..42cc333f3c94 100644 --- a/java/diablo-jre13/pkg-deinstall +++ b/java/diablo-jre13/files/pkg-deinstall.in @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/java/diablo-jre13/Attic/pkg-deinstall,v 1.1 2003-08-25 16:53:03 glewis Exp $ +# $FreeBSD$ # Set up a standard path PATH=/usr/bin:/bin @@ -12,7 +12,7 @@ fi # Remove the plugin # Plugin location variables -MOZILLAPLUGINDIR=/usr/X11R6/lib/mozilla/plugins +BROWSERPLUGINDIR=%%X11BASE%%/lib/browser_plugins if [ `echo "$1" | grep jdk` ]; then DIABLOPLUGINDIR=${PKG_PREFIX}/diablo-jdk1.3.1/jre/plugin/i386/ns600 else @@ -26,10 +26,10 @@ if [ ! -e "${DIABLOPLUGINDIR}/${PLUGIN}" ]; then fi # See if the browser plugin is a link to the package plugin and remove it if so. -if [ -e "${MOZILLAPLUGINDIR}/${PLUGIN}" -a \ - -L "${MOZILLAPLUGINDIR}/${PLUGIN}" -a \ - x`ls -l "${MOZILLAPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${DIABLOPLUGINDIR}/${PLUGIN}" ]; then - rm -f "${MOZILLAPLUGINDIR}/${PLUGIN}" +if [ -e "${BROWSERPLUGINDIR}/${PLUGIN}" -a \ + -L "${BROWSERPLUGINDIR}/${PLUGIN}" -a \ + x`ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${DIABLOPLUGINDIR}/${PLUGIN}" ]; then + rm -f "${BROWSERPLUGINDIR}/${PLUGIN}" fi exit 0 diff --git a/java/diablo-jre13/pkg-install b/java/diablo-jre13/files/pkg-install.in index 51e7097a2c4b..e417476e5054 100644 --- a/java/diablo-jre13/pkg-install +++ b/java/diablo-jre13/files/pkg-install.in @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/java/diablo-jre13/Attic/pkg-install,v 1.2 2004-03-17 16:44:11 glewis Exp $ +# $FreeBSD$ # Set up a standard path PATH=/usr/bin:/bin @@ -12,7 +12,7 @@ fi # Attempt to install a link for the browser plugin during post-install if [ "$2" = "POST-INSTALL" ]; then # Plugin location variables - MOZILLAPLUGINDIR=/usr/X11R6/lib/mozilla/plugins + BROWSERPLUGINDIR=%%X11BASE%%/lib/browser_plugins if [ `echo "$1" | grep jdk` ]; then DIABLOPLUGINDIR=${PKG_PREFIX}/diablo-jdk1.3.1/jre/plugin/i386/ns600 else @@ -26,25 +26,25 @@ if [ "$2" = "POST-INSTALL" ]; then fi # Check if the plugin directory exists. - if [ ! -d "${MOZILLAPLUGINDIR}" ]; then + if [ ! -d "${BROWSERPLUGINDIR}" ]; then exit 0 fi # Check if the browser plugin currently exists - if [ ! -e "${MOZILLAPLUGINDIR}/${PLUGIN}" ]; then + if [ ! -e "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then # Create symbolic link ln -sf "${DIABLOPLUGINDIR}/${PLUGIN}" \ - "${MOZILLAPLUGINDIR}/${PLUGIN}" + "${BROWSERPLUGINDIR}/${PLUGIN}" exit 0 fi # If the browser plugin exists and is a symlink, but the link # doesn't exist, then overwrite with the diablo plugin. - if [ -L "${MOZILLAPLUGINDIR}/${PLUGIN}" ]; then + if [ -L "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then # Check if the linked to file exists. - if [ ! -e `ls -l "${MOZILLAPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` ]; then + if [ ! -e `ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` ]; then ln -sf "${DIABLOPLUGINDIR}/${PLUGIN}" \ - "${MOZILLAPLUGINDIR}/${PLUGIN}" + "${BROWSERPLUGINDIR}/${PLUGIN}" exit 0 fi fi @@ -58,7 +58,7 @@ if [ "$2" = "POST-INSTALL" ]; then case $ANSWER in [yY]|[yY][eE][sS]) ln -sf "${DIABLOPLUGINDIR}/${PLUGIN}" \ - "${MOZILLAPLUGINDIR}/${PLUGIN}" + "${BROWSERPLUGINDIR}/${PLUGIN}" ;; *) ;; @@ -74,7 +74,7 @@ fi more << EOF_LICENSE FREEBSD FOUNDATION -Diablo Latte Version 1.3.1-0 ("Software") +Diablo Caffe Version 1.3.1-0 ("Software") END USER LICENSE AGREEMENT |