diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /mail-filter/spampd | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'mail-filter/spampd')
| -rw-r--r-- | mail-filter/spampd/Manifest | 1 | ||||
| -rw-r--r-- | mail-filter/spampd/files/conf | 15 | ||||
| -rw-r--r-- | mail-filter/spampd/files/init | 23 | ||||
| -rw-r--r-- | mail-filter/spampd/files/spampd-2.61-no-pid-file.patch | 11 | ||||
| -rw-r--r-- | mail-filter/spampd/files/spampd.service | 11 | ||||
| -rw-r--r-- | mail-filter/spampd/files/spampd.service.conf | 5 | ||||
| -rw-r--r-- | mail-filter/spampd/metadata.xml | 8 | ||||
| -rw-r--r-- | mail-filter/spampd/spampd-2.61.ebuild | 45 |
8 files changed, 119 insertions, 0 deletions
diff --git a/mail-filter/spampd/Manifest b/mail-filter/spampd/Manifest new file mode 100644 index 000000000000..34c544eee5d3 --- /dev/null +++ b/mail-filter/spampd/Manifest @@ -0,0 +1 @@ +DIST spampd-2.61.tar.gz 246956 BLAKE2B de2b428fbed80ba6d65bd2b249a3adfb00cd0a33df21b71676da1949b680dbfee72412ae2c752f4e5dcf9f7f7349ae59ce94f81b2abae5fd4de34d3a92954fbb SHA512 e2f84c4b24648d4f4db70174f04b72981faa1c54ffc4bbc433d14c730ef4ad7fd4cd3772a476f25be0bee103e951700d038634d14848f1eb90849d1a6655199b diff --git a/mail-filter/spampd/files/conf b/mail-filter/spampd/files/conf new file mode 100644 index 000000000000..64abe21dd1b0 --- /dev/null +++ b/mail-filter/spampd/files/conf @@ -0,0 +1,15 @@ +# This is the configuration file that /etc/init.d/spampd sources when +# started. + +# SPAMPD_OPTS defines the command-line arguments to be passed to the +# spampd daemon upon start-up. A complete list of options can be +# found in the documentation, or by issuing the command +# "/usr/sbin/spampd --help" + +SPAMPD_OPTS="--host=localhost:10025 --relayhost=localhost:10026 --tagall" + +# Note: (from the Installation section in the spampd documentation) +# "Note that spampd replaces spamd from the SpamAssassin distribution +# in function. You do not need to run spamd in order for spampd to +# work. This has apparently been the source of some confusion, so now +# you know." diff --git a/mail-filter/spampd/files/init b/mail-filter/spampd/files/init new file mode 100644 index 000000000000..339a938d9c7d --- /dev/null +++ b/mail-filter/spampd/files/init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Note: spampd configuration file is /etc/conf.d/spampd + +depend() { + use net +} + +start() { + ebegin "Starting spampd" + start-stop-daemon --start --quiet --interpreted \ + --exec /usr/sbin/spampd -- --pid=/run/spampd.pid \ + ${SPAMPD_OPTS} + eend $? "Failed to start spampd" +} + +stop() { + ebegin "Stopping spampd" + start-stop-daemon --stop --quiet --retry 60 --pidfile /run/spampd.pid + eend $? "Failed to stop spampd" +} diff --git a/mail-filter/spampd/files/spampd-2.61-no-pid-file.patch b/mail-filter/spampd/files/spampd-2.61-no-pid-file.patch new file mode 100644 index 000000000000..b5151e11f8a5 --- /dev/null +++ b/mail-filter/spampd/files/spampd-2.61-no-pid-file.patch @@ -0,0 +1,11 @@ +diff -ruN spampd-2.61-v/spampd.pl spampd-2.61/spampd.pl +--- spampd-2.61-v/spampd.pl 2021-08-07 06:01:37.000000000 +1000 ++++ spampd-2.61/spampd.pl 2021-08-13 03:48:34.527166029 +1000 +@@ -761,6 +761,7 @@ + + # Set misc. options based on other options. + $srv_p->{setsid}= 0 if !$srv_p->{background}; ++ $srv_p->{pid_file} = undef if !$srv_p->{background}; + $sa_p->{home_dir_for_helpers} = $sa_p->{userstate_dir}; + $sa_p->{username} = $srv_p->{user}; + } diff --git a/mail-filter/spampd/files/spampd.service b/mail-filter/spampd/files/spampd.service new file mode 100644 index 000000000000..78ef5520323c --- /dev/null +++ b/mail-filter/spampd/files/spampd.service @@ -0,0 +1,11 @@ +[Unit] +Description=SpamAssassin Proxy Daemon +Before=mail-transfer-agent.target +After=syslog.target network.target + +[Service] +ExecStart=/usr/sbin/spampd --nodetach $SPAMPD_OPTS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/mail-filter/spampd/files/spampd.service.conf b/mail-filter/spampd/files/spampd.service.conf new file mode 100644 index 000000000000..1c2d9c1154e1 --- /dev/null +++ b/mail-filter/spampd/files/spampd.service.conf @@ -0,0 +1,5 @@ +[Service] +User=mail +Group=mail +Environment="SPAMPD_OPTS=--host=localhost:10025 --relayhost=localhost:10026 --tagall --set-envelope-from" + diff --git a/mail-filter/spampd/metadata.xml b/mail-filter/spampd/metadata.xml new file mode 100644 index 000000000000..d234c5d9d066 --- /dev/null +++ b/mail-filter/spampd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="github">mpaperno/spampd</remote-id> + </upstream> +</pkgmetadata> diff --git a/mail-filter/spampd/spampd-2.61.ebuild b/mail-filter/spampd/spampd-2.61.ebuild new file mode 100644 index 000000000000..8650eff99a70 --- /dev/null +++ b/mail-filter/spampd/spampd-2.61.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="A program to scan messages for Unsolicited Commercial E-mail content" +HOMEPAGE="http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm https://github.com/mpaperno/spampd" +SRC_URI="https://github.com/mpaperno/spampd/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" + +RDEPEND="acct-group/mail + acct-user/mail + dev-lang/perl + dev-perl/Net-Server + mail-filter/spamassassin + virtual/perl-IO-Socket-IP" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/perl" + +PATCHES=( + "${FILESDIR}/${P}-no-pid-file.patch" +) + +src_compile() { + mv ${PN}.pl ${PN} || die + pod2man ${PN}.pod > ${PN}.1 || die +} + +src_install() { + dosbin ${PN} + + dodoc changelog.txt + doman ${PN}.1 + + newinitd "${FILESDIR}"/init spampd + newconfd "${FILESDIR}"/conf spampd + + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_install_serviced "${FILESDIR}/${PN}.service.conf" +} |
