Added fetchmail-6.4.{37,39}.

This commit is contained in:
László Valkó 2024-08-28 02:56:37 +02:00
parent c560148abe
commit 31516e5a68
10 changed files with 296 additions and 0 deletions

View file

@ -0,0 +1,11 @@
AUX fetchmail-6.3.26-python-optional.patch 255 BLAKE2B ff13ec04926ae8362acea31c37719e9bc59599ad98f0ba8792d25101371984d38b2ea5ea9672a5b23b2600e743d6d57a718d3967f1c79dcb393c4f8757a58741 SHA512 7ac620a695d681278ed91f2f45a55822e5adfb0657c65be3edf09eb5259173e298cf509d1d7df7905bf2cb914b4869cca9cd0627dc0527a048edd9e9bd2a775d
AUX fetchmail.conf 38 BLAKE2B 8458d0709652038a9a4661d68154ed87269aa3b9d07abb1a04645fe5acdfbee2c197b81356430e74ab63685c2f2f7003def4ca4a7f2ca04146abc42f4d91cafc SHA512 f6e3eb409a1d88bcfb02012491fdbbf859803dbee45998879525fd35a2377bae95504da8aafcb24bcc2e695e15c96f6ec6f7e6521d28012370a4ec5e2a25a351
AUX fetchmail.confd 297 BLAKE2B 00f9a55be3b6351dc7b97758f3403feab9d1025bb2b0398ab3104c5180a321a2cff386d4a50fbc24bacd00a001052b3076b6fa5f3c831e48ecc2ce95b8ca27b1 SHA512 4dacd025d76a22c991c6dabe7c3d5b33b49348e83534d4de300a1b0d55a62dc0195e19065cb0a3a5da72f50700e7b92d4579be795a899f680e2a8be7dd508532
AUX fetchmail.initd 993 BLAKE2B 76fb355805afc0b62f350f02dc0b0d6ac83659d2e15a49309192de313fa38b61e32db0bb9e5148c3d56bae61ca5e714f8d9576e0f95997d45a44d51f56c8235c SHA512 06091152111059425e86207e968ad5819eb67cd2dd264855e7b77a163b95591abc29befe4b3eb8bf2d2af105efb5006bb048f3db4ef3f8f4fafbb78767f69ebb
AUX fetchmail.service 204 BLAKE2B 4683577d0da4929b068bd2f49516838644ac399e6ab27fb6ff9f3d5f1d8357302e11e6fc4d22d8944d504bdbb600e87b853e039601b8cca9763e1ca465573508 SHA512 088d7ff2c473d4b514cc5349ba6f10bb7f29ace1141d152db082c801a9dd0e6144a2dd350e27e97f633aaf286c2daa5253e52b5c410737c44f3fd9b5b57bab75
AUX fetchmail_at.service 289 BLAKE2B ab28a4b96625404f5451aa2dd37b671a18d7bf72bb3792d20eecded0ef42f15ddd768470a9dd541a66a495e954632e9b12ba3c0cfb446c4e2832eb9d3993f8c3 SHA512 4f8208a286f2868a466e69919b7c9d965da099b44675105689bcc52b0d16acc8d46e77f6b9a72968e82a6cf900e20d07a9a7373fe26a1ba9c925edf6663180ed
DIST fetchmail-6.4.37.tar.xz 1202860 BLAKE2B 4dc7d116e9dc32c2ff070f669306d9f2c0f93d5638b748d7362d6c9ab8684ae7ed8e26278ecf63bf23e2fff27916f83f7287aff891bd90bad82793bb84775c40 SHA512 99a620380d9bd0713d76495f587adbcc95fc16e5fcb048dc528f3039ebd8fcfbb1e2f44e10fc25f70e50940ce89922ff39f1f3d724d1f47a8d4918a37c07d8d0
DIST fetchmail-6.4.39.tar.xz 1221596 BLAKE2B 2d03f6668d2882e7dd1d4e83e8643a2a4c81576a143c75ff1b24327873fa6112fa313f9723373a268e04697b76b3b638cbbd7a04c21cba946cd1532b6aaf201d SHA512 979721aead72c9b706f9c64a83cf78a91890f5a2dce235b3b4f0dbdb17e879eaef2fb9a08efb415cb288ebee07c915adc8025a6d2d11f532fb95a9e30f93f7f5
EBUILD fetchmail-6.4.37.ebuild 2089 BLAKE2B 926581d4d40e2224b12c3af74015513c2073526035abe5cee95d29081d8ec1b47ed1ddf4ed43b0a84edf5f783b79aba672c5f0e17376264e0f99d18851623d76 SHA512 f37fc2104436975c9f83b8379757128a3393aef2dae7d4837525134d7db575de9b0a177abf420e27b96dab02397d67d1abc1451f05a1f7709961eb7405a37b3b
EBUILD fetchmail-6.4.39.ebuild 2089 BLAKE2B 926581d4d40e2224b12c3af74015513c2073526035abe5cee95d29081d8ec1b47ed1ddf4ed43b0a84edf5f783b79aba672c5f0e17376264e0f99d18851623d76 SHA512 f37fc2104436975c9f83b8379757128a3393aef2dae7d4837525134d7db575de9b0a177abf420e27b96dab02397d67d1abc1451f05a1f7709961eb7405a37b3b
MISC metadata.xml 522 BLAKE2B 34e08c52e9391d8f01d717516857cde4c2c77af269d587a29ce6d6e3c6c2e989898f5afcb1240f6718dbdb18be2700b66980f5a684c253c69ed4123e6bb6905e SHA512 8c6fd6c541834669a9518b31859990c8d6e9946e35bc1aa00bf2e0c1822392508ff712119005b97f5e85ca74e97c0d5cf3ced5798a388c23f9c8fd959feaf8cc

