Gilles Detillieux (firstname.lastname@example.org)
Fri, 29 Jan 1999 14:42:44 -0600 (CST)
According to Ric Klaren:
> Here's a patch against htdig-3.1.0b4. It adds a the possibility to fake
> the install into another directory.
> Nice for building rpm packages and the likes.
Neat idea. It seems, though, that you should also change the call to
mkinstalldirs in Makefile.in, as well as all the lines that install
stuff in COMMON_DIR and SEARCH_DIR, to use INSTALL_ROOT there too.
For the RPMs I put together, I used a different approach, which I
borrowed from Mihai Ibanescu, who put together an RPM for ht://Dig
3.0.8b2. This involve patching CONFIG.in to use all the directories
I want, and prefixing them with $(ROOT). Then, in the spec file,
I can configure things like so:
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
--bindir=/usr/sbin --libexec=/usr/lib --libdir=/usr/lib \
and install (after making the directories I want), like so:
make ROOT=$RPM_BUILD_ROOT install
The only problem is that after this, the rundig script and htdig.conf
are installed with the wrong directory names inside them. They contain
the BuildRoot directory names in the various directory names they use.
I just replace these two files with the correct ones, which are included
as source files in the RPMs, but I could just as easily use sed to
strip out the BuildRoot directory names. I replace them because I end
up configuring them a little differently anyway.
Your approach would make things a little bit cleaner, though I'd still
end up patching CONFIG.in to get FSSTND compliant installation directories
If you want to see how I've set up my rpms, you can see them, and the
individual spec and source files, on my web site at:
-- Gilles R. Detillieux E-mail: <email@example.com> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 ------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to firstname.lastname@example.org containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Thu Feb 04 1999 - 22:24:21 PST