What use is WWWDIR_REL?

Philip M. Gollucci pgollucci at gmail.com
Thu Feb 9 03:04:02 UTC 2012


On 02/08/12 23:24, Doug Barton wrote:
> On 02/08/2012 07:36, Alex Dupre wrote:
>> Doug Barton wrote:
>>> So this leads me to many questions, the first and most obvious of which
>>> is, what the heck good is WWWDIR_REL in the first place?
>>
>> I don't follow you: in what sense WWWDIR_REL is different from, e.g.,
>> DOCSDIR_REL or DATADIR_REL? Why do you want to remove it and not the
>> others?
> 
> Looking again at this bit of bpm:
> 
> PLIST_SUB+=     DOCSDIR="${DOCSDIR_REL}" \
>                 EXAMPLESDIR="${EXAMPLESDIR_REL}" \
>                 DATADIR="${DATADIR_REL}" \
>                 WWWDIR="${WWWDIR_REL}" \
>                 ETCDIR="${ETCDIR_REL}"
> 
> You're right, the silliness is universal. I was focused on WWWDIR
> because I was working with it. They should probably all go away, but I
> don't have the time atm to do an exhaustive search on where/how they are
> all used.
> 
> 
> Doug
> 
Ah, the lightbulb goes off.

pkg-plist is supposed to be relative to @cwd which may or may not be
${LOCALBASE} or ${PREFIX} hence abs paths should be avoided.

That said, I think dougb's original patch
+		WWWDIR="${WWWDIR:S,^${PREFIX}/,,}"

accomplishes this quite nicely and removes 1-3 variables in the process.



-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
Member,                           Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Director Operations,              Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120209/53933fec/signature.pgp


More information about the freebsd-ports mailing list