Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 14:51:45 -0400
From:      Steven Kreuzer <skreuzer@exit2shell.com>
To:        ports@freebsd.org
Subject:   Installing a shell script
Message-ID:  <20080320185145.GA40655@scruffy.exit2shell.com>

next in thread | raw e-mail | index | archive | help
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



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