Installing a shell script

Wesley Shields wxs at
Thu Mar 20 11:58:08 PDT 2008

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 it

-- WXS

More information about the freebsd-ports mailing list