From e4557b9bf90b58716a43e9daa20f60a19d87b42d Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Sat, 16 Dec 2017 09:01:06 +0100 Subject: Version bump --- net-mail/sympa/Manifest | 4 +- net-mail/sympa/sympa-6.2.16.ebuild | 272 ------------------------------------- net-mail/sympa/sympa-6.2.22.ebuild | 272 +++++++++++++++++++++++++++++++++++++ 3 files changed, 274 insertions(+), 274 deletions(-) delete mode 100644 net-mail/sympa/sympa-6.2.16.ebuild create mode 100644 net-mail/sympa/sympa-6.2.22.ebuild (limited to 'net-mail') diff --git a/net-mail/sympa/Manifest b/net-mail/sympa/Manifest index 8405c49..ce9a590 100644 --- a/net-mail/sympa/Manifest +++ b/net-mail/sympa/Manifest @@ -17,10 +17,10 @@ AUX sympa-nginx.conf 252 SHA256 dc364f1135c8cc9eecd8646f1bb9ea29b8fbce64de6ca884 DIST sympa-5.4.7.tar.gz 6622044 SHA256 f35e123fbe4cf296893e90f06565f32ffbf54805af076e77c525f9a932a530a4 SHA512 73e3bf3eb39e46b172970306068606a1d039877358fdc0b3edeaeb7d06f85091d80f4e4e55e48efe30a1e5ee7ba1d35d6ca9db9bc4e86efbc1d94363519e2c2a WHIRLPOOL 374542fd4f5d66c373e01db507adc1fb4d076484feeeac62a6d3b77f6098b57998f1fc847e0bc569b20b19c90f07436b38809bbbd361d02f935360ac979fbf32 DIST sympa-6.0.6.tar.gz 6731221 SHA256 8af9c4f8518b7f41a6a46f50fd39e8382b4d2451389d80f6fda2ab112abc8c45 SHA512 d34eced0d268903bc089b9b0a4ac2d79459b9274dead37b9ebeb64c72b7258b7d3e3eda949d897c384043bf2e39b7761ac9452075efa5612ce42f8066794692d WHIRLPOOL 6a98686c866939036c9661e5567cead0319ab9737fbe654a52a3a775e2358674d83c85f35bad581964c2b7c00d5e198828fa1cd3a5a44d0feddd571da7c72e0a DIST sympa-6.1.25.tar.gz 8002521 SHA256 14c3f5c2288385057a1baf035fdf925962a0b35462def3d3b1d90f0dce1efa7f SHA512 0a9c2d60ac0bcbeb1455399ebc92b8278a7dd8b2fcb7df05813f96daf954270ad0582e2edb99da0ab3d44da87173c8901165762a474239f62162232b15eaaa02 WHIRLPOOL d2a452227135875021896f62d5e289af7c76868b5fe123116e8be84ba44d218319d95072d2c6dab93e21125adb46b957e37cf585dd886674a337d3b897b72aa9 -DIST sympa-6.2.16.tar.gz 11841761 SHA256 9fc09c6fd757fa5aadf356c331479836b8b3a1cd50a9e1609f3cd28bd4381b90 SHA512 ad88ff89a7ed6cf254577abce21449e1ab88e2ac8f8dfc13166497ba4e6de7103addadb09e95010ee716976709a6ac6925564f7a663364f9c6d547c2260e8a97 WHIRLPOOL 356cdc402b878e81091eefd59e74daed5d5bee2770444133ea31fa53901af85e51d7237be5e2997f7c00a627c7804ee4c25424f456ad5ac3802e463724629a33 +DIST sympa-6.2.22.tar.gz 12469435 SHA256 21f5e90f5f911c7f8d24b88b0cf45668545da5b45b7cf30138ba144eace6c8b7 SHA512 844b4d4b22421bc9ea624f5a0d95139375cb2eefe3dd5b736b44a221fbd33e11e9a56897e7c3e5a752202f3f0f85cbe68e5c1eddac18c601216516ac3dbd8463 WHIRLPOOL fc4035ce6dc88fade34594dc447358bba44b1b4a25500a3d010225ee19d9c24a03a661988ccd598a094d9a6219a08ccdc1989b52e9fadc45878a725708aa9802 EBUILD sympa-5.4.7.ebuild 7508 SHA256 faff73c9bc9b25eaf9bd8cd19d7339520272f02460298304030979fc3b1b1564 SHA512 8ae16a1e78ce5f02aac5fbcc18da8cdf7d3b4e24582dae18a376637ecf3d85c87ec832a50656ed098c531174a62e0f731e0bf8d88dc6a426d6bcb0af9a2c233d WHIRLPOOL 4b259173c0efc92b46ebd5243a10e4660ea5a466c8df81fed36d9d407b1f56b506829065f34097263b41a043b2dbffa0f3a4c43d591835a9932c256196121134 EBUILD sympa-5.4.9999.ebuild 7497 SHA256 42c7a33951c471556a283fc8a36cf47a62431c14bd19c80a957545838cf8ef14 SHA512 bb1d1e4490cc03ad58643852ba770ae4a932a948c377e3e9e64d8293b0dd658f48e01c9e9522105da6a24724b63d1031e10f3588bac64219201515fb45fe250e WHIRLPOOL 64851733773a73578ae1b21d388add31e9a85845f4abd1c6c5c83ba09184a495b7c8515d767ec6127ee9b4837de5d7477efecfa94234160fe7d459655af184f4 EBUILD sympa-6.0.6.ebuild 7841 SHA256 7c5bea14724562e018ef945ca2f33132f837f7c5a08be31370a149a4452cbd2d SHA512 ea289a7ba67839b1b6156680148d27b8418d1ccbcc8ad1d76430114aa5fabfd69481d161ded0e78367aef62f93f533e9026c32ef5c8212e44f04f9b239dcfa64 WHIRLPOOL 6415bf2c34981c3b49da9affff6deac52e4c7734bef5a06de149967e97cffd562f210bf67869429003568678cbde1747af86ef170bb045d10fc6e1b266a7c60b EBUILD sympa-6.0.9999.ebuild 7830 SHA256 4a63bb61f3541daaa3098d8ee5356cfaa2f063e253fc75feaa3e00f15f14557d SHA512 b5512dce1e16ad45b6b9993d540ef0c29a181db8489f632e8b4fd288820804de32c53c2d0ba0d99ede05118cb971567a82498295f31e3a4fc99d0eeca482bf59 WHIRLPOOL 375557b8f6efea011f5524f5fd2f23f5a6d7c56638b11ec730f1c23e9a1bd650774d91648da924fafed412e55f10a14deca2281af78e4d881a86b5f2d9a5f494 EBUILD sympa-6.1.25.ebuild 7835 SHA256 f4e1e669ce43016391a66b32c232d1043d0e9e5593a829c056bc17776643d663 SHA512 508cdbae5a70b798d3eec29f0bb66c67510db3384cfb3d3e0825bcf1d8f3a333d11c9f30f04d34a7097ba914307346755b92b86a27d94cd9a132af079ad36f19 WHIRLPOOL c7bd4ccd1ba02d5aaa5f9580f764148a54e319e1334582d910f46275e2bc1c42bad3dc94675d966e94cf4fe329346f1884fdea765e8edb705bb008d6488363e2 -EBUILD sympa-6.2.16.ebuild 8013 SHA256 74388d1ccbf04c2829b072193de1c62c2e3079af91ea91bb3982d4ef904f55a5 SHA512 d04fe4c3038af2f1a4e5090c69dc3870db1bab44adc802cfb547305a36efc6351cfc48ea4ab0b8904b51bc04d965f3e0234b33fc4bbc7d9dc4670f06d877f1b1 WHIRLPOOL 075bf5148bd7283b838eea9845bfc076d7e5c5428f454a73d649e5af10db8e4199f1f7dd24e2b80524851e6a97280a15410c24efff08e695ae0f3293b61a14b0 +EBUILD sympa-6.2.22.ebuild 8013 SHA256 74388d1ccbf04c2829b072193de1c62c2e3079af91ea91bb3982d4ef904f55a5 SHA512 d04fe4c3038af2f1a4e5090c69dc3870db1bab44adc802cfb547305a36efc6351cfc48ea4ab0b8904b51bc04d965f3e0234b33fc4bbc7d9dc4670f06d877f1b1 WHIRLPOOL 075bf5148bd7283b838eea9845bfc076d7e5c5428f454a73d649e5af10db8e4199f1f7dd24e2b80524851e6a97280a15410c24efff08e695ae0f3293b61a14b0 diff --git a/net-mail/sympa/sympa-6.2.16.ebuild b/net-mail/sympa/sympa-6.2.16.ebuild deleted file mode 100644 index 6c12c01..0000000 --- a/net-mail/sympa/sympa-6.2.16.ebuild +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils user multilib autotools versionator - -SYMPA_VERSION="$(get_version_component_range 1-2)" -SYMPA_RELEASE="$(get_version_component_range 3-)" - -if [[ ${SYMPA_VERSION} == "9999" ]] ; then - # Development version - ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" - inherit subversion -elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - # Latest stable - ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" - inherit subversion -else - # Release - SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" -fi - -DESCRIPTION="A feature-rich open source mailing list software" -HOMEPAGE="http://www.sympa.org/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64" -IUSE="clamav -compat dkim fastcgi ldap mysql nls postgres soap sqlite ssl" -REQUIRED_USE="|| ( mysql postgres sqlite )" - -# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules -RDEPEND=" - >=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-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.18 - 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 - " - -SYMPA_USER="sympa" -SYMPA_GROUP="sympa" - -pkg_setup() { - enewgroup ${SYMPA_GROUP} - enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} -} - -src_unpack() { - if [[ ${SYMPA_VERSION} == "9999" ]] ; then - subversion_src_unpack - elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then - subversion_src_unpack - else - unpack ${A} - cd ${S} - fi - cd ${S} - # 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 - # Gentoo specific: redefine some defaults - sed -i -e 's|^\(\s*staticdir=\).*|\1/var/spool/sympa/static_content|' \ - -e 's|^\(\s*bouncedir=\).*|\1/var/spool/sympa/bounce|' \ - -e 's|^\(\s*arcdir=\).*|\1/var/spool/sympa/arc|' \ - configure.ac - # Do not create runtime directories - sed -i -e 's| $(piddir) | |' Makefile.am - # Fix SQLite upgrade - epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.sqlite.upgrade.patch - 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-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_USER} \ - --with-group=${SYMPA_GROUP} \ - $(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" - # Set permissions and ownership on config files - fowners root:${SYMPA_GROUP} /etc/sympa/sympa.conf - fperms u=rwX,g=rX,o= /etc/sympa/sympa.conf - # Elevate some permissions to read config files - fperms g+s /usr/libexec/sympa/{bouncequeue,familyqueue,queue} - - # Docs - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README etc_README - - # 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 task tmp topic" - local DIR - for DIR in ${SYMPA_DIRS}; do - keepdir /var/spool/sympa/${DIR} - fowners ${SYMPA_USER}:${SYMPA_GROUP} /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}-apache_soap.conf" apache_soap.conf - newdoc "${FILESDIR}/${PN}-lighttpd.conf" lighttpd.conf - newdoc "${FILESDIR}/${PN}-lighttpd_soap.conf" lighttpd_soap.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 "http://www.sympa.org/manual/web-interface#web_server_setup" - 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" -} diff --git a/net-mail/sympa/sympa-6.2.22.ebuild b/net-mail/sympa/sympa-6.2.22.ebuild new file mode 100644 index 0000000..6c12c01 --- /dev/null +++ b/net-mail/sympa/sympa-6.2.22.ebuild @@ -0,0 +1,272 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils user multilib autotools versionator + +SYMPA_VERSION="$(get_version_component_range 1-2)" +SYMPA_RELEASE="$(get_version_component_range 3-)" + +if [[ ${SYMPA_VERSION} == "9999" ]] ; then + # Development version + ESVN_REPO_URI="http://svn.cru.fr/sympa/trunk" + inherit subversion +elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then + # Latest stable + ESVN_REPO_URI="http://svn.cru.fr/sympa/branches/sympa-${SYMPA_VERSION}-branch" + inherit subversion +else + # Release + SRC_URI="http://www.sympa.org/distribution/${P}.tar.gz http://www.sympa.org/distribution/old/${P}.tar.gz" +fi + +DESCRIPTION="A feature-rich open source mailing list software" +HOMEPAGE="http://www.sympa.org/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~amd64" +IUSE="clamav -compat dkim fastcgi ldap mysql nls postgres soap sqlite ssl" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +# See http://www.sympa.org/manual/installing-sympa#required_cpan_modules +RDEPEND=" + >=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-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.18 + 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 + " + +SYMPA_USER="sympa" +SYMPA_GROUP="sympa" + +pkg_setup() { + enewgroup ${SYMPA_GROUP} + enewuser ${SYMPA_USER} -1 -1 -1 ${SYMPA_GROUP} +} + +src_unpack() { + if [[ ${SYMPA_VERSION} == "9999" ]] ; then + subversion_src_unpack + elif [[ ${SYMPA_RELEASE} == "9999" ]] ; then + subversion_src_unpack + else + unpack ${A} + cd ${S} + fi + cd ${S} + # 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 + # Gentoo specific: redefine some defaults + sed -i -e 's|^\(\s*staticdir=\).*|\1/var/spool/sympa/static_content|' \ + -e 's|^\(\s*bouncedir=\).*|\1/var/spool/sympa/bounce|' \ + -e 's|^\(\s*arcdir=\).*|\1/var/spool/sympa/arc|' \ + configure.ac + # Do not create runtime directories + sed -i -e 's| $(piddir) | |' Makefile.am + # Fix SQLite upgrade + epatch ${FILESDIR}/${PN}-${SYMPA_VERSION}.sqlite.upgrade.patch + 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-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_USER} \ + --with-group=${SYMPA_GROUP} \ + $(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" + # Set permissions and ownership on config files + fowners root:${SYMPA_GROUP} /etc/sympa/sympa.conf + fperms u=rwX,g=rX,o= /etc/sympa/sympa.conf + # Elevate some permissions to read config files + fperms g+s /usr/libexec/sympa/{bouncequeue,familyqueue,queue} + + # Docs + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README etc_README + + # 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 task tmp topic" + local DIR + for DIR in ${SYMPA_DIRS}; do + keepdir /var/spool/sympa/${DIR} + fowners ${SYMPA_USER}:${SYMPA_GROUP} /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}-apache_soap.conf" apache_soap.conf + newdoc "${FILESDIR}/${PN}-lighttpd.conf" lighttpd.conf + newdoc "${FILESDIR}/${PN}-lighttpd_soap.conf" lighttpd_soap.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 "http://www.sympa.org/manual/web-interface#web_server_setup" + 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" +} -- cgit v1.2.3