From 871ae105dab79818c2ab039bc0b9e134389c3d47 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Fri, 2 Jun 2023 08:40:22 +0200 Subject: Update info --- net-mail/sympa/Manifest | 2 +- net-mail/sympa/sympa-6.2.72.ebuild | 259 +++++++++++++++++++++++++++++++++++++ 2 files changed, 260 insertions(+), 1 deletion(-) create mode 100644 net-mail/sympa/sympa-6.2.72.ebuild (limited to 'net-mail') diff --git a/net-mail/sympa/Manifest b/net-mail/sympa/Manifest index 73bcc35..acf321c 100644 --- a/net-mail/sympa/Manifest +++ b/net-mail/sympa/Manifest @@ -6,5 +6,5 @@ AUX sympa-nginx.conf 252 BLAKE2B 51471cdc0151a10d86b396bb7d3ecca51508d53fbcce918 DIST sympa-6.2.70.tar.gz 13033808 BLAKE2B 2ba94fdba65f9bd3afe1f65a0d348136828c0f28b3ac453d3860aab3acd986032f084e6ba25055f08b2b88920dd27e2f1f7ca2e3f7e723222c0604b02ddab0fc SHA512 6508c74094b18dbf3cfa95c190af8c0452dd513d4c155568b1d77066e49de3dd16737c64dd185eeab0209f31fd09e9d524b849d041d00d54d798c5fbc9296da4 DIST sympa-6.2.72.tar.gz 13361403 BLAKE2B b79b82be4b9633df4effd2aa8fcdc4625f2e776c182ac49c3f061174ca4f8948c3f8a78c8497b83ab949ab47eb46c29e31124412d9c5ddab3cbf518afa732244 SHA512 413dc24e17d4ffbafa58b241d71922e541c411370301195c70b0a87d2ec529e04a8f04d084e39dcae32fa7d2987573fa673a1dc742c14c917b722ff24db76291 EBUILD sympa-6.2.70.ebuild 7427 BLAKE2B 6292033b47a4221eb6f6b28afaf1aca702fb7b3a8e207244612526d219472b3e443eb4ccaa43abd5e3ba4bb0bf978b3c034125a3ef1fb90b251cb97de4d59efd SHA512 7cae2a93b95facdec4eb66a4b9b9fafb70bbcf264bb5e15565b7c4d65404920aad7c72efb47ed6fad2392256c588e5bdfd2c6b7100533dd77bb80d9973cb0c38 -EBUILD sympa-6.2.72.ebuild 7427 BLAKE2B 6292033b47a4221eb6f6b28afaf1aca702fb7b3a8e207244612526d219472b3e443eb4ccaa43abd5e3ba4bb0bf978b3c034125a3ef1fb90b251cb97de4d59efd SHA512 7cae2a93b95facdec4eb66a4b9b9fafb70bbcf264bb5e15565b7c4d65404920aad7c72efb47ed6fad2392256c588e5bdfd2c6b7100533dd77bb80d9973cb0c38 +EBUILD sympa-6.2.72.ebuild 7443 BLAKE2B 74ce1b872be38893c7ef9118c7d593c9767f910a65db540e778d89ebdd3fc6e0a4535007d3c820765b02fde072a1759643d6820a3da32ae3b40699ea760c0f45 SHA512 3a821a82edc1f681884e3cbe9e76ce81cd2de6fea2d218f68b952fed106d3e318aae23997f8199218b7c9036b09f20e6da88090cf5836e60ec3d48ff4b146f78 MISC metadata.xml 557 BLAKE2B acec2d08bd6209195ef84b75d7f1ac3a6ee9ef935980249710bb50aa1df7f34bd60900a82f34b69ebbf334bf559e51cd87064445ffc73630cae764c2cfb036b6 SHA512 aa11862ddb6112b7a199222b7eb75d11d70110491ec0287419c38bb81f8f81ef7a98aaa284906910a08614e0757827bd7a6b7cd31ae603738ffd7ad213a7fbd0 diff --git a/net-mail/sympa/sympa-6.2.72.ebuild b/net-mail/sympa/sympa-6.2.72.ebuild new file mode 100644 index 0000000..280995c --- /dev/null +++ b/net-mail/sympa/sympa-6.2.72.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 "# systemctl restart clamd.service" + elog + fi + + ewarn "If you are upgrading from an earlier version please run:" + ewarn + ewarn "# sympa 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 upgrade" + ewarn + ewarn "to upgrade your data structures and" + ewarn + ewarn "# /usr/share/sympa/scripts/upgrade_sympa_password.pl" + ewarn + ewarn "to convert your passwords. When completed compat use flag" + ewarn "can be removed" +} -- cgit v1.2.3