1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix the plugin install. Look if there is a linux netscape installed

and use it's plugin dir to install.

PR:		ports/33318
This commit is contained in:
Martin Blapp 2002-01-22 00:43:03 +00:00
parent 0f601033c4
commit cb151ad321
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53497
8 changed files with 224 additions and 32 deletions

View File

@ -26,6 +26,14 @@ NO_BUILD= Yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
NSCP= /usr/local/libexec/netscape \
/usr/local/libexec/netscape-linux \
/usr/local/netscape \
/usr/local/netscape-linux \
/usr/local/lib/netscape \
/usr/local/lib/netscape-linux \
${MOZILLA_HOME}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -43,14 +51,18 @@ do-install:
${ECHO} "-----------------------------------------------------------" ; \
${FALSE} ; \
fi
@if (test -d "/usr/lib/netscape"\
|| test -d "/usr/local/netscape"\
|| test -d "/usr/local/lib/netscape") ; \
then \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\n3" > ${WRKSRC}/response ; \
else \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\nj\n3" > ${WRKSRC}/response ; \
fi
@${ECHO} -e "1\n${CDIR}\nj\nj\nj\nj\n3" > ${WRKSRC}/response ;
@for dir in ${NSCP}; do \
if [ -e $${dir}/plugins/libnullplugin.so ]; then \
BIN=`${FILE} $${dir}/plugins/libnullplugin.so | ${AWK} '{print $$11}'` ; \
case $${BIN} in \
\(SYSV\),) \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\n3" > ${WRKSRC}/response ; \
esac \
fi \
done
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \

View File

@ -0,0 +1,36 @@
--- linuxx86/hinst.orig Wed Sep 5 16:47:26 2001
+++ linuxx86/hinst Tue Jan 22 00:15:59 2002
@@ -1965,10 +1965,31 @@
#
###############################################################################
+check_for_ns() {
+ BIN=`/usr/bin/file $1/plugins/libnullplugin.so | /usr/bin/awk '{print $11}'`
+ case ${BIN} in
+ \(SYSV\),)
+ NETSCAPE_DIR="$1"
+ PLUGIN_PATH="$s/plugins"
+ esac
+}
+
+NSCP="/usr/local/libexec/netscape \
+ /usr/local/libexec/netscape-linux \
+ /usr/local/netscape \
+ /usr/local/netscape-linux \
+ /usr/local/lib/netscape \
+ /usr/local/lib/netscape-linux \
+ $MOZILLA_HOME"
+
+for dir in ${NSCP}; do
+ if [ -e $dir/plugins/libnullplugin.so ]; then
+ check_for_ns $dir;
+ fi
+done
+
INST_DIR=$ICAInstDir
TMP_NAME=/tmp/ICAnetscape.$$
-NETSCAPE_DIR="/usr/local/lib/netscape"
-PLUGIN_PATH="/usr/local/netscape/plugins"
PLUGIN_NAME=npica.so
PLUGIN_CLASS=ICAClObj.class

View File

@ -26,6 +26,14 @@ NO_BUILD= Yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
NSCP= /usr/local/libexec/netscape \
/usr/local/libexec/netscape-linux \
/usr/local/netscape \
/usr/local/netscape-linux \
/usr/local/lib/netscape \
/usr/local/lib/netscape-linux \
${MOZILLA_HOME}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -43,14 +51,18 @@ do-install:
${ECHO} "-----------------------------------------------------------" ; \
${FALSE} ; \
fi
@if (test -d "/usr/lib/netscape"\
|| test -d "/usr/local/netscape"\
|| test -d "/usr/local/lib/netscape") ; \
then \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\n3" > ${WRKSRC}/response ; \
else \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\nj\n3" > ${WRKSRC}/response ; \
fi
@${ECHO} -e "1\n${CDIR}\nj\nj\nj\nj\n3" > ${WRKSRC}/response ;
@for dir in ${NSCP}; do \
if [ -e $${dir}/plugins/libnullplugin.so ]; then \
BIN=`${FILE} $${dir}/plugins/libnullplugin.so | ${AWK} '{print $$11}'` ; \
case $${BIN} in \
\(SYSV\),) \
${ECHO} -e "1\n${CDIR}\nj\nj\nj\n3" > ${WRKSRC}/response ; \
esac \
fi \
done
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \

View File

@ -0,0 +1,36 @@
--- linuxx86/hinst.orig Wed Sep 5 16:47:26 2001
+++ linuxx86/hinst Tue Jan 22 00:15:59 2002
@@ -1965,10 +1965,31 @@
#
###############################################################################
+check_for_ns() {
+ BIN=`/usr/bin/file $1/plugins/libnullplugin.so | /usr/bin/awk '{print $11}'`
+ case ${BIN} in
+ \(SYSV\),)
+ NETSCAPE_DIR="$1"
+ PLUGIN_PATH="$s/plugins"
+ esac
+}
+
+NSCP="/usr/local/libexec/netscape \
+ /usr/local/libexec/netscape-linux \
+ /usr/local/netscape \
+ /usr/local/netscape-linux \
+ /usr/local/lib/netscape \
+ /usr/local/lib/netscape-linux \
+ $MOZILLA_HOME"
+
+for dir in ${NSCP}; do
+ if [ -e $dir/plugins/libnullplugin.so ]; then
+ check_for_ns $dir;
+ fi
+done
+
INST_DIR=$ICAInstDir
TMP_NAME=/tmp/ICAnetscape.$$
-NETSCAPE_DIR="/usr/local/lib/netscape"
-PLUGIN_PATH="/usr/local/netscape/plugins"
PLUGIN_NAME=npica.so
PLUGIN_CLASS=ICAClObj.class

View File

@ -26,6 +26,14 @@ NO_BUILD= yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
NSCP= /usr/local/libexec/netscape \
/usr/local/libexec/netscape-linux \
/usr/local/netscape \
/usr/local/netscape-linux \
/usr/local/lib/netscape \
/usr/local/lib/netscape-linux \
${MOZILLA_HOME}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -43,14 +51,18 @@ do-install:
${ECHO} "-----------------------------------------------------------" ; \
${FALSE} ; \
fi
@if (test -d "/usr/lib/netscape"\
|| test -d "/usr/local/netscape"\
|| test -d "/usr/local/lib/netscape") ; \
then \
${ECHO} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
else \
${ECHO} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ; \
fi
@${ECHO} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ;
@for dir in ${NSCP}; do \
if [ -e $${dir}/plugins/libnullplugin.so ]; then \
BIN=`${FILE} $${dir}/plugins/libnullplugin.so | ${AWK} '{print $$11}'` ; \
case $${BIN} in \
\(SYSV\),) \
${ECHO} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
esac \
fi \
done
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \

View File

@ -0,0 +1,36 @@
--- linuxx86/hinst.orig Wed Sep 5 16:47:26 2001
+++ linuxx86/hinst Tue Jan 22 00:15:59 2002
@@ -1965,10 +1965,31 @@
#
###############################################################################
+check_for_ns() {
+ BIN=`/usr/bin/file $1/plugins/libnullplugin.so | /usr/bin/awk '{print $11}'`
+ case ${BIN} in
+ \(SYSV\),)
+ NETSCAPE_DIR="$1"
+ PLUGIN_PATH="$s/plugins"
+ esac
+}
+
+NSCP="/usr/local/libexec/netscape \
+ /usr/local/libexec/netscape-linux \
+ /usr/local/netscape \
+ /usr/local/netscape-linux \
+ /usr/local/lib/netscape \
+ /usr/local/lib/netscape-linux \
+ $MOZILLA_HOME"
+
+for dir in ${NSCP}; do
+ if [ -e $dir/plugins/libnullplugin.so ]; then
+ check_for_ns $dir;
+ fi
+done
+
INST_DIR=$ICAInstDir
TMP_NAME=/tmp/ICAnetscape.$$
-NETSCAPE_DIR="/usr/local/lib/netscape"
-PLUGIN_PATH="/usr/local/netscape/plugins"
PLUGIN_NAME=npica.so
PLUGIN_CLASS=ICAClObj.class

View File

@ -26,6 +26,14 @@ NO_BUILD= yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
NSCP= /usr/local/libexec/netscape \
/usr/local/libexec/netscape-linux \
/usr/local/netscape \
/usr/local/netscape-linux \
/usr/local/lib/netscape \
/usr/local/lib/netscape-linux \
${MOZILLA_HOME}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -43,14 +51,18 @@ do-install:
${ECHO} "-----------------------------------------------------------" ; \
${FALSE} ; \
fi
@if (test -d "/usr/lib/netscape"\
|| test -d "/usr/local/netscape"\
|| test -d "/usr/local/lib/netscape") ; \
then \
${ECHO} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
else \
${ECHO} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ; \
fi
@${ECHO} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ;
@for dir in ${NSCP}; do \
if [ -e $${dir}/plugins/libnullplugin.so ]; then \
BIN=`${FILE} $${dir}/plugins/libnullplugin.so | ${AWK} '{print $$11}'` ; \
case $${BIN} in \
\(SYSV\),) \
${ECHO} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
esac \
fi \
done
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
> ${WRKSRC}/wfcmgr.x
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \

View File

@ -0,0 +1,36 @@
--- linuxx86/hinst.orig Wed Sep 5 16:47:26 2001
+++ linuxx86/hinst Tue Jan 22 00:15:59 2002
@@ -1965,10 +1965,31 @@
#
###############################################################################
+check_for_ns() {
+ BIN=`/usr/bin/file $1/plugins/libnullplugin.so | /usr/bin/awk '{print $11}'`
+ case ${BIN} in
+ \(SYSV\),)
+ NETSCAPE_DIR="$1"
+ PLUGIN_PATH="$s/plugins"
+ esac
+}
+
+NSCP="/usr/local/libexec/netscape \
+ /usr/local/libexec/netscape-linux \
+ /usr/local/netscape \
+ /usr/local/netscape-linux \
+ /usr/local/lib/netscape \
+ /usr/local/lib/netscape-linux \
+ $MOZILLA_HOME"
+
+for dir in ${NSCP}; do
+ if [ -e $dir/plugins/libnullplugin.so ]; then
+ check_for_ns $dir;
+ fi
+done
+
INST_DIR=$ICAInstDir
TMP_NAME=/tmp/ICAnetscape.$$
-NETSCAPE_DIR="/usr/local/lib/netscape"
-PLUGIN_PATH="/usr/local/netscape/plugins"
PLUGIN_NAME=npica.so
PLUGIN_CLASS=ICAClObj.class