php4 via metaport

Matthew D. Fuller fullermd at over-yonder.net
Tue Dec 21 15:52:16 PST 2004


On Tue, Dec 21, 2004 at 09:27:40AM -0500 I heard the voice of
Peter C. Lai, and lo! it spake thus:
>
> It appears I have to 'make install' for php4-extensions to be built,
> but this is bad, since I want to only build the extensions via the
> metaport (because I want to use /var/db/ports/php4-extensions to
> direct the option flags) but not install them (say for a dedicated
> build and dev machine).

This would be difficult to do, I think.  Consider that
1) All the php4-* extensions require php to be installed to build
   against, and that
2) Some of the php4-* extensions require other php4-* extensions.

Now, (2) is essentially all runtime deps to my knowledge, so in theory
you could route around that with some magic.  Handling the build deps,
though...  that's tricky.

Your best bet may be to use DESTDIR and PKG_DBDIR to 'install' them in
a throwaway location, then use 'reinstall' to install 'em on the final
machine if you're doing something like NFS mounting /usr/ports.  One
gotcha will be that the DESTDIR setting is still going to be used, so
you may also have to toss in some symlinks on the final box to make it
work quite right.


-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"


More information about the freebsd-ports mailing list