Bug 23773

Summary: Fix $PATH for Staroffice5.2 user-installation (staroffice-5.2)
Product: Ports & Packages Reporter: mb <mb>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Makefile.diff.uu none

Description mb 2000-12-22 21:40:01 UTC
Wrong $PATH settings during user installation, invoked by

make install-user

Fix: --------------------------------------------------------------------------------

possible Commit message:
------------------------

Fix default $PATH settings for user-installation

--------------------------------------------------------------------------------

location of port:
-----------------

ports/editors/staroffice52

--------------------------------------------------------------------------------

[PATCH] normal
--------------

--------------------------------------------------------------------------------

[PATCH] uuencoded
-----------------



----------------------------------------------------------------------------------oGBiGabb5erDJqLr3a6cLr3wWps6TGkXtVd2lWeOZ2WTwHb5
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.orig	Fri Dec 22 22:21:42 2000
+++ Makefile	Fri Dec 22 22:21:34 2000
@@ -36,6 +36,7 @@
 WRKSRC=		${WRKDIR}/office52
 TMPDIR=		${WRKDIR}/tmp
 LD_PATH=	${TMPDIR}:${WRKSRC}:${LINUXBASE}/lib:${LINUXBASE}/usr/lib
+INSTDB.INS=	${PREFIX}/office52/program/instdb.ins
 
 .include <bsd.port.pre.mk>
 
@@ -121,6 +122,9 @@
 post-install:
 	@${PATCH} -s ${PREFIX}/office52/program/setup ${FILESDIR}/setup.patch
 	@${PATCH} -s ${PREFIX}/office52/program/soffice ${FILESDIR}/soffice.patch
+	@${CP} ${INSTDB.INS} ${INSTDB.INS}.orig
+	@${SED} -e 's%DefaultDestPath = "/usr/local/office52%DefaultDestPath = "office52%' \
+	    < ${INSTDB.INS}.orig > ${INSTDB.INS}
 
 install-user:
 	${PREFIX}/office52/program/setup
How-To-Repeat: 
During user installation, each time you get /usr/local/office52 as install path,
but this is not a good idea because you'd like a $PATH like $HOME/office52.

If you have to fix this each time you install it for a user it's just annoying.
Comment 1 alex freebsd_committer freebsd_triage 2000-12-24 14:19:19 UTC
State Changed
From-To: open->closed

Done