Duncan Findlay wrote: >On Sun, Apr 14, 2002 at 12:21:35PM -0700, Bart Schaefer wrote: > >>I've been trying to think how to correctly relocate $(LOCAL_RULES_DIR) >>relative to $(PREFIX) when building SA. The problem of course being that >>in the "normal" case, /etc is not relative to $Config{prefix}, which is >>the default value of $(PREFIX). This is particularly important when >>a non-root user is installing. >> >>Choices appear to be: >> >>(1) Change $(LOCAL_RULES_DIR) to always be $(PREFIX)/etc/spamassassin, >>giving up on using /etc/mail unless the installer edits Makefile.PL. I >>note that /usr/local/etc/spamassassin is already being searched before >>/etc/mail/spamassassin by the ordering of the @site_rules_path array, but >>there seems to be some feeling among sa-talk posters that /etc/mail is the >>"right" place to put this. >> > >No. That is an awful idea. >Configuration files should ALWAYS be under /etc/. Failure to do so is a >violation of the FHS (Filesystem Hierarchy Standard). > But I would say the point here is not to violate it but to permit RPM builds under some user other than root. The problem is that the Makefile wants to install in /etc but a non-root user won't have permission to do this. It should install in /var/tmp/etc instead, but there's no way to do this unless you have root permissions -- or change the Makefile to install into an arbitrary directory. And from a security perspective, the less you have to do as root, the better.
>What's wrong with >my $LOCAL_RULES_DIR = '$(PREFIX)/../etc/mail/spamassassin'; > It doesn't solve the non-root RPM build problem. -- http://www.pricegrabber.com "We are smarter individually." -- Larry Niven _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk