summaryrefslogtreecommitdiff
path: root/net-mail
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@booking.com>2022-12-30 11:17:47 +0100
committerMarcin Deranek <marcin.deranek@booking.com>2022-12-30 11:20:31 +0100
commitaa66e62780b8e7dc2c6cc1fe283d98d837667341 (patch)
treeb6c464ffd7c845f1c23d0410c0c81bde1869fd83 /net-mail
parent3cbaea8952353b6668cb1134a5dab8c410c7c778 (diff)
downloadportage-aa66e62780b8e7dc2c6cc1fe283d98d837667341.tar.gz
portage-aa66e62780b8e7dc2c6cc1fe283d98d837667341.tar.bz2
portage-aa66e62780b8e7dc2c6cc1fe283d98d837667341.zip
net-mail/sympa version bump along with net-mail/mhonarc
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mhonarc/Manifest3
-rw-r--r--net-mail/mhonarc/metadata.xml12
-rw-r--r--net-mail/mhonarc/mhonarc-2.6.24.ebuild32
-rw-r--r--net-mail/sympa/Manifest2
-rw-r--r--net-mail/sympa/sympa-6.2.70.ebuild259
5 files changed, 308 insertions, 0 deletions
diff --git a/net-mail/mhonarc/Manifest b/net-mail/mhonarc/Manifest
new file mode 100644
index 0000000..9962087
--- /dev/null
+++ b/net-mail/mhonarc/Manifest
@@ -0,0 +1,3 @@
+DIST mhonarc-2.6.24.tar.gz 1955519 BLAKE2B fb657c01b3f71cd1b90d50dc213f490d72312083ae3c174d832591715c086206901bc1660ae9987ff7c5bdb7c131bc151923e5ce3086267a8887b663ef97da02 SHA512 bb3c4ee7c5dfd731513f1f7e4bcc92d0ae437975048c297812c93b3571fc560eb87ce60a929aa2fef0e2f1c9ad7a1ce3f3520d4724d3803f89c70e5869199b41
+EBUILD mhonarc-2.6.24.ebuild 908 BLAKE2B ecc235f4b11f01289ae19bd72d971b70e687a2f25083fa14c8007d49418faa0592299f0f786946591f597018a41c1c6acaabbacded35cb16a3e8b6c561f1c0ed SHA512 4665b25736eb5e708b05b6a8fef8d90b2eab4b4662bec7db04eb3e3ae591b3a4d0148b891a88c553ade46a26746911491b0a540f6179d03f5e743a58b6980d78
+MISC metadata.xml 414 BLAKE2B 9701c6503f74e845291dc0c13f4e35fa2ce4372bf487870c3a2b644c30384a815950c2d703e4d1057bc52f65bcaace47d30251d7befd67ab5b25a9c928032f5f SHA512 70f498ccfc04c5fc6f1e1c760d4dee79d0759038b6e9fb3228ed4e292dd14f4f4a20f9045368f94858ae231ab1c4ebbd0aab66ae17e6ef312a1d626eb25ba235
diff --git a/net-mail/mhonarc/metadata.xml b/net-mail/mhonarc/metadata.xml
new file mode 100644
index 0000000..f839628
--- /dev/null
+++ b/net-mail/mhonarc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marcin.deranek@slonko.net</email>
+ <name>Marcin Deranek</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/sympa-community/MHonArc/issues</bugs-to>
+ <remote-id type="github">sympa-community/MHonArc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-mail/mhonarc/mhonarc-2.6.24.ebuild b/net-mail/mhonarc/mhonarc-2.6.24.ebuild
new file mode 100644
index 0000000..ce77008
--- /dev/null
+++ b/net-mail/mhonarc/mhonarc-2.6.24.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit perl-module
+
+DESCRIPTION="Perl Mail-to-HTML Converter"
+HOMEPAGE="https://www.mhonarc.org/"
+SRC_URI="https://github.com/sympa-community/MHonArc/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ~ppc x86"
+# Warrants IUSE examples, and here it is + ? IUSE doc; see also extras folder with html docs
+IUSE="examples"
+
+S="${WORKDIR}/${P/mhonarc/MHonArc}"
+mydoc="README.txt"
+
+src_install() {
+ sed -e "s|-prefix |-docpath '${D}/usr/share/doc/${PF}/html' -prefix '${D}'|g" -i Makefile ||
+ die 'sed on Makefile failed'
+ sed -e "s|installsitelib|installvendorlib|g" -i install.me ||
+ die 'sed on install.me failed'
+ perl-module_src_install
+ if use examples; then
+ docompress -x usr/share/doc/${PF}/examples
+ insinto usr/share/doc/${PF}/
+ doins -r examples/
+ fi
+}
diff --git a/net-mail/sympa/Manifest b/net-mail/sympa/Manifest
index 4ae1230..50e0f0e 100644
--- a/net-mail/sympa/Manifest
+++ b/net-mail/sympa/Manifest
@@ -4,5 +4,7 @@ AUX sympa-apache.conf 372 BLAKE2B db8dc96e13cb022322137f79314c24f6724fc42b2ec66c
AUX sympa-lighttpd.conf 398 BLAKE2B 7a35e360cb546ec9151ec564a245bf62a9acbb1a9f56e3ad598e1fbdd8be1405a92c1bf623a575c29cb6b09f0cc235cc34d2a6ca7ae2f38197b6bb8e667eb4b4 SHA512 8c7811d7a82c9d77aea5d20dced41c394fc8d3ec3e46c898e519d19422e4cf3fc6edce9bc9065ecf9ce08f1775b03bfd5cfac07e1ba40a3beceb8e240ba99b33
AUX sympa-nginx.conf 252 BLAKE2B 51471cdc0151a10d86b396bb7d3ecca51508d53fbcce91804c2ffcfefd6ee9170502d2cc36519eb66570371150fafa81ae7ed991d38ba901e1c4248f806d06e5 SHA512 076900022f1d6c03e26301ed15514dc922a9ba9718c8a344722ad755c5caf0277daae944959f061445f58ef163d6d243670fb97b92f06e6370a1f8621762221f
DIST sympa-6.2.68.tar.gz 12997187 BLAKE2B 3627587f123c976926b57a054870dd442175fb99276ac6ac1cb31cf25b2d4c1036136109c16c5bb8dd22ea7e7735a7845bde7d290e0c9ed6ac2e3e832ac7cb24 SHA512 d7deae6d6a1529ec4052e5f257965a71e303a1a25ecf86c4eb7f3269e2b951b02a0824614961517fa24a4b0bd446e1df6ef51d64ca0484c0f3ac3c2e4c5fa106
+DIST sympa-6.2.70.tar.gz 13033808 BLAKE2B 2ba94fdba65f9bd3afe1f65a0d348136828c0f28b3ac453d3860aab3acd986032f084e6ba25055f08b2b88920dd27e2f1f7ca2e3f7e723222c0604b02ddab0fc SHA512 6508c74094b18dbf3cfa95c190af8c0452dd513d4c155568b1d77066e49de3dd16737c64dd185eeab0209f31fd09e9d524b849d041d00d54d798c5fbc9296da4
EBUILD sympa-6.2.68-r1.ebuild 7427 BLAKE2B 8936f1eaaf6eb27edf3aa18739aaedc0fe2ab85467189f268b458e6eacc82e62c7c34f027da2e0d340f2d9c19e9bffb1007e6035ebaafafa82330cfe5204c5a4 SHA512 f9666acc1dac7ea84c49ca39e22ffe0fba928467ea98c772067275462498d76efecd08cd4a25895b190c2bb6854ef47417e891c167434dca093ab6db75d5d7bc
+EBUILD sympa-6.2.70.ebuild 7427 BLAKE2B 6292033b47a4221eb6f6b28afaf1aca702fb7b3a8e207244612526d219472b3e443eb4ccaa43abd5e3ba4bb0bf978b3c034125a3ef1fb90b251cb97de4d59efd SHA512 7cae2a93b95facdec4eb66a4b9b9fafb70bbcf264bb5e15565b7c4d65404920aad7c72efb47ed6fad2392256c588e5bdfd2c6b7100533dd77bb80d9973cb0c38
MISC metadata.xml 556 BLAKE2B d1d8b31fd51246a42119586356b01699e5a57a72a08038944e3735042d345a7b91a39e06a804fb7a7fcc2493cf6ecd3c4d886da242831c407f2ac6fca8072b81 SHA512 c854b883759e46478f84843b0e48d29da97b4dc0570377d688d1937761bbe3158f6b43fe18da7084dd0b95d664b0e1b3a4574eebc433f8bbc947c2cbf587819a
diff --git a/net-mail/sympa/sympa-6.2.70.ebuild b/net-mail/sympa/sympa-6.2.70.ebuild
new file mode 100644
index 0000000..54c3781
--- /dev/null
+++ b/net-mail/sympa/sympa-6.2.70.ebuild
@@ -0,0 +1,259 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+SYMPA_VERSION="$(ver_cut 1-2)"
+SYMPA_RELEASE="$(ver_cut 3-)"
+
+if [[ ${SYMPA_VERSION} == "9999" ]] ; then
+ # Development version
+ SRC_URI=""
+ EGIT_REPO_URI="https://github.com/sympa-community/sympa"
+ inherit git-r3
+elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then
+ # Latest stable
+ EGIT_BRANCH="sympa-${SYMPA_VERSION}"
+ EGIT_REPO_URI="https://github.com/sympa-community/sympa"
+ inherit git-r3
+else
+ # Release
+ SRC_URI="https://github.com/sympa-community/sympa/releases/download/${PV}/${P}.tar.gz"
+fi
+
+DESCRIPTION="A feature-rich open source mailing list software"
+HOMEPAGE="https://www.sympa.community/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="clamav compat dkim fastcgi ldap mysql nls postgres soap sqlite ssl"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+ACCT_DEPEND="
+ acct-group/sympa
+ acct-user/sympa
+"
+RDEPEND="
+ ${ACCT_DEPEND}
+ >=dev-lang/perl-5.8
+ >=dev-perl/CGI-3.51
+ >=virtual/perl-Digest-MD5-2.00
+ virtual/perl-Encode
+ >=virtual/perl-File-Path-2.08
+ >=virtual/perl-MIME-Base64-3.03
+ >=virtual/perl-Scalar-List-Utils-1.20
+ >=virtual/perl-Sys-Syslog-0.03
+ >=virtual/perl-Time-HiRes-1.29
+ virtual/perl-libnet
+ >=dev-perl/Archive-Zip-1.05
+ >=dev-perl/Class-Singleton-1.03
+ >=dev-perl/Data-Password-1.07
+ >=dev-perl/DateTime-Format-Mail-0.28
+ >=dev-perl/DateTime-TimeZone-0.59
+ >=dev-perl/DBI-1.48
+ >=dev-perl/File-Copy-Recursive-0.36
+ dev-perl/File-NFSLock
+ >=dev-perl/HTML-StripScripts-Parser-1.30
+ dev-perl/HTML-Formatter
+ dev-perl/HTML-Tree
+ dev-perl/IO-stringy
+ >=dev-perl/MailTools-1.70
+ >=dev-perl/MIME-Charset-1.011.3
+ >=dev-perl/MIME-EncWords-1.014
+ >=dev-perl/MIME-Lite-HTML-1.230
+ >=dev-perl/MIME-tools-5.423
+ >=dev-perl/Net-CIDR-0.16
+ >=dev-perl/Net-DNS-0.65
+ >=dev-perl/Template-Toolkit-2.21
+ >=dev-perl/Term-ProgressBar-2.09
+ >=dev-perl/Unicode-LineBreak-2011.05
+ >=dev-perl/Unicode-CaseFold-0.02
+ >=dev-perl/URI-1.35
+ >=dev-perl/XML-LibXML-1.70
+ >=dev-perl/libintl-perl-1.20
+ dev-perl/libwww-perl
+ >=net-mail/mhonarc-2.6.24
+ clamav? ( app-antivirus/clamav )
+ compat? ( >=dev-perl/Crypt-CipherSaber-0.50 )
+ dkim? ( >=dev-perl/Mail-DKIM-0.37 )
+ fastcgi? (
+ >=dev-perl/FCGI-0.67
+ >=dev-perl/CGI-Fast-1.08
+ )
+ ldap? ( >=dev-perl/perl-ldap-0.40 )
+ mysql? ( >=dev-perl/DBD-mysql-4.008 )
+ postgres? ( >=dev-perl/DBD-Pg-2.0 )
+ soap? ( >=dev-perl/SOAP-Lite-0.712 )
+ sqlite? ( >=dev-perl/DBD-SQLite-1.31 )
+ ssl? (
+ >=dev-perl/IO-Socket-SSL-0.90
+ dev-libs/openssl
+ )
+ virtual/mta
+ "
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ "
+
+PATCHES=( "${FILESDIR}/${PN}-${SYMPA_VERSION}"-sqlite-lowercase.patch )
+
+src_prepare() {
+ default
+ # Override defaults for certain options, so
+ # Sympa won't complain about conflicting paths
+ sed -i -e "/'queuebounce'/,/}/ s|'/bounce'|'/qbounce'|" src/lib/Sympa/ConfDef.pm || die
+ # Gentoo specific: redefine some defaults
+ sed -i -e 's|^\(\s*bouncedir=\).*|\1/var/spool/sympa/bounce|' \
+ -e 's|^\(\s*arcdir=\).*|\1/var/spool/sympa/arc|' \
+ configure.ac || die
+ # Do not create runtime directories
+ sed -i -e 's| $(piddir) | |' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-fhs \
+ --prefix=/usr \
+ --libdir=/usr/$(get_libdir)/sympa \
+ --libexec=/usr/libexec/sympa \
+ --localstatedir=/var \
+ --docdir=/usr/share/doc/${P} \
+ --with-localedir=/usr/share/locale \
+ --sysconfdir=/etc/sympa \
+ --with-confdir=/etc/sympa \
+ --with-piddir=/run/sympa \
+ --with-spooldir=/var/spool/sympa \
+ --with-staticdir=/var/spool/sympa/static_content \
+ --with-cssdir=/var/spool/sympa/static_content/css \
+ --with-picturesdir=/var/spool/sympa/static_content/pictures \
+ --with-modulesdir=/usr/$(get_libdir)/sympa \
+ --with-cgidir=/usr/libexec/sympa \
+ --with-expldir=/var/lib/sympa/lists \
+ --with-scriptdir=/usr/share/sympa/scripts \
+ --without-initdir \
+ --with-unitsdir=/usr/lib/systemd/system \
+ --with-defaultdir=/usr/share/sympa/default \
+ --with-user=sympa \
+ --with-group=sympa \
+ --disable-setuid \
+ $(use_enable nls) \
+ || die "econf failed"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} -Wl,-z,now"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # Do not overwrite data_structure.version
+ rm -f "${D}/etc/sympa/data_structure.version"
+
+ # Docs
+ dodoc AUTHORS.md CONTRIBUTING.md INSTALL.md NEWS.md README.md
+
+ # Startup script
+ newinitd "${FILESDIR}/${PN}-${SYMPA_VERSION}.initd" "${PN}"
+
+ # Set proper fastcgi flag
+ if use fastcgi; then
+ sed -i -r 's:^(\s*use_fast_cgi\s*).*:\11:' "${D}/etc/sympa/sympa.conf"
+ else
+ sed -i -r 's:^(\s*use_fast_cgi\s*).*:\10:' "${D}/etc/sympa/sympa.conf"
+ fi
+ # Update antivirus config
+ if use clamav; then
+ sed -i -r \
+ -e 's:^#?\s*antivirus_path\s*/.*:antivirus_path /usr/bin/clamscan:' \
+ -e 's:^#?\s*antivirus_args\s*.*:antivirus_args --stdout:' \
+ "${D}/etc/sympa/sympa.conf"
+ else
+ sed -i -r \
+ -e 's:^(\s*antivirus_path\s*/.*):#\1:' \
+ -e 's:^(\s*antivirus_args\s*.*):#\1:' \
+ "${D}/etc/sympa/sympa.conf"
+ fi
+ # Update openssl config
+ if use ssl; then
+ sed -i -r \
+ -e 's:^#?\s*openssl\s*/.*:openssl /usr/bin/openssl:' \
+ -e 's:^#?\s*capath\s*/.*:capath /etc/ssl/certs:' \
+ -e 's:^#?\s*cafile\s*/.*:cafile /etc/ssl/certs/ca-certificates.crt:' \
+ "${D}/etc/sympa/sympa.conf"
+ else
+ sed -i -r \
+ -e 's:^(\s*openssl\s*/.*):#\1:' \
+ -e 's:^(\s*capath\s*/.*):#\1:' \
+ -e 's:^(\s*cafile\s*/.*):#\1:' \
+ "${D}/etc/sympa/sympa.conf"
+ fi
+ # Queue dirs
+ keepdir /var/spool/sympa
+ local SYMPA_DIRS="arc auth automatic bounce bulk digest moderation msg \
+ outgoing qbounce static_content static_content/css \
+ static_content/pictures task tmp topic viewmail"
+ local DIR
+ for DIR in ${SYMPA_DIRS}; do
+ keepdir /var/spool/sympa/${DIR}
+ fowners sympa:sympa /var/spool/sympa/${DIR}
+ case "${DIR}" in
+ static_content*)
+ fperms 755 /var/spool/sympa/${DIR}
+ ;;
+ *)
+ fperms 750 /var/spool/sympa/${DIR}
+ ;;
+ esac
+ done
+ keepdir /var/lib/sympa
+ keepdir /var/lib/sympa/lists
+
+ newdoc "${FILESDIR}/${PN}-apache.conf" apache.conf
+ newdoc "${FILESDIR}/${PN}-lighttpd.conf" lighttpd.conf
+ newdoc "${FILESDIR}/${PN}-nginx.conf" nginx.conf
+}
+
+pkg_postinst() {
+ elog
+ elog "You need to create a database with associated database account"
+ elog "prior to use Sympa. That account will need general"
+ elog "access privileges to the Sympa database."
+ elog
+ elog "The Sympa web interface needs to be setup in your webserver."
+ elog "For more information please consult Sympa documentation at"
+ elog "https://www.sympa.org/manual/install/configure-http-server.md"
+ elog "Sample configs are installed in /usr/share/doc/${P}"
+ elog
+
+ if use clamav; then
+ elog "By default we use clamscan antivirus scanner"
+ elog "(antivirus_path option in sympa.conf). For performance"
+ elog "reason you might want to use clamdscan which is much faster."
+ elog "To use it you need to do the following:"
+ elog
+ elog "# gpasswd -a clamav sympa"
+ elog "# /etc/init.d/clamd restart"
+ elog
+ fi
+
+ ewarn "If you are upgrading from an earlier version please run:"
+ ewarn
+ ewarn "# sympa.pl --upgrade"
+ ewarn
+ ewarn "If you are upgrading from version 5.x make sure"
+ ewarn "compat use flag is set while emerging, then run:"
+ ewarn
+ ewarn "# sympa.pl --upgrade"
+ ewarn
+ ewarn "to upgrade your data structures and"
+ ewarn
+ ewarn "# sympa.pl --md5_encode_password"
+ ewarn
+ ewarn "to convert your passwords. When completed compat use flag"
+ ewarn "can be removed"
+}