summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2003-02-20 00:24:18 +0000
committerMartin Blapp <mbr@FreeBSD.org>2003-02-20 00:24:18 +0000
commita111ddc28316a4ce4922ce053ac716d2f6a38e7c (patch)
tree15587dbc8027474046e0316d4598e15df824aae3
parentUpdate to 0.80 pre3. More stability, more module support, and (diff)
Fix the insufficient installation instructions.
PR: 42978 Submitted by: grog (long time ago)
Notes
Notes: svn path=/head/; revision=75916
-rw-r--r--editors/staroffice52/Makefile57
-rw-r--r--editors/staroffice52/pkg-message8
2 files changed, 51 insertions, 14 deletions
diff --git a/editors/staroffice52/Makefile b/editors/staroffice52/Makefile
index a12d38ae90ed..2a55a0b32db4 100644
--- a/editors/staroffice52/Makefile
+++ b/editors/staroffice52/Makefile
@@ -53,32 +53,49 @@ LINPROCFS!= /sbin/mount | /usr/bin/grep ^linprocfs | ${AWK} '{print $1}'
PROCFS!= /sbin/mount | /usr/bin/grep ^procfs | ${AWK} '{print $1}'
pre-fetch:
-.if ${LINPROCFS} && ${PROCFS}
+.if ${PROCFS}
@${ECHO}
- @${ECHO} Check if procfs and linprocfs is running: YES
+ @${ECHO} Check if procfs is running: YES
.else
@${ECHO} -----------------------------------------------------------
+ @${ECHO} Check if procfs is running: NO
@${ECHO}
- @${ECHO} Staroffice setup needs a running procfs and linprocfs,
- @${ECHO} which may not be activated on your system. Please read the
- @${ECHO} procfs\(5\) and linprocfs\(5\) manpages and ensure the
- @${ECHO} the following lines are in /etc/fstab:
+ @${ECHO} Staroffice setup needs a running procfs file system.
+ @${ECHO} It seems that procfs is not mounted on your system. Please
+ @${ECHO} read the procfs\(5\) manpage and ensure the the following
+ @${ECHO} line is in /etc/fstab, and that the procfs file
+ @${ECHO} system is mounted:
@${ECHO}
- @${ECHO} linproc /compat/linux/proc linprocfs rw 0 0
@${ECHO} proc /proc procfs rw 0 0
@${ECHO}
@${ECHO} -----------------------------------------------------------
@${FALSE}
.endif
+.if ${LINPROCFS}
+ @${ECHO} Check if linprocfs is running: YES
+.else
+ @${ECHO} -----------------------------------------------------------
+ @${ECHO} Check if linprocfs is running: NO
+ @${ECHO}
+ @${ECHO} Staroffice setup needs a running procfs and linprocfs.
+ @${ECHO} It seems that linprocfs is not mounted on your system.
+ @${ECHO} Please read the linprocfs\(5\) manpage and ensure the
+ @${ECHO} the following line is in /etc/fstab, and that the
+ @${ECHO} linprocfs file system is mounted:
+ @${ECHO}
+ @${ECHO} linproc /compat/linux/proc linprocfs rw 0 0
+ @${ECHO}
+ @${ECHO} -----------------------------------------------------------
+ @${FALSE}
+.endif
.if ${OSVERSION} < 410000
@${ECHO}
@${ECHO} OS-VERSION ${OSVERSION}
@${ECHO}
@${ECHO} Staroffice depends on a scripting fix for
@${ECHO} /usr/src/sys/i386/linux/linux_sysvec.c
- @${ECHO} \(revision 1.55.2.1 or higher\)
@${ECHO}
- @${ECHO} Please upgrade to FreeBSD 4.1
+ @${ECHO} Please upgrade to FreeBSD 4.1 or later.
@${ECHO}
@${FALSE}
.endif
@@ -104,6 +121,19 @@ pre-fetch:
@${ECHO}
@${FALSE}
.endif
+.else
+.if exists(/cdrom/linux/office52/setup)
+ @${ECHO}
+ @${ECHO} It seems that you have a Sun StarOffice 5.2 CDROM
+ @${ECHO} mounted on ${CD_MOUNTPT}. If you wish to install from
+ @${ECHO} this CD-ROM, please run
+ @${ECHO}
+ @${ECHO} make -DWITH_CDROM
+ @${ECHO}
+ @${ECHO} Otherwise please unmount the CD-ROM.
+ @${ECHO}
+ @${FALSE}
+.endif
.endif
do-extract:
@@ -165,7 +195,7 @@ do-install:
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" TEMP=${TMPDIR} LD_LIBRARY_PATH=${LD_PATH} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net'
@if [ -f ${PREFIX}/office52/program/setup ]; then \
${ECHO} ; \
- ${ECHO} Ignore the error-message. StarOffice5.2 has been installed ; \
+ ${ECHO} Ignore the error message. StarOffice5.2 has been installed ; \
${ECHO} successfully on your system. ; \
${ECHO} ; \
else \
@@ -188,9 +218,16 @@ post-install:
@${SED} -e 's%DefaultDestPath = "${PREFIX}/office52%DefaultDestPath = "office52%' \
< ${INSTDB.INS}.orig > ${INSTDB.INS}
@${RM} ${INSTDB.INS}.orig
+ @${ECHO} StarOffice has been installed successfully. Prior to use,
+ @${ECHO} each user must change to this directory and run 'make install-user'.
install-user:
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" ${LINUXBASE}/bin/sh -c \
${PREFIX}/office52/program/setup
+ @${ECHO} StarOffice has been installed successfully. In order to use
+ @${ECHO} it, add the path ${HOME}/office52 to your PATH environment
+ @${ECHO} variable, and start the program with
+ @${ECHO}
+ @${ECHO} ' ' soffice \&
.include <bsd.port.post.mk>
diff --git a/editors/staroffice52/pkg-message b/editors/staroffice52/pkg-message
index 656a22469a3c..a7f27c6e1e2a 100644
--- a/editors/staroffice52/pkg-message
+++ b/editors/staroffice52/pkg-message
@@ -3,10 +3,10 @@ StarOffice 5.2 Personal Install How-To
Written by: Darren Wiebe <dkwiebe@hagenhomes.com>
and Martin Blapp <mb@imp.ch>
-You will very shortly have finished a network install of StarOffice 5.2.
-Once that is done exit X11 and run it again as the user that you usually use.
-Then run "make install-user" and do a standard workstation install.
-Change the install path to $HOME/office52. Then add $HOME/office52/ to your path.
+You will very shortly have finished a network install of StarOffice
+5.2. Next, each user must run "make install-user" in this directory
+and do a standard workstation install. Change the install path to
+$HOME/office52. Then add $HOME/office52/ to your path.
It will now be ready to use.