From owner-freebsd-ports@FreeBSD.ORG Thu Feb 5 19:05:23 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59418106564A for ; Thu, 5 Feb 2009 19:05:23 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.120]) by mx1.freebsd.org (Postfix) with ESMTP id 234BF8FC13 for ; Thu, 5 Feb 2009 19:05:22 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from irsec61278 ([129.110.241.3]) by cdptpa-smta02.mail.rr.com with ESMTP id <20090205172057.ZSIG19940.cdptpa-smta02.mail.rr.com@irsec61278>; Thu, 5 Feb 2009 17:20:57 +0000 From: "Paul Schmehl" To: "'Florent Thoumie'" References: <81F17B20B78F9C5531571788@10.40.128.112> In-Reply-To: Date: Thu, 5 Feb 2009 11:20:56 -0600 Message-ID: <000001c987b6$1b83cd30$528b6790$@rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcmGrdImfXrDl8a1T+eENord55MbVQAK1D5A Content-Language: en-us Cc: freebsd-ports@freebsd.org Subject: RE: Question about WRKSRC X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 19:05:23 -0000 -----Original Message----- From: owner-freebsd-ports@freebsd.org [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Florent Thoumie Sent: Wednesday, February 04, 2009 3:49 AM To: Schmehl, Paul L Cc: freebsd-ports@freebsd.org Subject: Re: Question about WRKSRC On Wed, Feb 4, 2009 at 4:42 AM, Paul Schmehl wrote: > I maintain the sguil ports; security/sguil-server, security/sguil-sensor and > security/sguil-agent. It came to my attention today that the pkg-install > script that I've written for the security/sguil-server port fails during > package building. (The script works fine when compiling from source.) > > The problem appears to be related to the location of WRCSRC, which appears > to be different than it is when building from source. Am I correct about > that? Is WRCSRC different when building packages? If so, is there a way to > differentiate programmatically between a port being built from source and > one being built from a package? There's no WRKSRC directory when a package is installed. I've had a look at sguil-server and you have two options. The first one is to install your sql script somewhere under ${DATADIR} then read it from there in your pkg-install script. The second, better in my opinion, is to move most of your POST-INSTALL target into a shell script of its own that you'll install in ${DATADIR} (note that it still requires to install that sql file as well). Quick look shows that your port is interactive, and not marked as such in Makefile. If you choose to go with solution #1, then you'll have to set IS_INTERACTIVE=yes (unless I'm wrong of course). I assume, if I go with option 2, that the script would have to be run manually by the individual installing the port? IOW, it wouldn't launch automagically at the end of the install? -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"