Changing default files locations / ports / mailgraph

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Thu Jun 26 19:22:35 UTC 2008


Zbigniew Szalbot <z.szalbot at lc-words.com> writes:

> Hello all,
>
> What do I need to avoid making the same mistake of having mailgraph
> installing files at the wrong location in my system?
>
> The default location in Makefile is this:
> CGIDIR?=        ${PREFIX}/www/cgi-bin
> DATADIR?=       /var/db/mailgraph
> WWWROOT?=       ${PREFIX}/www/data
>
> I'd like to keep it here:
> CGIDIR?=        ${PREFIX}/www/apache22/cgi-bin
> DATADIR?=       /var/db/mailgraph
> WWWROOT?=       ${PREFIX}/www/apache22/data
>
> Other than symlinking, can I specify this location in
> /usr/local/etc/pkgtools.conf (I generally use portupgrade to upgrade
> software)? If so, how should I specify an entry for mailgraph?

I would symlink it, myself.

For portupgrade, I guess you could do a MAKE_ARGS entry something like
'mail/mailgraph' => 'CGIDIR=${PREFIX}/www/apache22/cgi-bin DATADIR=/var/db/mailgraph WWWROOT=${PREFIX}/www/apache22/data'

[Completely untested, of course.]
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list