From owner-freebsd-ports Fri Apr 28 08:57:39 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA16937 for ports-outgoing; Fri, 28 Apr 1995 08:57:39 -0700 Received: from time.cdrom.com (time.cdrom.com [192.216.223.46]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id IAA16931 for ; Fri, 28 Apr 1995 08:57:38 -0700 Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.11/8.6.9) with SMTP id IAA05853 for ; Fri, 28 Apr 1995 08:57:38 -0700 X-Authentication-Warning: time.cdrom.com: Host localhost didn't use HELO protocol To: ports@freefall.cdrom.com Subject: ${PREFIX}, PLIST files and YOU.. Date: Fri, 28 Apr 1995 08:57:38 -0700 Message-ID: <5851.799084658@time.cdrom.com> From: "Jordan K. Hubbard" Sender: ports-owner@FreeBSD.org Precedence: bulk It's come to my attention that people have been doing one of several things in their packing lists: 1. @cwd /usr/local 2. @cwd ${PREFIX} Both are wrong. #1 is wrong for the obvious reason - it's hardcoded to /usr/local, though the user _can_ override it with the -p flag at pkg_add time (but it's still wrong). #2 is wrong because I don't do environment variable expansion inside of PLIST files and never have.. :-) In truth, neither one is even necessary. pkg_create gets passed the PREFIX and _automatically_ stuffs the equivalent of an `@cwd ${PREFIX}' into the beginning of the packing list. So just skip that first @cwd - it's really not necessary! If you can remember doing this in a port, it might not be a bad time to remove it while you still remember this message.. :) Thanks! Jordan