From owner-freebsd-questions Sat Jun 22 16:32:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from patriarch.dnsalias.org (adsl-65-69-1-221.dsl.hstntx.swbell.net [65.69.1.221]) by hub.freebsd.org (Postfix) with ESMTP id 311E137B403 for ; Sat, 22 Jun 2002 16:32:19 -0700 (PDT) Received: from compgeek ([127.0.0.1]) by patriarch.dnsalias.org with Microsoft SMTPSVC(5.0.2195.4905); Sat, 22 Jun 2002 18:32:39 -0500 Reply-To: From: "Jon Noack" To: =?us-ascii?Q?Daniel_Jesus_Valencia_Sanchez?= Cc: Subject: RE: Custom dirs for ports Date: Sat, 22 Jun 2002 18:32:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <3D14D859.9030402@cicese.mx> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-OriginalArrivalTime: 22 Jun 2002 23:32:39.0184 (UTC) FILETIME=[18DA9900:01C21A45] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message