This was done circa February 2004 by MikePatterson.

go to capo
suw
cd /usr/source
looking at a few other packages (mutt, gcc-tools), I did:
mkdir httperf-0.8
cd httperf-0.8
mkdir RCS
created an ORIGIN file
scp'ed sources from smyth to capo and mv'ed them to /usr/source/httperf-0.8
untarred sources
left ownership of .tar.gz as-is, and chown -R'ed httperf-0.8 sources dir
 to match
rm -r'ed /software/httperf-0.8 (Ed's old stuff)
xh-mkpkg httperf-0.8
rm -r'ed /.software/arch/httperf-0.8
xh-mkpkg httperf-0.8
edited .admin files:
 Maintainer
 Synopsis
 Options
 
copied my patch file from smyth to capo:/usr/source/httperf-0.8/patch-httperf
and documented what it's for in README

copied xh-imakefile from /usr/source/mutt-1.2 and edited to taste

ran the patch against httperf-0.8, cleaned up the results somewhat,
ran autoconf, and tarred up the resulting dir to httperf-0.8_maptters.tgz.

-----

Jason says it looks ok, provided it only has bin and man things.
He suggests using xh-make (on capo) and xh-sdist (to another host, without
building) to make sure it works.  ie, xh-sdist to sun580, then go to
/usr/source/TEMP_CACHE on sun580 and do an xh-make install.

So:

capo# pwd
/fsys2/source/httperf-0.8
capo# xh-make
cd httperf-0.8 && ./configure --prefix=/software/httperf-0.8
sh: httperf-0.8: does not exist
*** Error code 1
make: Fatal error: Command failed for target `httperf-0.8_mpatters/Makefile'
capo# 

that was easy... :~(

ah, a typo in the xh-imake file, fixed.

so I did:
xh-sdist -h sun580 httperf-0.8

and I got a lot of guff.  But it looks like it worked, anyway.

ok, so now I have the source on sun580 in /usr/source/TEMP-CACHE.
Now what?  Jason said to xh-make install, but there's no imake files there.

Because I did that from within /usr/source/httperf-0.8.  I should have
done it from /usr/source.

I ran into other difficulties too, relating to the fact that I had tried to
rename some directories and stuff to differentiate between httperf and my
version of httperf.  Those didn't work.  So I renamed mine to httperf-0.8.

Lots of issues getting the xh-imake file just right.  :(

On Adrian's advice, I created i(on capo) a .xh-admin/Dist-except file to not
distribute the actual extracted source directory.

And now everything Just Works.
capo:/usr/source - xh-sdist -h sun580 httperf-0.8
sun580:/usr/source/TEMP-CACHE/httperf-0.8 - xh-make && xh-make install
sun580:xh-dist2 cscf.cs httperf
cscf.cs:xh-dist2 smyth.cs httperf

and it works.

-- MikePatterson - 19 Mar 2005

Topic revision: r3 - 2006-02-08 - IsaacMorland
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback