Date: Sat, 22 Jun 2002 18:32:39 -0500 From: "Jon Noack" <noackjr@compgeek.com> To: =?us-ascii?Q?Daniel_Jesus_Valencia_Sanchez?= <valencia@cicese.mx> Cc: <freebsd-questions@freebsd.org> Subject: RE: Custom dirs for ports Message-ID: <NFBBIJDHKLKEJHKFMLBHGELOCBAA.noackjr@compgeek.com> In-Reply-To: <3D14D859.9030402@cicese.mx>
next in thread | previous in thread | raw e-mail | index | archive | help
> how can I arrange to make a port toinstall in a directory I want?? for
> example, to install jdk into /usr/local/java/jdk-1.3.x or whatever?
You can change the Makefile -- the patch below should change the directory
to /usr/local/java/jdk1.3.1 for the "java/linux-sun-jdk13" port. The others
were more complicated so I just did this one ;-). The second changed line I
actually submitted back to the maintainer as that line doesn't respect
PKGNAMEPREFIX.
NOTE: I have not tested this whatsoever. It may destroy the universe. Who
knows...
Jon
===================================================================
--- /usr/ports/java/linux-sun-jdk13/Makefile.orig Sat Jun 22 18:23:09
2002
+++ /usr/ports/java/linux-sun-jdk13/Makefile Sat Jun 22 18:26:30 2002
@@ -9,7 +9,7 @@
PORTVERSION= ${JDK_VERSION}.${JDK_REVISION}
CATEGORIES= java devel
MASTER_SITES= #
-PKGNAMEPREFIX= linux-
+PKGNAMEPREFIX= java/
DISTNAME= j2sdk-${JDK_VERSION:S/./_/g}_${JDK_REVISION}-linux-${ARCH}
EXTRACT_SUFX= .bin
@@ -70,6 +70,6 @@
do-install:
@${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}
@${TAR} -C ${WRKSRC} -cf- . | ${TAR} -C
${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} --unlink -xpf-
- @${LOCALBASE}/bin/registervm
"${PREFIX}/linux-jdk${JDK_VERSION}/bin/java # Linux-JDK${JDK_VERSION}"
+ @${LOCALBASE}/bin/registervm
"${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}/bin/java #
Linux-JDK${JDK_VERSION}"
.include <bsd.port.post.mk>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBIJDHKLKEJHKFMLBHGELOCBAA.noackjr>
