From owner-freebsd-ports@FreeBSD.ORG Mon May 14 17:47:07 2012 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 8D7C8106564A; Mon, 14 May 2012 17:47:07 +0000 (UTC) (envelope-from jhelfman@experts-exchange.com) Received: from mail.dw.redsrci.com (mail.pub.dw.redsrci.com [72.29.183.251]) by mx1.freebsd.org (Postfix) with ESMTP id 1DED98FC16; Mon, 14 May 2012 17:47:07 +0000 (UTC) Received: from mail.dw.redsrci.com (localhost [127.0.0.1]) by mail.dw.redsrci.com (Postfix) with ESMTP id 177536EDE89; Mon, 14 May 2012 10:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-e.com; h= user-agent:organization:in-reply-to:content-transfer-encoding :content-disposition:content-type:content-type:mime-version :references:message-id:subject:subject:from:from:date:date :received:received:received; s=ee; t=1337017626; x=1338832026; bh=k9pNDoQa5qfvaCqTV9hmB39x25NNPlxFIpRWPJvgp1M=; b=D1/oHAC90mvR CK7eugBB4Fw3U+fYmOeKZEDcyLjtLzn7x+FP4rcIiPYi6Zgn4P83ncNYpL502Qr1 UIB22U4DGPBj7KunDzkTlY1Av46hp91QVaL0J5OttK7PmQQJ2mI7gpbrd+rAdXAZ ExnO5kWwdkPZYwYUdXopoIpcK4AbYLo= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.dw.redsrci.com ([127.0.0.1]) by mail.dw.redsrci.com (mail.dw.redsrci.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0xqUhbI+juBj; Mon, 14 May 2012 10:47:06 -0700 (PDT) Received: from experts-exchange.com (unknown [192.168.103.120]) by mail.dw.redsrci.com (Postfix) with SMTP id E739A6EDE4D; Mon, 14 May 2012 10:47:06 -0700 (PDT) Received: (nullmailer pid 7287 invoked by uid 1001); Mon, 14 May 2012 17:45:54 -0000 Date: Mon, 14 May 2012 10:45:54 -0700 From: Jason Helfman To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= Message-ID: <20120514174553.GB5373@dormouse.experts-exchange.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 8.3-RELEASE amd64 Organization: Experts-Exchange, LLC. http://www.experts-exchange.com X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Chris Rees , freebsd-ports@freebsd.org Subject: Re: On file installation 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: Mon, 14 May 2012 17:47:07 -0000 On Mon, May 14, 2012 at 07:40:41PM +0200, Fernando Apesteguía thus spake: >On Mon, May 14, 2012 at 7:31 PM, Chris Rees wrote: >> On 14 May 2012 18:23, Fernando Apesteguía wrote: >>> Hi, >>> >>> I'm working on a port for an application written in Java and I'm >>> having some problems deciding how to install the application. >>> Previous to the installation, the WRKSRC directory contains some .jar >>> files and some directories along with some .txt files for >>> licenses, but also some .exe and .bat files _which I don't want to >>> install_. It is basically a package that contains both files for >>> windows and non-windows systems. >>> >>> I was thinking on using COPYTREE_SHARE to install everything and then >>> remove the non necessary files, but doesn't look like >>> an elegant solution. Also, I wouldn't like to explicitly specify every >>> one of the files I want to copy. Is there a way of using something >>> similar to bash's extglob so I can copy !(*.exe|*bat)? If not, how to proceed? >>> >>> I already looked at the existent ports to find something similar but >>> it seems hard to find. I also had a look at bsd.port.mk but >>> I couldn't find what I'm looking for. >> >> You can use find primaries with COPYTREE_SHARE such as; >> >> (cd ${WRKSRC}/wherever && ${COPYTREE_SHARE} \* >> ${JAVALIBDIR}/${PORTNAME}/wherever "-not -name \*.exe -and -not -name >> \*.bat" > >Thanks! I think that is what I was looking for :) > >I'll give it a try. > >> >> Chris Also, if it is trivial, I would suggest building it via source. Please though, don't install any .war files, as if an application server is involved in the expansion of the war file with this port, then the system will be dirty on de-install. -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5