From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-mail/fetchmail/Manifest | 13 +++ net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild | 99 ++++++++++++++++++++ net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild | 101 +++++++++++++++++++++ .../files/fetchmail-6.3.26-python-optional.patch | 14 +++ .../fetchmail/files/fetchmail-6.3.26-tests.patch | 11 +++ net-mail/fetchmail/files/fetchmail.conf | 1 + net-mail/fetchmail/files/fetchmail.confd | 9 ++ net-mail/fetchmail/files/fetchmail.initd | 44 +++++++++ net-mail/fetchmail/files/fetchmail.service | 11 +++ net-mail/fetchmail/files/fetchmail_at.service | 11 +++ net-mail/fetchmail/metadata.xml | 16 ++++ 11 files changed, 330 insertions(+) create mode 100644 net-mail/fetchmail/Manifest create mode 100644 net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild create mode 100644 net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild create mode 100644 net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch create mode 100644 net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch create mode 100644 net-mail/fetchmail/files/fetchmail.conf create mode 100644 net-mail/fetchmail/files/fetchmail.confd create mode 100644 net-mail/fetchmail/files/fetchmail.initd create mode 100644 net-mail/fetchmail/files/fetchmail.service create mode 100644 net-mail/fetchmail/files/fetchmail_at.service create mode 100644 net-mail/fetchmail/metadata.xml (limited to 'net-mail/fetchmail') diff --git a/net-mail/fetchmail/Manifest b/net-mail/fetchmail/Manifest new file mode 100644 index 000000000000..e0a4e1312d3e --- /dev/null +++ b/net-mail/fetchmail/Manifest @@ -0,0 +1,13 @@ +AUX fetchmail-6.3.26-python-optional.patch 285 SHA256 06c88a081bd0fb92f069691f17fda9f6dda7bef68428c25467685290285c7cfa SHA512 38f39ea656d42852a05508caf6a2c444b47dea007265ca4373b4ebe7632c5477fb03edd4769576a79199425e3660ee098297beee19fa96f35301ed209b751e39 WHIRLPOOL 6c9f32831d7730669a45f57d5dae3211fd78b33ec59aff544a6594f8dfad507ba16d396866c07d66bf73c52594e0166a2411bb0e6db4a52dafe9bf1abc50d9f8 +AUX fetchmail-6.3.26-tests.patch 374 SHA256 c380ab23102d966e5a079df441b502d6d87065884a3f3e6b1da057092c1e1419 SHA512 9b65f3a70e52c25a90768228433f6c40da62d5627245ce862e23ebfae244209a9557731b7beec2be65b338c6670464fa0121b50c25154719cbc052c59f74841b WHIRLPOOL 3f7ba52be3e34b5fc4e6ceba2028c7c755dd252375a0de4588c3ee7796a69fad508e1a0af0fd04fc969836b9d0c50f2446e1511d68a35a8b764bd9e5de1036b3 +AUX fetchmail.conf 38 SHA256 09e82568992f79acc7be4aea217e420339705e790d4ba44217a30afe9a88a173 SHA512 f6e3eb409a1d88bcfb02012491fdbbf859803dbee45998879525fd35a2377bae95504da8aafcb24bcc2e695e15c96f6ec6f7e6521d28012370a4ec5e2a25a351 WHIRLPOOL 8f8452883893262d961bf70b607f7c7a07512900bce6ce1429675c7b18330764efd4a413bc3ec9efb6c9ed36fa00fbcd65bc7af99032bc569c0f22f114b8aa36 +AUX fetchmail.confd 297 SHA256 da3055b2474329ff24b77a0d0e3e32a71e50e433342eb69949b063367125eae4 SHA512 4dacd025d76a22c991c6dabe7c3d5b33b49348e83534d4de300a1b0d55a62dc0195e19065cb0a3a5da72f50700e7b92d4579be795a899f680e2a8be7dd508532 WHIRLPOOL 9105ec12feca4b38a837501b6e65f046b2eeefca9bf117a65b73e94099e7d10e5213547bda1c7da09bba6540272d467cb362cebe61bb57436e47b7a1dab95a42 +AUX fetchmail.initd 993 SHA256 ddf1a95ebe33532fe53178029cef9989beb15caa484d1d82d41384b0013e1259 SHA512 06091152111059425e86207e968ad5819eb67cd2dd264855e7b77a163b95591abc29befe4b3eb8bf2d2af105efb5006bb048f3db4ef3f8f4fafbb78767f69ebb WHIRLPOOL 8a2f0c6c8f613ef92ecca098431a215672cf3f6a78c7acac65611d548f1aa74daefbbed0298f3e828f66be58e11eac70630adc8e877dee44aad4fd4a0b3b15ac +AUX fetchmail.service 204 SHA256 b76363eadbc7a4cc80719da0387507ccfdd18f134c65d6ae8a1e20430eb37756 SHA512 088d7ff2c473d4b514cc5349ba6f10bb7f29ace1141d152db082c801a9dd0e6144a2dd350e27e97f633aaf286c2daa5253e52b5c410737c44f3fd9b5b57bab75 WHIRLPOOL 883c10162088d36bc66b6100d33246e4869b1e488da08590ff83961347ce7a7eb73150724746c0fc33a77f70fb28a29a1d9227521deb84c2643a3e1a9e71d959 +AUX fetchmail_at.service 289 SHA256 9ad907a8c456e9f9135b6e425fe57259fd6c7f629dea3731c5e9b0b0be482a7a SHA512 4f8208a286f2868a466e69919b7c9d965da099b44675105689bcc52b0d16acc8d46e77f6b9a72968e82a6cf900e20d07a9a7373fe26a1ba9c925edf6663180ed WHIRLPOOL f2ac655454966d4ed92bee8e485d27bfe7ef2492406321fde70da848ac8216071b63a909633e46fab46abac8125254f393f0416577c186bd813553aa4eea9a9a +DIST fetchmail-6.3.26.tar.xz 1283816 SHA256 79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850 SHA512 8e0a2484e60eaf6c0231e2599e10fec6d207fa1c0fa02ec99b3ef9aea00b6d87275434e79470a25f06e358cdd4a293f9c46a82dd128fe733a99c85144e6caa63 WHIRLPOOL 275d7b121a7fcec239e074d2dadc8d1645633d7f8335d760ceba98042b8b3bfe67cdacb9e247a072a8c587f821b23f89c1c7e654fd171ad4372dbb69bcf1021a +EBUILD fetchmail-6.3.26-r2.ebuild 2462 SHA256 c2d6855a2b1475a34ca5fc0cb333605bae0ab7e27de814fd6e74470fb19f5f4f SHA512 2c1e61eff77d6f852686e29bdf80141ff416a8c875b53e47e383c40bcbe3a6cb0ffc2fa32ee12410aeb0ff2a13f7d100606675bd2eb240fcb71ccefd88f1ee5d WHIRLPOOL 66fb1c571e5215e078eee2e219026afbab4e1e679091d252784dbd3b2bcd0b582153be8d049bffea082b1b5703787bbec7d777140c17c1077b3d75bef0cba39e +EBUILD fetchmail-6.3.26-r3.ebuild 2529 SHA256 ff4fde237169eca7ae3affc6de677b2c90046895b5e099e231dee4eab41c7797 SHA512 701fd1fca24e49fa5be8387f125b2ba472e5856d89851b69d2dce3680a050d830fc211d7482ddca79d418a8c27ebb2f173f8a55b5aaaa083a1c2580f87fa7cae WHIRLPOOL 8bda730cfabbaa78a181730b96a39822c0bd33909fd5b741eaf9265f0afbe795d271ddbc2db2ff8dbbbc86c43a4392755a99e3c3f09aa2de0c78a4b3f5a3599e +MISC ChangeLog 2760 SHA256 5efdcc59e9e613e976437648e88ac9938454502f1d695c019ab64ae856b29819 SHA512 bfdb5d7abeb1685e60a536a354f40526c71db1450198eedaae2290d284d506f9bf3cf58747da63a10836f640bba5714f6d947939b5721b1126dbe810060f2dbd WHIRLPOOL 960904e1e4faa451fe9a6036729db08f52029830cc71a7642af0652d3b810f62600a56247caaee9ae26856fbf2a505b1d7577444cb9b1c68759898b3c5e15170 +MISC ChangeLog-2015 38353 SHA256 1dd9e96b9ccff1aa28c6f90c206326c0de56ab717db4f8036c09c1a105c1a0da SHA512 8bae65e98056a8e84cec370b8791feec075a7bf23db54dcba37f06e3a2e2c9c0b11b4b97c96f70fccd53a272df29d57942a49fbd87ee26c8df0b6ec429925092 WHIRLPOOL fc55fb54bb38267165cbbcb38ca269d4ae240ea90430c844b23135b52d84eeaca83db21284997a18d154f1d40b71020dd17da79369ff4b319ca4f93ad0b36c83 +MISC metadata.xml 570 SHA256 5490391a3e2533690f658512bb4f18ea3e10fc7e31d8bb6e541601590a1ca9cc SHA512 446f71d0bfbfc84d52d8f99ad13574976366edebcf38d14573056ab093cfe5406a6198e980430319e681d86dd33e9d96a390b744cd31b345681334232b8e949e WHIRLPOOL 3f89b90e11d51ad3f0cfab53f5ac159dabf6b77294c062f6ddaaf5659b5b5d2822bab5f9c16c59192e2dfff86002f6f91655f8a932da7699dab99b28de44bcc7 diff --git a/net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild b/net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild new file mode 100644 index 000000000000..3ba19eb6b659 --- /dev/null +++ b/net-mail/fetchmail/fetchmail-6.3.26-r2.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit python-single-r1 user systemd toolchain-funcs autotools eutils + +DESCRIPTION="the legendary remote-mail retrieval and forwarding utility" +HOMEPAGE="http://www.fetchmail.info/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +LICENSE="GPL-2 public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="ssl nls kerberos hesiod tk socks" +REQUIRED_USE="tk? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="hesiod? ( net-dns/hesiod ) + ssl? ( >=dev-libs/openssl-0.9.6 ) + kerberos? ( virtual/krb5 >=dev-libs/openssl-0.9.6 ) + nls? ( virtual/libintl ) + !elibc_glibc? ( sys-libs/e2fsprogs-libs ) + socks? ( net-proxy/dante ) + tk? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + app-arch/xz-utils + sys-devel/flex + nls? ( sys-devel/gettext )" + +DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + + use tk && python-single-r1_pkg_setup +} + +src_prepare() { + # don't compile during src_install + use tk && : > "${S}"/py-compile + + epatch "${FILESDIR}"/${P}-python-optional.patch + epatch "${FILESDIR}"/${P}-tests.patch + eautoreconf +} + +src_configure() { + use tk || 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) \ + $(use_with hesiod) \ + $(use_with socks) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + # fetchmail's homedir (holds fetchmail's .fetchids) + keepdir /var/lib/${PN} + fowners ${PN}:${PN} /var/lib/${PN} + fperms 700 /var/lib/${PN} + + default + + dohtml *.html + + newinitd "${FILESDIR}"/fetchmail.initd fetchmail + newconfd "${FILESDIR}"/fetchmail.confd fetchmail + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf + + docinto contrib + local f + for f in contrib/* ; do + [ -f "${f}" ] && dodoc "${f}" + done + + use tk && python_optimize +} + +pkg_postinst() { + 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 +} diff --git a/net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild b/net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild new file mode 100644 index 000000000000..eae9513c0d11 --- /dev/null +++ b/net-mail/fetchmail/fetchmail-6.3.26-r3.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit python-single-r1 user systemd toolchain-funcs autotools eutils + +DESCRIPTION="the legendary remote-mail retrieval and forwarding utility" +HOMEPAGE="http://www.fetchmail.info/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +LICENSE="GPL-2 public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="ssl nls kerberos hesiod tk socks" +REQUIRED_USE="tk? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="hesiod? ( net-dns/hesiod ) + ssl? ( >=dev-libs/openssl-0.9.6 ) + kerberos? ( virtual/krb5 >=dev-libs/openssl-0.9.6 ) + nls? ( virtual/libintl ) + !elibc_glibc? ( sys-libs/e2fsprogs-libs ) + socks? ( net-proxy/dante ) + tk? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + app-arch/xz-utils + sys-devel/flex + nls? ( sys-devel/gettext )" + +DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + + use tk && python-single-r1_pkg_setup +} + +src_prepare() { + # don't compile during src_install + use tk && : > "${S}"/py-compile + + epatch "${FILESDIR}"/${P}-python-optional.patch + epatch "${FILESDIR}"/${P}-tests.patch + eautoreconf +} + +src_configure() { + use tk || 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) \ + $(use_with hesiod) \ + $(use_with socks) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + # fetchmail's homedir (holds fetchmail's .fetchids) + keepdir /var/lib/${PN} + fowners ${PN}:${PN} /var/lib/${PN} + fperms 700 /var/lib/${PN} + + default + + dohtml *.html + + newinitd "${FILESDIR}"/fetchmail.initd fetchmail + newconfd "${FILESDIR}"/fetchmail.confd fetchmail + + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_newunit "${FILESDIR}"/${PN}_at.service "${PN}@.service" + systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf + + docinto contrib + local f + for f in contrib/* ; do + [ -f "${f}" ] && dodoc "${f}" + done + + use tk && python_optimize +} + +pkg_postinst() { + 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 +} diff --git a/net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch b/net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch new file mode 100644 index 000000000000..2eafe4dcbb24 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail-6.3.26-python-optional.patch @@ -0,0 +1,14 @@ +--- fetchmail-6.3.26/Makefile.am ++++ fetchmail-6.3.26/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) + diff --git a/net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch b/net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch new file mode 100644 index 000000000000..a0b3e8b5dfbb --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail-6.3.26-tests.patch @@ -0,0 +1,11 @@ +--- fetchmail-6.3.26/Makefile.am ++++ fetchmail-6.3.26/Makefile.am +@@ -45,7 +47,7 @@ + check_PROGRAMS= + + TESTS= t.smoke t.validate-xhtml10 t.validate-xhtml t.x509_name_match +-TESTS_ENVIRONMENT= srcdir="$(srcdir)" LC_ALL=C TZ=UTC SHELL="$(SHELL)" $(SHELL) ++TESTS_ENVIRONMENT= srcdir="$(srcdir)" LC_ALL=C TZ=UTC SHELL="$(SHELL)" + + if NEED_TRIO + noinst_LIBRARIES+= libtrio.a diff --git a/net-mail/fetchmail/files/fetchmail.conf b/net-mail/fetchmail/files/fetchmail.conf new file mode 100644 index 000000000000..07945f876468 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail.conf @@ -0,0 +1 @@ +d /run/fetchmail 700 fetchmail nobody diff --git a/net-mail/fetchmail/files/fetchmail.confd b/net-mail/fetchmail/files/fetchmail.confd new file mode 100644 index 000000000000..67feed2e6401 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail.confd @@ -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" diff --git a/net-mail/fetchmail/files/fetchmail.initd b/net-mail/fetchmail/files/fetchmail.initd new file mode 100644 index 000000000000..f967e5aed552 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail.initd @@ -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 ${?} +} + diff --git a/net-mail/fetchmail/files/fetchmail.service b/net-mail/fetchmail/files/fetchmail.service new file mode 100644 index 000000000000..954f06e27be0 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail.service @@ -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 diff --git a/net-mail/fetchmail/files/fetchmail_at.service b/net-mail/fetchmail/files/fetchmail_at.service new file mode 100644 index 000000000000..7e23bf1ed2a4 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail_at.service @@ -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 diff --git a/net-mail/fetchmail/metadata.xml b/net-mail/fetchmail/metadata.xml new file mode 100644 index 000000000000..f94033e0aa90 --- /dev/null +++ b/net-mail/fetchmail/metadata.xml @@ -0,0 +1,16 @@ + + + + + net-mail@gentoo.org + Net-Mail + + + Enable support for hesiod + Enable support for Tk GUI toolkit, in particular it installs fetchmailconf + Enable support for socks proxy + + + fetchmail + + -- cgit v1.2.3