View file

@ -0,0 +1,90 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools systemd tmpfiles toolchain-funcs
DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
HOMEPAGE="https://www.fetchmail.info/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
LICENSE="GPL-2 public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
IUSE="ssl nls kerberos tk selinux socks"
RDEPEND="acct-user/fetchmail
ssl? (
>=dev-libs/openssl-1.1.1:=
)
kerberos? (
virtual/krb5
>=dev-libs/openssl-1.0.2:=
)
nls? ( virtual/libintl )
!elibc_glibc? ( sys-fs/e2fsprogs )
socks? ( net-proxy/dante )"
DEPEND="${RDEPEND}
app-arch/xz-utils
app-alternatives/lex
nls? ( sys-devel/gettext )"
RDEPEND+=" selinux? ( sec-policy/selinux-fetchmail )"
DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO"
HTML_DOCS="*.html"
PATCHES=(
"${FILESDIR}"/${PN}-6.3.26-python-optional.patch
)
S=${WORKDIR}/${P/_/.}
src_prepare() {
default
eautoreconf
}
src_configure() {
export PYTHON=:
econf \
--enable-RPA \
--enable-NTLM \
--enable-SDPS \
$(use_enable nls) \
$(use_with ssl ssl "${EPREFIX}/usr") \
$(use kerberos && echo "--with-ssl=${EPREFIX}/usr") \
$(use_with kerberos gssapi) \
$(use_with kerberos kerberos5) \
--without-hesiod \
$(use_with socks)
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
default
newinitd "${FILESDIR}"/fetchmail.initd fetchmail
newconfd "${FILESDIR}"/fetchmail.confd fetchmail
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_newunit "${FILESDIR}"/${PN}_at.service "${PN}@.service"
dotmpfiles "${FILESDIR}"/${PN}.conf
docinto contrib
local f
for f in contrib/* ; do
[ -f "${f}" ] && dodoc "${f}"
done
}
pkg_postinst() {
tmpfiles_process ${PN}.conf
if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Please see /etc/conf.d/fetchmail if you want to adjust"
elog "the polling delay used by the fetchmail init script."
fi
}

View file

@ -0,0 +1,90 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools systemd tmpfiles toolchain-funcs
DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
HOMEPAGE="https://www.fetchmail.info/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
LICENSE="GPL-2 public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
IUSE="ssl nls kerberos tk selinux socks"
RDEPEND="acct-user/fetchmail
ssl? (
>=dev-libs/openssl-1.1.1:=
)
kerberos? (
virtual/krb5
>=dev-libs/openssl-1.0.2:=
)
nls? ( virtual/libintl )
!elibc_glibc? ( sys-fs/e2fsprogs )
socks? ( net-proxy/dante )"
DEPEND="${RDEPEND}
app-arch/xz-utils
app-alternatives/lex
nls? ( sys-devel/gettext )"
RDEPEND+=" selinux? ( sec-policy/selinux-fetchmail )"
DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO"
HTML_DOCS="*.html"
PATCHES=(
"${FILESDIR}"/${PN}-6.3.26-python-optional.patch
)
S=${WORKDIR}/${P/_/.}
src_prepare() {
default
eautoreconf
}
src_configure() {
export PYTHON=:
econf \
--enable-RPA \
--enable-NTLM \
--enable-SDPS \
$(use_enable nls) \
$(use_with ssl ssl "${EPREFIX}/usr") \
$(use kerberos && echo "--with-ssl=${EPREFIX}/usr") \
$(use_with kerberos gssapi) \
$(use_with kerberos kerberos5) \
--without-hesiod \
$(use_with socks)
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
default
newinitd "${FILESDIR}"/fetchmail.initd fetchmail
newconfd "${FILESDIR}"/fetchmail.confd fetchmail
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_newunit "${FILESDIR}"/${PN}_at.service "${PN}@.service"
dotmpfiles "${FILESDIR}"/${PN}.conf
docinto contrib
local f
for f in contrib/* ; do
[ -f "${f}" ] && dodoc "${f}"
done
}
pkg_postinst() {
tmpfiles_process ${PN}.conf
if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Please see /etc/conf.d/fetchmail if you want to adjust"
elog "the polling delay used by the fetchmail init script."
fi
}

View file

@ -0,0 +1,14 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,9 +16,11 @@
pys= fetchmailconf.py
pym= fetchmailconf.man
+if HAVE_PYTHON
nodist_bin_SCRIPTS= fetchmailconf
python_PYTHON= $(pys)
dist_man1_MANS+= $(pym)
+endif
CLEANFILES= $(nodist_bin_SCRIPTS)

View file

@ -0,0 +1 @@
d /run/fetchmail 700 fetchmail nobody

View file

@ -0,0 +1,9 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Polling frequency in seconds
# (fetchmail will daemonize and check for new mail at this interval)
polling_period="60"
# Directory where the pid file is kept
pid_dir="/var/run/fetchmail"

View file

@ -0,0 +1,44 @@
#!/sbin/openrc-run
piddir=${pid_dir:-/var/run/fetchmail}
pid_file=${piddir}/${RC_SVCNAME}.pid
rcfile=/etc/${RC_SVCNAME}rc
depend() {
need net
use mta
}
checkconfig() {
if [ ! -f ${rcfile} ]; then
eerror "Configuration file ${rcfile} not found"
return 1
fi
local fetchmail_instance
fetchmail_instance=${RC_SVCNAME##*.}
if [ -n "${fetchmail_instance}" -a "${RC_SVCNAME}" != "fetchmail" ]; then
fidfile=/var/lib/fetchmail/.fetchids.${RC_SVCNAME}
else
fidfile=/var/lib/fetchmail/.fetchids
fi
if [ ! -d ${piddir} ]; then
checkpath -q -d -o fetchmail:fetchmail -m 0755 ${piddir} || return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting ${RC_SVCNAME}"
start-stop-daemon --start --pidfile ${pid_file} \
--user fetchmail --exec /usr/bin/fetchmail \
-- -d ${polling_period} -f ${rcfile} \
--pidfile ${pid_file} -i ${fidfile}
eend ${?}
}
stop() {
ebegin "Stopping ${RC_SVCNAME}"
start-stop-daemon --stop --quiet --pidfile ${pid_file}
eend ${?}
}

View file

@ -0,0 +1,11 @@
[Unit]
Description=A remote-mail retrieval utility
After=network.target
[Service]
User=fetchmail
ExecStart=/usr/bin/fetchmail -d 60 -f /etc/fetchmailrc
RestartSec=1
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=A remote-mail retrieval utility for %i
After=network.target
[Service]
User=fetchmail
ExecStart=/usr/bin/fetchmail --pidfile %t/fetchmail/fetchmail-%i.pid -i /var/lib/fetchmail/.fetchids.%i -f /etc/fetchmailrc-%i -d 60
RestartSec=1
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>voyageur@gentoo.org</email>
<name>Bernard Cafarelli</name>
</maintainer>
<use>
<flag name="tk">Enable support for Tk GUI toolkit, in particular it installs fetchmailconf</flag>
<flag name="socks">Enable support for socks proxy</flag>
</use>
<upstream>
<remote-id type="sourceforge">fetchmail</remote-id>
</upstream>
</pkgmetadata>