From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 07:05:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6821016A41F for ; Fri, 9 Sep 2005 07:05:38 +0000 (GMT) (envelope-from jdsg84@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A29C43D48 for ; Fri, 9 Sep 2005 07:05:37 +0000 (GMT) (envelope-from jdsg84@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so3049463nzd for ; Fri, 09 Sep 2005 00:05:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ctxVQC3VDf7aHf60fGSPUstjRVlsfnNh8bWDMSz+IOUAgSNzQYjUl0jpvVahM4nkmSznTcjlLNZvQsvOBwmzPhLcVl4vFzMfv+kf6fmQ4CkBsNqYMBAs9btTBiIoQnLR3xF5aEUD1UViq5lq4lOSEpdetvFJOfUno/Y7Its+FGc= Received: by 10.36.2.9 with SMTP id 9mr38108nzb; Fri, 09 Sep 2005 00:05:37 -0700 (PDT) Received: by 10.37.15.55 with HTTP; Fri, 9 Sep 2005 00:05:37 -0700 (PDT) Message-ID: <93fbb9fb05090900053b98010c@mail.gmail.com> Date: Fri, 9 Sep 2005 08:05:37 +0100 From: James Goldsmith To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: pkg_create and srcdir X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jdsg84@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 07:05:38 -0000 Hi list :) This is a two part question, but they are vaguely related, so bear with me... Firstly, using pkg_create in a sh script in the following way works fine: pkg_create -v -s $SRCDIR -d $DESC -c $COMMENT -I $POST_INSTALL -p "$INSTALLDIR/$packagename" -f $PLIST -o "net/$packagename" $packagename where $SRCDIR is defined as SRCDIR=3D`pwd` and $INSTALLDIR is /usr/local However, if I remove the -s $SRCDIR parameter, it fails claiming tar "couldn't stat" my files. I was under the impression that if SRCDIR was not specified, it would use the current working directory instead (which is where my files to be packaged reside, and what I am defining anyway using pwd). Is this correct? Secondly, and along the same lines: When the above is run, in the +CONTENTS file inside the package there is an @SRCDIR line, containing the directory given in -s $SRCDIR. As far as my experimentation has gone, the presence of this line does not make any difference to whether the package installs successfully or not.=20 I would like to hide any build environment details from the customers this package is being sent to, and thus was wondering if it is possible to remove the @SRCDIR line, or rather never have it be written to +CONTENTS in the first place! Thanks,=20 James