On 05/01/2014 04:30 PM, Greg Earle wrote: > > I have the indexing and ht://Dig patches for 2.1.12 and I'm trying > to integrate it into a custom RPM build, like its predecessor. Basing > it on mailman-2.1.12-18.el6.src.rpm.
I can't help at all with RPM packaging, but I can tell you that this diff is for a user crontab designed to be 'configured' into crontab.in and then installed as a user crontab in, e.g. /var/spool/mailman > diff -ruP --exclude=.DS_Store mailman-2.1.9-index/cron/crontab.in.in > mailman-2.1 > .9-htdig/cron/crontab.in.in > --- mailman-2.1.9-index/cron/crontab.in.in 2002-01-06 06:28:12.000000000 > +0 > 000 > +++ mailman-2.1.9-htdig/cron/crontab.in.in 2006-09-20 16:06:17.000000000 > +0 > 100 > @@ -18,6 +18,11 @@ > # or want to exclusively use a callback strategy instead of polling. > 0,5,10,15,20,25,30,35,40,45,50,55 * * * * @PYTHON@ -S @prefix@/cron/gate_news > # > +# At 2:19am every night, regenerate htdig search files. Only > +# turn this on if the internal archiver is used and htdig > +# use enabled in mm_cfg.py with USE_HTDIG > +19 2 * * * @PYTHON@ -S @prefix@/cron/nightly_htdig > +# > # At 3:27am every night, regenerate the gzip'd archive file. Only > # turn this on if the internal archiver is used and > # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py and this diff is for a system crontab designed to be configured into crontab.in and installed as, e.g., /etc/cron.d/mailman > [root@rushmore cron]# diff -u crontab.in.in.htdig crontab.in.in > --- crontab.in.in.htdig 2009-04-02 01:45:29.000000000 -0700 > +++ crontab.in.in 2009-04-02 01:45:29.000000000 -0700 > @@ -41,6 +41,11 @@ > # or want to exclusively use a callback strategy instead of polling. > 0,5,10,15,20,25,30,35,40,45,50,55 * * * * @MAILMAN_USER@ > @prefix@/cron/gate_news > # > +# At 2:19am every night, regenerate htdig search files. Only > +# turn this on if the internal archiver is used and htdig > +# use enabled in mm_cfg.py with USE_HTDIG > +19 2 * * * @PYTHON@ -S @prefix@/cron/nightly_htdig > +# > # At 3:27am every night, regenerate the gzip'd archive file. Only > # turn this on if the internal archiver is used and > # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py > -- I.e. the htdig patches are for a GNU Mailman source distribution which assumes the crontab will be installed as the mailman user's crontab whereas the RedHat package assumes a system crontab, thus the extra field for the user to run as. I suspect RedHat's crontab drops the Python command because it's in a shebang line in the cron files anyway and it avoids a python version dependency in the crontab. Sorry I can't offer more help. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org