I have a package that has some optional monthly and weekly scripts, that would normally be run by the /usr/sbin/periodic script. However, fink doesn't provide any mechanism for plugging into the periodic script list. Normally, you'd just throw the scripts into /usr/local/periodic/weekly and /usr/local/periodic/monthly.
I see two options:
1. The periodic script already (on my machine anyway) already defaults to looking in /usr/local/etc/periodic in addition to /etc/periodic. The obvious solution is therefore to just install my periodic scripts into /usr/local/etc/periodic, even though this is outside /sw. Cleanup at package removal time should be simple.
2. Create /sw/etc/periodic and appropriate subdirectories to mirror /etc/periodic, and patch /etc/periodic.conf to add /sw/etc/periodic to the local_periodic config variable. This is however fiddly to set up, as you need to check whether the local_periodic variable is already set, and if so, whether it already contains /sw/etc/periodic. It's also messy to clean up afterwards for similar reasons.
(I suppose you could also set it up as a cron job directly, but that's not that much different from option 2.)
Neither option is really acceptable...
I'm leaning towards option 1 because it's a much cleaner solution and easier to deal with. If I went for option 2 I think it would be better to create a separate periodic package that did this globally for anyone who needed (like daemonic does for startup items). Regardless, option 2 is still messy.
Comments?
fink info anacron
Max
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel