summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mail-filter/spamassassin: Fix script output when amavisd is disabledPhilippe Chaintreuil2024-01-271-2/+3
| | | | | | | | | | | | | | Because bash scripts exit with the status of the last command. If systemctl is installed but amavisd is not active the script returns with the value 4. This causes cron to send an email. Switching from "&&" to an if fixes this. Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Closes: https://bugs.gentoo.org/681872 Closes: https://github.com/gentoo/gentoo/pull/33969 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* mail-filter/spamassassin: Fix sa-update rdatastr deprecation warningPhilippe Chaintreuil2023-06-251-0/+12
| | | | | | | Closes: https://bugs.gentoo.org/909158 Closes: https://github.com/gentoo/gentoo/pull/31606 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: Fix issues with Perl Net::DNS 1.38Philippe Chaintreuil2023-06-251-0/+16
| | | | | | | Closes: https://bugs.gentoo.org/909086 Closes: https://github.com/gentoo/gentoo/pull/31599 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: Install 4.0.0 compat geoip.cfPhilippe Chaintreuil2023-01-051-0/+86
| | | | | | | Closes: https://bugs.gentoo.org/888845 Closes: https://github.com/gentoo/gentoo/pull/28888 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: Patch strip2.t test failurePhilippe Chaintreuil2022-12-271-0/+20
| | | | | | | | | Posted fix to upstream: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8096 Closes: https://github.com/gentoo/gentoo/pull/28844 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: Patch dnsbl_subtests.t test failurePhilippe Chaintreuil2022-12-271-0/+14
| | | | | | | | Posted fix to upstream: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8095 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: fix configure w/ clang 16Sam James2022-11-191-0/+44
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: Fixed command -v usageHank Leininger2021-06-291-2/+2
| | | | | | | | | | | | command -v writes to stdout, not stderr. As it happens this whole script is >/dev/null, so this instance is Mostly Harmless - unless someone copies it as an example of what to do. Signed-off-by: Hank Leininger <hlein@korelogic.com> Bug: https://bugs.gentoo.org/798933 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Closes: https://github.com/gentoo/gentoo/pull/21448 Signed-off-by: Sam James <sam@gentoo.org>
* mail-filter/spamassassin: Add example geoip.cfPhilippe Chaintreuil2020-06-202-0/+81
| | | | | | | | Bug: https://bugs.gentoo.org/675494 Closes: https://github.com/gentoo/gentoo/pull/16164 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* mail-filter/spamassassin: add spamassassin.service.conf-r2 backJoonas Niilola2020-03-161-0/+2
| | | | | | | | - accidentally deleted with previous commit, d04c5d81f9165702939ffcaf1dda981b8c36d711 Closes: https://bugs.gentoo.org/712796 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* mail-filter/spamassassin: Cleanup 3.4.2 ebuildsPhilippe Chaintreuil2020-03-156-149/+0
| | | | | | | | | | Now that 3.4.4 has been stablized, remove old, vulnerable 3.4.2 ebuilds and their associated extra files. Closes: https://github.com/gentoo/gentoo/pull/14957 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* mail-filter/spamassassin: Suppress warning in cron in some setupsPhilippe Chaintreuil2019-03-311-0/+41
| | | | | | | | | | | Suppress warning in cron job when the script tries to restart amavisd on systemd systems where amavisd is not installed. Closes: https://bugs.gentoo.org/681872 Closes: https://github.com/gentoo/gentoo/pull/11542 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Package-Manager: Portage-2.3.62, Repoman-2.3.11 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* mail-filter/spamassassin: restore support for paths in rules mirror URL'sMarcin Mirosław2019-03-022-0/+28
| | | | | | | | | | sa-update couldn't fetch rules from mirror if files were in paths Bug: https://bugs.gentoo.org/677250 Bug: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7623 Signed-off-by: Marcin Mirosław <bug@mejor.pl> Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* mail-filter/spamassassin: remove unused file.Michael Mair-Keimberger2019-01-211-38/+0
| | | | | | Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10822 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* mail-filter/spamassassin: Security cleanupMikle Kolyada2018-12-1110-1308/+0
| | | | | | Bug: https://bugs.gentoo.org/666348 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
* mail-filter/spamassassin: Update docs and warn about SQL schema changesPhilippe Chaintreuil2018-10-281-0/+61
| | | | | | | | | | | | | Pull patches from upstream to address AWL + TxRep SQL schema changes that were introduced in 3.4.2, but we're documented in it's initial release. Upstream-bug: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7631 Closes: https://bugs.gentoo.org/666576 Package-Manager: Portage-2.3.49, Repoman-2.3.11 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Closes: https://github.com/gentoo/gentoo/pull/10285 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* mail-filter/spamassassin: new revision that silences some log spam.Michael Orlitzky2018-10-121-0/+20
| | | | | Signed-off-by: Michael Orlitzky <mjo@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10
* mail-filter/spamassassin: remove unused files.Michael Mair-Keimberger2018-09-054-105/+0
| | | | Closes: https://github.com/gentoo/gentoo/pull/9744
* mail-filter/spamassassin: fix URILocalBL failing to loadPhilippe Chaintreuil2018-03-171-0/+31
| | | | | | | | | | | Apply upstream patch[1] from SA Bug #7208[2]. [1]:https://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm?r1=1684653&r2=1684652&pathrev=1684653&view=patch [2]:https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7208 Closes: https://bugs.gentoo.org/650638 Closes: https://github.com/gentoo/gentoo/pull/7476 Package-Manager: Portage-2.3.24, Repoman-2.3.6
* mail-filter/spamassassin: fix "postgres" -> "postgresql" in init script.Michael Orlitzky2017-12-051-0/+38
| | | | | | | | | | | In commit 5248063, I accidentally changed the name of the PostgreSQL dependency in the OpenRC service script from "postgresql" (correct) to "postgres" (not so much). This commit changes it back to the correct name in a new revision. Thanks to Aaron W. Swenson for noticing the mistake. Closes: https://bugs.gentoo.org/639916 Package-Manager: Portage-2.3.13, Repoman-2.3.3
* mail-filter/spamassassin: remove unused filesMichael Mair-Keimberger2017-11-283-46/+0
| | | | Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* mail-filter/spamassassin: new revision letting spamd run as root (systemd).Michael Orlitzky2017-11-012-0/+12
| | | | | | | | | | | | | | | | | | | | | In the previous revision (r18), support was added for running spamd as root through OpenRC. That was done using a new variable called SPAMD_RUN_AS_ROOT, defaulting to false. The choice to use a boolean variable -- as opposed to e.g. SPAMD_USER -- was made because passing "root" as the username to spamd kills it. Thus, SPAMD_USER=root would not have worked, and we instead test SPAMD_RUN_AS_ROOT to decide whether or not to specify a username/groupname at all. The same exact issue arises with systemd; however, systemd offers no way for us to test the value of SPAMD_RUN_AS_ROOT and act on the result! The SPAMD_USER proposal is dead in the water for the same reason, so a different approach was needed. The simplest thing that could work was to move the "--username" and "--groupname" flags out of the systemd service file, and into the SPAMD_OPTS variable. That way, users who know what they are doing can simply drop those flags. Closes: https://bugs.gentoo.org/635790 Package-Manager: Portage-2.3.8, Repoman-2.3.3
* mail-filter/spamassassin: new revision that lets spamd run as root (openrc).Michael Orlitzky2017-11-012-0/+68
| | | | | | | | | | | | | | | | | | | | The r13 revision of spamassassin came with a new init script (and systemd service file) that runs spamd as the "spamd" user by default, and that choice is not configurable. There is however a legitimate use case for running spamd as root; namely, when local users have their configurations or bayes databases stored in their home directories on the local filesystem. This new revision adds back the ability to run spamd as root, through the SPAMD_RUN_AS_ROOT variable in the OpenRC service configuration file. This should suffice for the users who have reported problems so far, and a similar fix for the systemd service is on its way. The pkg_postinst phase of the ebuild alerts users to the new configuration variable. Bug: https://bugs.gentoo.org/635790 Package-Manager: Portage-2.3.8, Repoman-2.3.3
* mail-filter/spamassassin: new revision to fix the build with openssl-1.1.Michael Orlitzky2017-11-011-0/+491
| | | | | | | | | | | | | This new revision adds a patch (thanks to Mark Wright) that fixes the build with the new openssl-1.1 branch. Our patch is based on the fix contributed upstream by Noah Meyerhans (thanks Noah) in SA bug 7361. In an unrelated change, the SRC_URI was updated to use the https protocol. Bug: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7361 Closes: https://bugs.gentoo.org/624858 Package-Manager: Portage-2.3.8, Repoman-2.3.3
* mail-filter/spamassassin: remove unused filesMichael Mair-Keimberger2017-09-062-91/+0
| | | | Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* mail-filter/spamassassin: new revision to fix the systemd service.Michael Orlitzky2017-08-241-3/+1
| | | | | | | | | | | | | | | As part of bug 590346, I accidentally broke the systemd service file by starting the service as spamd:spamd when it needs to bind to port 783. Even when the service is run in the foreground, it needs to be started as root; it will then drop privileges if given the --username and --groupname flags. The new service file gets this right, with root owning the main process and spamd:spamd the children. Thanks to Dan Goodliffe for the report and help debugging the issue. Gentoo-Bug: 590346 Package-Manager: Portage-2.3.6, Repoman-2.3.1
* mail-filter/spamassassin: Tweaks requested by @orlitzkyPhilippe Chaintreuil2017-08-231-0/+1
| | | | | | | | | | | | | | | - Add upstream bug URL to patch ( https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7462 ) - Removed -r15 from package.mask - Unrequested: Renamed patch file now that there is an upstream bug to match the naming convention of the other patches Gentoo-Bug: 627678 Package-Manager: Portage-2.3.6, Repoman-2.3.1 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* mail-filter/spamassassin: fix PERL_USE_UNSAFE_INC=0 test failuresPhilippe Chaintreuil2017-08-231-0/+197
| | | | | | | | | | | | | Add "use lib '.'" calls before "use SATest" calls in tests that are missing them. This fixes tests that fail when the PERL_USE_UNSAFE_INC=0 env var is set. Also mark this new package as masked, same as -r14. Gentoo-Bug: 627678 Package-Manager: Portage-2.3.6, Repoman-2.3.1 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* mail-filter/spamassassin: remove redundant systemd service file lines.Michael Orlitzky2017-08-201-3/+1
| | | | | | | | | | | This commit drops the StandardOutput=syslog and StandardError=syslog lines from the new systemd service file. The defaults for those two options are now "journal" which will eventually hit syslog anyway if the user so desires. Consequently, we drop After=syslog.target too. Thanks to grawity on Freenode for the tip. Package-Manager: Portage-2.3.6, Repoman-2.3.1
* mail-filter/spamassassin: synchronize the systemd service configuration.Michael Orlitzky2017-08-202-0/+16
| | | | | | | | | | | | | | | | | This commit brings the systemd service and its configuration back in sync with OpenRC: * The SPAMD_OPTS passed to the daemon now match OpenRC's. * We no longer pass --daemon to spamd, and thus we don't have to specify that the daemon forks or track its PID file in the service. * The "spamd" user and group are used for the service. Gentoo-Bug: 590346 Package-Manager: Portage-2.3.6, Repoman-2.3.1
* mail-filter/spamassassin: new revision to fix tests and improve init script.Michael Orlitzky2017-08-202-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | This commit adds an upstream patch to fix a test suite crash with newer versions of perl. It also largely rewrites the init script: * Don't conditionally "use mysql" or "use postgres" in the OpenRC init script. Even if SpamAssassin is installed without e.g. MySQL support, if MySQL is present on the system, a user might store his SpamAssassin data in it. * Use a declarative style and drop the custom start() and stop() functions. * Run the spamd daemon as the "spamd" user. * Use /run/spamd.pid for the PID file to avoid a "checkpath". Some updates were made to the ebuild to facilitate those changes: * Don't modify the init script for USE=mysql or USE=postgres. * Create a "spamd" user in pkg_preinst(). Package-Manager: Portage-2.3.6, Repoman-2.3.1
* mail-filter/spamassassin: add a patch to -r11 for perl-5.26 compatibility.Michael Orlitzky2017-08-041-0/+14
| | | | | | Gentoo-Bug: 625316 Package-Manager: Portage-2.3.6, Repoman-2.3.1
* mail-filter/spamassassin: new revision fixing bugs 590338 and 615856.Michael Orlitzky2017-04-231-0/+140
| | | | | | | | | | | | | | | The first fix in this revision adds a slot-operator dependency on dev-lang/perl. This should force SpamAssassin to rebuild in response to future major upgrades of perl (bug 615856). The second fix includes a backported patch to support newer versions of dev-perl/Net-DNS. This should avoid the problems experienced with the URIDNSBL plugin (bug 590338). Gentoo-Bug: 590338 Gentoo-Bug: 615856 Package-Manager: Portage-2.3.3, Repoman-2.3.1
* Drop remaining $Id$ and $Header$ from files.Ulrich Müller2017-02-282-2/+0
| | | | Bug: 611234
* mail-filter/spamassassin: remove unused files/spamassassin.service.Michael Orlitzky2016-06-061-14/+0
| | | | Package-Manager: portage-2.2.28
* mail-filter/spamassassin: new revision with an optional sa-update cron job.Michael Orlitzky2016-06-051-0/+38
| | | | | | | | | | | | | | | | | To make life easier for our users, a cron job that runs sa-update nightly has been provided. It is only installed with USE=cron, but an elog will mention its existence when that USE flag is disabled. The cron job will also attempt to restart or reload spamd/amavisd if the signatures have been updated. Alongside that new feature, some of the dependencies have been cleaned up. Pointless version bounds were removed, and an obsolete perl module or two was pruned. The libwww-perl dependency was replaced by wget/curl. Gentoo-Bug: 532094 Package-Manager: portage-2.2.28
* mail-filter/spamassassin: new revision with LibreSSL and spamd fixes.Michael Orlitzky2016-06-043-0/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new revision adds another patch for upstream bugs 7093/7199. The sslv3 option for spamd didn't do what it was supposed to do, and moreover, it broke LibreSSL which no longer supports SSLv3. The patch removes the option and makes it an error. There is a simple fix for users, to remove the --ssl-version option if they are using it. Thanks to Reuben Farrelly for reporting the issue. The second round of changes addresses a few old Gentoo bugs regarding the spamd init scripts and configuration. First, the init script was missing a call to "checkpath" to ensure that the PID file had some place to live. That's now fixed. Second, it used to be the case that some configuration was necessary if you opted to run spamd as a non-root user. That is no longer the case, so all of the documentation surrounding that issue has been removed, and the config/init scripts greatly simplified. Finally, a SPAMD_TIMEOUT option was added to allow spamd a little bit of time when restarting or shutting down. Peter Gantner, Juan David Ibáñez Palomar, Marcin Mirosław, Frieder Bürzele, and a few other people helped out on those bugs. Thanks! Gentoo-Bug: 322025 Gentoo-Bug: 455604 Gentoo-Bug: 523960 Upstream-Bug: 7093 Upstream-Bug: 7199 Package-Manager: portage-2.2.28
* mail-filter/spamassassin: new revision to fix Net-DNS compatibility issues.Michael Orlitzky2016-06-033-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | With the stabilization of =dev-perl/Net-DNS-1.40.0 (and the removal of the older stable version), a number of problems were introduced in SpamAssassin. There are three upstream bugs with patches against the latest release, v3.4.1, which fix all sorts of DNS errors in blacklist checks, DKIM, and SPF. The major contribution of this new revision is to apply patches from those upstream bugs fixing compatibility with =dev-perl/Net-DNS-1.40.0. At the same time, bug 396307 has been fixed by creating the sa-update-keys directory and assigning it the proper permissions. Thanks are due to Olliver Schinagl, Philippe Chaintreuil, Marcin Mirosław, and Atman Sense who reported and investigated these issues. Gentoo-Bug: 396307 Gentoo-Bug: 579222 Upstream-Bug: 7223 Upstream-Bug: 7231 Upstream-Bug: 7265 Package-Manager: portage-2.2.28
* mail-filter/spamassassin: use #!/sbin/openrc-run instead of #!/sbin/runscriptAustin English2016-04-261-2/+2
| | | | | | Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846 Package-Manager: portage-2.2.26
* proj/gentoo: Initial commitRobin H. Johnson2015-08-086-0/+145
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed