Add dialog(1) technology, cribbed from the ghostscript-gnu and

mod_php4 ports.
This commit is contained in:
Trevor Johnson 2002-01-26 11:53:00 +00:00
parent 4da9d97a78
commit 91176d0813
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53783
4 changed files with 144 additions and 36 deletions

View File

@ -42,21 +42,6 @@ MASTER_SITES= ftp://ftp.netscape.com/pub/netscape6/english/${PORTVERSION}/unix/l
ftp://sunsite.sut.ac.jp/pub/archives/WWW/netscape/netscape6/english/${PORTVERSION}/unix/linux22/xpi/ \
ftp://ftp.mirror.ac.uk/sites/ftp.netscape.com/pub/netscape6/english/${PORTVERSION}/unix/linux22/xpi/ \
ftp://ftp.ntua.gr/pub/www/Netscape/netscape6/english/${PORTVERSION}/unix/linux22/xpi/
DISTFILES= browser.xpi \
deflenus.xpi \
langenus.xpi \
flash.xpi \
jre.xpi \
langenus.xpi \
mail.xpi \
psm.xpi \
regca.xpi \
reges.xpi \
reggb.xpi \
regus.xpi \
spellchecker.xpi \
talkback.xpi \
xpcom.xpi
DIST_SUBDIR= netscape6/english/${PORTVERSION}
PATCH_SITES= ${MASTER_SITE_LOCAL}
@ -83,12 +68,19 @@ INSTALL_DIR= ${PREFIX}/lib/linux-netscape6
PLIST= ${WRKDIR}/pkg-plist
STARTUP_CMD= netscape6
.include <bsd.port.pre.mk>
pre-everything::
${MKDIR} ${WRKSRC}/bin/plugins/java2 ${WRKSRC}/bin/chrome \
${WRKSRC}/plugins
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
DISTFILES!=${CAT} ${.CURDIR}/work/${WRKSRC}/components.conf; ${TRUE}
do-extract:
${MKDIR} ${WRKSRC}
.for i in ${DISTFILES}
unzip -qo ${DISTDIR}/${DIST_SUBDIR}/${i} -d ${WRKSRC}
.endfor
${MV} ${WRKSRC}/jre-image-i386 ${WRKSRC}/bin/plugins/java2
- ${MV} ${WRKSRC}/jre-image-i386 ${WRKSRC}/bin/plugins/java2
cd ${WRKSRC}/bin/plugins && ${LN} -s java2/plugin/i386/ns600/libjavaplugin_oji.so;
do-patch:
@ -125,4 +117,4 @@ do-install:
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

62
www/linux-netscape6/scripts/configure vendored Normal file
View File

@ -0,0 +1,62 @@
#!/bin/sh
#
# $FreeBSD$
echo ${WRKSRC}/components.conf
if [ -f ${WRKSRC}/components.conf ]; then
exit
fi
tempfile=`/usr/bin/mktemp -t checklist`
if [ "${BATCH}" ]; then
if [ "${NETSCAPE6_OPTIONS}" ]; then
set ${NETSCAPE6_OPTIONS}
else
set \"zlib\" \"MySQL\"
fi
else
/usr/bin/dialog --title "Netscape 6 component selection" --clear \
--checklist "\n\
Choose components of Netscape 6 to download and install. \n\
Press the space bar to toggle selections." -1 -1 16 \
"browser" "browser (6576 kB)" ON \
"deflenus" "American English profile defaults (26 kB)" ON \
"flash" "Flash plugin (576 kB)" ON \
"jre" "Java plugin (13808 kB)" ON \
"langenus" "American English language pack (608 kB)" ON \
"mail" "e-mail and news (1824 kB)" ON \
"psm" "Personal Security Manager (592 kB)" ON \
"regca" "regional settings for Canada (56 kB)" ON \
"reges" "regional settings for Latin America (54 kB)" ON \
"reggb" "regional settings for the UK (58 kB)" ON \
"regus" "regional settings for the USA (56 kB)" ON \
"spellchecker" "spell-checker (544 kB)" ON \
"talkback" "talkback (832 kB)" ON \
"xpcom" "xpcom (720 kB)" ON \
2> /tmp/checklist.tmp.$$
retval=$?
choice=`cat /tmp/checklist.tmp.$$`
rm -f /tmp/checklist.tmp.$$
case $retval in
0) if [ -z "$choice" ]; then
echo "Nothing selected"
exit 1;
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
echo "$choice" \
| sed -e "s/\"//g" \
| sed -e "s/ /.xpi /g" \
| sed -e "s/$/.xpi/g" \
| perl -pi -e "s/ /\n/g" \
> ${WRKSRC}/components.conf
fi

