Install suggestions for port ASSP
Scott Haneda
talklists at newgeo.com
Fri Feb 27 16:48:56 PST 2009
On Feb 27, 2009, at 2:51 PM, Daniel J. Luke wrote:
> 2. in post-activate check to see if blacklist.txt exists, if not
> copy blacklist.txt.sample to blacklist.txt
>
> Do this for each of the files.
>
> squid does this for squid.conf and mime.conf, so you can look there
> if you want to see an example.
Thanks, the squid example was helpful.
if {![file exists ${assp_base}/assp.cfg]} {
file copy ${assp_base}/assp.cfg.defaults \
${assp_base}/assp.cfg
}
My trouble with that, is the assp.cfg gets user and group of root,
which I do not want. In xinstal, can set user, group, and mode. I am
not seeing in the docs how to tell file copy to set user and group and
mode. So I just use a system call to do it?
I can not move this condition into destroot{} since I need to check if
the files are there post-activation, I believe.
--
Scott
* If you contact me off list replace talklists@ with scott@ *
More information about the macports-users
mailing list