Installing a shell script

Steven Kreuzer skreuzer at exit2shell.com
Thu Mar 20 11:50:41 PDT 2008


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?

Thanks

--
Steven Kreuzer
http://www.exit2shell.com/~skreuzer


More information about the freebsd-ports mailing list