Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 14:58:29 -0400
From:      Wesley Shields <wxs@FreeBSD.org>
To:        Steven Kreuzer <skreuzer@exit2shell.com>
Cc:        ports@freebsd.org
Subject:   Re: Installing a shell script
Message-ID:  <20080320185829.GA748@atarininja.org>
In-Reply-To: <20080320185145.GA40655@scruffy.exit2shell.com>
References:  <20080320185145.GA40655@scruffy.exit2shell.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080320185829.GA748>