From owner-freebsd-ports@FreeBSD.ORG Thu Mar 20 18:58:07 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECDDD106566B for ; Thu, 20 Mar 2008 18:58:07 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id CFE9D8FC29 for ; Thu, 20 Mar 2008 18:58:07 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 771C75C18; Thu, 20 Mar 2008 14:58:29 -0400 (EDT) Date: Thu, 20 Mar 2008 14:58:29 -0400 From: Wesley Shields To: Steven Kreuzer Message-ID: <20080320185829.GA748@atarininja.org> References: <20080320185145.GA40655@scruffy.exit2shell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080320185145.GA40655@scruffy.exit2shell.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: ports@freebsd.org Subject: Re: Installing a shell script 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, 20 Mar 2008 18:58:08 -0000 On Thu, Mar 20, 2008 at 02:51:45PM -0400, Steven Kreuzer wrote: > Greetings- > > I am in the process of updating a port to the latest version (dns/dnsperf) > and I ran into an issue I was able to work around but I want to see if > there is a nicer way to do it. > > One of the differences between the version in ports and the current version > is the addition of a shell script called resperf-report. If I simply use stock > install method, I end up with the following error: > > strip: /usr/local/bin/resperf-report: File format not recognized > install: wait: No such file or directory > *** Error code 70 > > So, to work around this what I ended up doing is basically installing the > binaries and man pages by hand: > > -PLIST_FILES= bin/dnsperf bin/resperf > +PLIST_FILES= bin/dnsperf bin/resperf bin/resperf-report > MAN1= dnsperf.1 resperf.1 > > +do-install: > + ${INSTALL} ${WRKSRC}/dnsperf ${PREFIX}/bin > + ${INSTALL} ${WRKSRC}/resperf ${PREFIX}/bin > + ${INSTALL_SCRIPT} ${WRKSRC}/resperf-report ${PREFIX}/bin > +.for MAN in ${MAN1} > + ${INSTALL_MAN} ${WRKSRC}/${MAN} ${PREFIX}/man/man1 > +.endfor > + > .include > > Is there a better way to do this? Can I someone > set a flag to tell the stock do-install to not strip the resperf-report > when doing an install? Does setting STRIP to an empty string work? Acorrding to bsd.port.mk it should. -- WXS