tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PLIST fiddling at post-install phase

I have a package (cross/avr-libc) that installs man pages whose names conflict 
on case-insensitive file systems (like PRIx8.3 and PRIX8.3).
I think the most elegant way to deal with this is to detect the conflict in the 
post-install phase and then replace the relevant files with some hand-crafted 
merged version from the files directory.
However, how do I adapt the PLIST? It looks easy to detect the conflict by 
something like

PLIST_VARS+= case-sensitive case-insensitive
.if exists(.../pRix8.3) # some funny name that will only match on a 
case-insensitive file system yes
.else yes



but I guess bmake evaluates the conditional at parse time so it would work for 
make build; make install but not otherwise.
Any suggestion on how to detect a case-insensitive work or dest dir and adapt 
the PLIS accordingly?

Home | Main Index | Thread Index | Old Index