Overwriting config files

markd at macports.org markd at macports.org
Fri Aug 17 10:00:12 PDT 2007


Anders F Björklund <afb at macports.org> writes:
>> "If a port installs a foo.cf.sample it might want to copy 
>> foo.cf.sample to foo.cf iff foo.cf doesn't exist. This is probably 
>> common enough that the port author shouldn't be forced to write an 
>> on-install foo.cf.sample [ ! -f foo.cf ] && cp foo.cf.sample foo.cf"
>>
>> I don't understand what functionality requested by Brian cannot be met 
>> by MacPorts 1.5.2 as it is today.
>
>It's an enhancement alright, but I think that it would fit in great 
>with the need of packages to signify which files are configuration ? In 
>essence doing "port install/uninstall" and binary archives/packages 
>have different needs, but I think it would be great to have features 
>for both of them. And I do prefer simply listing the conffiles, rather 
>than having to write any such install/uninstall scripts manually.

I think having 'dodoc' and 'dobin' macros or some such like Gentoo would
be very nice.  I'm not sure what I 'doconf' would do but it could be
useful.

Mark




More information about the macports-users mailing list