View File

@ -42,21 +42,6 @@ MASTER_SITES= ftp://ftp.netscape.com/pub/netscape6/english/${PORTVERSION}/unix/l
ftp://sunsite.sut.ac.jp/pub/archives/WWW/netscape/netscape6/english/${PORTVERSION}/unix/linux22/xpi/ \
ftp://ftp.mirror.ac.uk/sites/ftp.netscape.com/pub/netscape6/english/${PORTVERSION}/unix/linux22/xpi/ \
ftp://ftp.ntua.gr/pub/www/Netscape/netscape6/english/${PORTVERSION}/unix/linux22/xpi/
DISTFILES= browser.xpi \
deflenus.xpi \
langenus.xpi \
flash.xpi \
jre.xpi \
langenus.xpi \
mail.xpi \
psm.xpi \
regca.xpi \
reges.xpi \
reggb.xpi \
regus.xpi \
spellchecker.xpi \
talkback.xpi \
xpcom.xpi
DIST_SUBDIR= netscape6/english/${PORTVERSION}
PATCH_SITES= ${MASTER_SITE_LOCAL}
@ -83,12 +68,19 @@ INSTALL_DIR= ${PREFIX}/lib/linux-netscape6
PLIST= ${WRKDIR}/pkg-plist
STARTUP_CMD= netscape6
.include <bsd.port.pre.mk>
pre-everything::
${MKDIR} ${WRKSRC}/bin/plugins/java2 ${WRKSRC}/bin/chrome \
${WRKSRC}/plugins
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
DISTFILES!=${CAT} ${.CURDIR}/work/${WRKSRC}/components.conf; ${TRUE}
do-extract:
${MKDIR} ${WRKSRC}
.for i in ${DISTFILES}
unzip -qo ${DISTDIR}/${DIST_SUBDIR}/${i} -d ${WRKSRC}
.endfor
${MV} ${WRKSRC}/jre-image-i386 ${WRKSRC}/bin/plugins/java2
- ${MV} ${WRKSRC}/jre-image-i386 ${WRKSRC}/bin/plugins/java2
cd ${WRKSRC}/bin/plugins && ${LN} -s java2/plugin/i386/ns600/libjavaplugin_oji.so;
do-patch:
@ -125,4 +117,4 @@ do-install:
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

62
www/netscape7/scripts/configure vendored Normal file
View File

@ -0,0 +1,62 @@
#!/bin/sh
#
# $FreeBSD$
echo ${WRKSRC}/components.conf
if [ -f ${WRKSRC}/components.conf ]; then
exit
fi
tempfile=`/usr/bin/mktemp -t checklist`
if [ "${BATCH}" ]; then
if [ "${NETSCAPE6_OPTIONS}" ]; then
set ${NETSCAPE6_OPTIONS}
else
set \"zlib\" \"MySQL\"
fi
else
/usr/bin/dialog --title "Netscape 6 component selection" --clear \
--checklist "\n\
Choose components of Netscape 6 to download and install. \n\
Press the space bar to toggle selections." -1 -1 16 \
"browser" "browser (6576 kB)" ON \
"deflenus" "American English profile defaults (26 kB)" ON \
"flash" "Flash plugin (576 kB)" ON \
"jre" "Java plugin (13808 kB)" ON \
"langenus" "American English language pack (608 kB)" ON \
"mail" "e-mail and news (1824 kB)" ON \
"psm" "Personal Security Manager (592 kB)" ON \
"regca" "regional settings for Canada (56 kB)" ON \
"reges" "regional settings for Latin America (54 kB)" ON \
"reggb" "regional settings for the UK (58 kB)" ON \
"regus" "regional settings for the USA (56 kB)" ON \
"spellchecker" "spell-checker (544 kB)" ON \
"talkback" "talkback (832 kB)" ON \
"xpcom" "xpcom (720 kB)" ON \
2> /tmp/checklist.tmp.$$
retval=$?
choice=`cat /tmp/checklist.tmp.$$`
rm -f /tmp/checklist.tmp.$$
case $retval in
0) if [ -z "$choice" ]; then
echo "Nothing selected"
exit 1;
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
echo "$choice" \
| sed -e "s/\"//g" \
| sed -e "s/ /.xpi /g" \
| sed -e "s/$/.xpi/g" \
| perl -pi -e "s/ /\n/g" \
> ${WRKSRC}/components.conf
fi