From 4b83243ac98e518b23fe1a1b87503b37419fb49c Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Tue, 21 Jun 2016 17:34:24 +0200 Subject: New sympa release --- net-mail/sympa/Manifest | 4 +- net-mail/sympa/sympa-6.1.24.ebuild | 259 ------------------------------------- net-mail/sympa/sympa-6.1.25.ebuild | 259 +++++++++++++++++++++++++++++++++++++ 3 files changed, 261 insertions(+), 261 deletions(-) delete mode 100644 net-mail/sympa/sympa-6.1.24.ebuild create mode 100644 net-mail/sympa/sympa-6.1.25.ebuild (limited to 'net-mail') diff --git a/net-mail/sympa/Manifest b/net-mail/sympa/Manifest index 911bbe6..11fa9a5 100644 --- a/net-mail/sympa/Manifest +++ b/net-mail/sympa/Manifest @@ -13,9 +13,9 @@ AUX sympa-lighttpd_soap.conf 382 SHA256 4607711b4a759325ec6ede28a402bbc0f1c6f605 AUX sympa-nginx.conf 252 SHA256 dc364f1135c8cc9eecd8646f1bb9ea29b8fbce64de6ca884a85e248dabe1f669 SHA512 076900022f1d6c03e26301ed15514dc922a9ba9718c8a344722ad755c5caf0277daae944959f061445f58ef163d6d243670fb97b92f06e6370a1f8621762221f WHIRLPOOL 23f74cc4c2eb5555b9d46ed7f1222acc8e65d383cebaefad352abe717c1d84f4536a350237ca0c74508b376018160f8f0c027054482b12b025849c137e62cd3e 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.24.tar.gz 8135217 SHA256 3b1cde93d26a9b44c98d50b972d74dc58335ec4fbd8c777cba822aafc7b34113 SHA512 a93c81a08d32cef732fa86cc4ece44e7b5e9b3ece4e5d843f3ff9fbff13d8289315ce1405f515496a0756ae6bf336d6b4609a331f16c7c30167c0120310b3ecc WHIRLPOOL 128fea1b819fb296554e01b83b79be458bd43d7677a08d94f3edb00859e15a853aaf95834545b38c5bb39d97e8084e0a509b0725016f91f9fe31825864ca15c0 +DIST sympa-6.1.25.tar.gz 8002521 SHA256 14c3f5c2288385057a1baf035fdf925962a0b35462def3d3b1d90f0dce1efa7f SHA512 0a9c2d60ac0bcbeb1455399ebc92b8278a7dd8b2fcb7df05813f96daf954270ad0582e2edb99da0ab3d44da87173c8901165762a474239f62162232b15eaaa02 WHIRLPOOL d2a452227135875021896f62d5e289af7c76868b5fe123116e8be84ba44d218319d95072d2c6dab93e21125adb46b957e37cf585dd886674a337d3b897b72aa9 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.24.ebuild 7716 SHA256 56e177ca094f7877ee5ce1798473f7372e3d266799156674f363644aae2d36c1 SHA512 4125780540d601dfc6c3f20e5289c42776b2f77167ce9a5e7018d877ee96176affddc06154384a14dfb40d0e396c60cad208d7677664102a00c1f0d45c4d12d0 WHIRLPOOL 54eb4d51ab3fa3afa97af7f49ef2924a29b03444b4878c8a6d8ff173d08bc06277519dbbd4e6e89f249d2489d01b36a0fea95ccea424eae5cd9cd7a471ad8eaf +EBUILD sympa-6.1.25.ebuild 7716 SHA256 56e177ca094f7877ee5ce1798473f7372e3d266799156674f363644aae2d36c1 SHA512 4125780540d601dfc6c3f20e5289c42776b2f77167ce9a5e7018d877ee96176affddc06154384a14dfb40d0e396c60cad208d7677664102a00c1f0d45c4d12d0 WHIRLPOOL 54eb4d51ab3fa3afa97af7f49ef2924a29b03444b4878c8a6d8ff173d08bc06277519dbbd4e6e89f249d2489d01b36a0fea95ccea424eae5cd9cd7a471ad8eaf diff --git a/net-mail/sympa/sympa-6.1.24.ebuild b/net-mail/sympa/sympa-6.1.24.ebuild deleted file mode 100644 index ad7044a..0000000 --- a/net-mail/sympa/sympa-6.1.24.ebuild +++ /dev/null @@ -1,259 +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 nfs 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.35 - >=virtual/perl-DB_File-1.75 - >=virtual/perl-Digest-MD5-2.00 - virtual/perl-Encode - >=virtual/perl-MIME-Base64-3.03 - >=virtual/perl-Time-HiRes-1.29 - virtual/perl-libnet - >=dev-perl/Archive-Zip-1.05 - dev-perl/Data-Password - >=dev-perl/DBI-1.48 - >=dev-perl/File-Copy-Recursive-0.36 - dev-perl/HTML-Format - >=dev-perl/HTML-StripScripts-Parser-1.03 - dev-perl/HTML-Tree - dev-perl/IO-stringy - >=dev-perl/MIME-Charset-1.006.2 - >=dev-perl/MIME-EncWords-1.010 - >=dev-perl/MIME-Lite-HTML-1.23 - >=dev-perl/MIME-tools-5.423 - dev-perl/Net-DNS - >=dev-perl/Net-Netmask-1.901.500 - dev-perl/Template-Toolkit - >=dev-perl/Term-ProgressBar-2.09 - >=dev-perl/Unicode-LineBreak-2011.05 - >=dev-perl/URI-1.35 - dev-perl/XML-LibXML - dev-perl/libintl-perl - dev-perl/libwww-perl - >=net-mail/mhonarc-2.6.0 - clamav? ( app-antivirus/clamav ) - compat? ( >=dev-perl/Crypt-CipherSaber-0.50 ) - dkim? ( >=dev-perl/Mail-DKIM-0.36 ) - fastcgi? ( >=dev-perl/FCGI-0.67 ) - ldap? ( >=dev-perl/perl-ldap-0.27 ) - mysql? ( >=dev-perl/DBD-mysql-4.008 ) - nfs? ( dev-perl/File-NFSLock ) - postgres? ( >=dev-perl/DBD-Pg-0.90 ) - soap? ( >=dev-perl/SOAP-Lite-0.712 ) - sqlite? ( >=dev-perl/DBD-SQLite-0.90 ) - 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/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 - eautoreconf -} - -src_configure() { - econf \ - --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=/var/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 \ - --with-initdir=/usr/share/sympa/scripts \ - --with-defaultdir=/usr/share/sympa/default \ - --with-user=${SYMPA_USER} \ - --with-group=${SYMPA_GROUP} \ - --enable-fhs \ - $(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 /etc/sympa/wwsympa.conf - fperms u=rwX,g=rX,o= /etc/sympa/sympa.conf /etc/sympa/wwsympa.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 README.charset - - # 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/wwsympa.conf" - else - sed -i -r 's:^(\s*use_fast_cgi\s*).*:\10:' "${D}/etc/sympa/wwsympa.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 digest distribute expire \ - moderation msg outgoing qbounce static_content subscribe 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.1.25.ebuild b/net-mail/sympa/sympa-6.1.25.ebuild new file mode 100644 index 0000000..ad7044a --- /dev/null +++ b/net-mail/sympa/sympa-6.1.25.ebuild @@ -0,0 +1,259 @@ +# 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 nfs 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.35 + >=virtual/perl-DB_File-1.75 + >=virtual/perl-Digest-MD5-2.00 + virtual/perl-Encode + >=virtual/perl-MIME-Base64-3.03 + >=virtual/perl-Time-HiRes-1.29 + virtual/perl-libnet + >=dev-perl/Archive-Zip-1.05 + dev-perl/Data-Password + >=dev-perl/DBI-1.48 + >=dev-perl/File-Copy-Recursive-0.36 + dev-perl/HTML-Format + >=dev-perl/HTML-StripScripts-Parser-1.03 + dev-perl/HTML-Tree + dev-perl/IO-stringy + >=dev-perl/MIME-Charset-1.006.2 + >=dev-perl/MIME-EncWords-1.010 + >=dev-perl/MIME-Lite-HTML-1.23 + >=dev-perl/MIME-tools-5.423 + dev-perl/Net-DNS + >=dev-perl/Net-Netmask-1.901.500 + dev-perl/Template-Toolkit + >=dev-perl/Term-ProgressBar-2.09 + >=dev-perl/Unicode-LineBreak-2011.05 + >=dev-perl/URI-1.35 + dev-perl/XML-LibXML + dev-perl/libintl-perl + dev-perl/libwww-perl + >=net-mail/mhonarc-2.6.0 + clamav? ( app-antivirus/clamav ) + compat? ( >=dev-perl/Crypt-CipherSaber-0.50 ) + dkim? ( >=dev-perl/Mail-DKIM-0.36 ) + fastcgi? ( >=dev-perl/FCGI-0.67 ) + ldap? ( >=dev-perl/perl-ldap-0.27 ) + mysql? ( >=dev-perl/DBD-mysql-4.008 ) + nfs? ( dev-perl/File-NFSLock ) + postgres? ( >=dev-perl/DBD-Pg-0.90 ) + soap? ( >=dev-perl/SOAP-Lite-0.712 ) + sqlite? ( >=dev-perl/DBD-SQLite-0.90 ) + 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/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 + eautoreconf +} + +src_configure() { + econf \ + --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=/var/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 \ + --with-initdir=/usr/share/sympa/scripts \ + --with-defaultdir=/usr/share/sympa/default \ + --with-user=${SYMPA_USER} \ + --with-group=${SYMPA_GROUP} \ + --enable-fhs \ + $(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 /etc/sympa/wwsympa.conf + fperms u=rwX,g=rX,o= /etc/sympa/sympa.conf /etc/sympa/wwsympa.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 README.charset + + # 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/wwsympa.conf" + else + sed -i -r 's:^(\s*use_fast_cgi\s*).*:\10:' "${D}/etc/sympa/wwsympa.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 digest distribute expire \ + moderation msg outgoing qbounce static_content subscribe 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