From f8abf59fe474498d38e1654859f635389d780568 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Sun, 1 Feb 2015 12:56:09 +0100 Subject: Sympa version bump --- net-mail/sympa/Manifest | 4 +- net-mail/sympa/sympa-6.1.23.ebuild | 265 ------------------------------------- net-mail/sympa/sympa-6.1.24.ebuild | 265 +++++++++++++++++++++++++++++++++++++ 3 files changed, 267 insertions(+), 267 deletions(-) delete mode 100644 net-mail/sympa/sympa-6.1.23.ebuild create mode 100644 net-mail/sympa/sympa-6.1.24.ebuild (limited to 'net-mail') diff --git a/net-mail/sympa/Manifest b/net-mail/sympa/Manifest index 925b8ab..5cd8965 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.23.tar.gz 8133792 SHA256 3d15aa8816dafcc4017cc06e52def44d5461498a05e9ef7634498b0993234ae4 SHA512 269cb20d6d7adac61e3e1c9a0b5fdbc3944e944705bc1a1e7ddc9758267a4a1b89bd487a1164a7fa3b6cfcd67850378f35385686fb8ad75f857e5c001b9ea268 WHIRLPOOL a9eb19bdfc7adfa9c245c601cd530e8b9ab6825c25b5d5de3daf2b44f3135383d71958b50c03aff01d16a1e4a4efe9cb734673d18c9840dd56145a8840df5b42 +DIST sympa-6.1.24.tar.gz 8135217 SHA256 3b1cde93d26a9b44c98d50b972d74dc58335ec4fbd8c777cba822aafc7b34113 SHA512 a93c81a08d32cef732fa86cc4ece44e7b5e9b3ece4e5d843f3ff9fbff13d8289315ce1405f515496a0756ae6bf336d6b4609a331f16c7c30167c0120310b3ecc WHIRLPOOL 128fea1b819fb296554e01b83b79be458bd43d7677a08d94f3edb00859e15a853aaf95834545b38c5bb39d97e8084e0a509b0725016f91f9fe31825864ca15c0 EBUILD sympa-5.4.7.ebuild 7512 SHA256 897473c857453b9a8ea4c1ed6706dca07a164a9511d025ed13c01107265f6f42 SHA512 9c2a2dbc9be56e676b92d1359ac76967781bb00350e4acb430e4131497b4e5ad6af74d52e4d166e76815b1740ce77647a4e04f21e256563807d34d6b53446273 WHIRLPOOL 013077dab3084753d6d68bb7bc71eda191fa946d4d28b691919124e35da96d75b1217264b0434ad255a0db382beb8fbfe0dd8f59f86fbd7e22003ff0011031d2 EBUILD sympa-5.4.9999.ebuild 7501 SHA256 68a3cfc729341c4bdaea325d27c3457fa51a0fec8b41dc7c06826537650ac3ec SHA512 14c2f8f41452a986b416c5071a8250e5c1f914419a788d1890e27446945933665632c302975e9bf7d830606d4e77c9450d3454ef4d05331d24c1a6d3fd65ee5a WHIRLPOOL bce3c723c8060385a93d18db8feb8598e20934a260c0caaeb1a14d43e3822be24b6855b3d4edc3a64d6ab9ca5d78f84f57fc96ea7684a62cf6586a6020a57376 EBUILD sympa-6.0.6.ebuild 7845 SHA256 60cf9ab035d52608a249ec099d931fb620357eb6cf39c9108fc49c97a706715a SHA512 4734d52947fa9b855cdefb18c083cc53d1ea17c39e2ec637550751529c735d9e65e97006549b9d88abac11f6bc9a3729292fd4b523eb6bd81ae1daedcda54a79 WHIRLPOOL 3860900365e385f25f18eb5e288aae72bcd145a513afe36d13f026da15e619ba13f03dbf03589f665e31f35294a8b59eae7299f7207ab6f10d298a106e6ce6b5 EBUILD sympa-6.0.9999.ebuild 7834 SHA256 ff37a1b3c13f91dc4613cec2e7496c1e2816ec3b93cf7b27c80c0b0e721ea7c3 SHA512 86ada925d04165a5e2d577a1f60a757ee8c3bfc9b5779b80571c384334f51a8c1bb75afbdf75148b84c43f1538c9dec497230cab0a2e2a86daa89b818791a663 WHIRLPOOL 9119807ba90d8e358956d24e8e30ebb84cc40c871af5c8329d99d74d6cba09e6ba3940d9ade3a5e9556f040229630474cb963fadea8adc25b5684fa6c1196ccf -EBUILD sympa-6.1.23.ebuild 7958 SHA256 a46ea37c657f3985f87b348251f9ac0d06a513ab0a264d1994aff181e7c3508a SHA512 e1de1bad48d5ab0688f969c45e6dec94dd569c872eba3679c68cfee7a1078fccfb9459bd78ec442c6992ef606d39e617b45207b7b141c6499bf1774e67025b46 WHIRLPOOL e90309bf0d84899f20488e0af8a6e31674fb5b5353b26c9d9458911e77f8253e1a23da41479e2e2ad59099426b1e7c6b6310acb36cda1d90d42eeb94c017c1e0 +EBUILD sympa-6.1.24.ebuild 7958 SHA256 a46ea37c657f3985f87b348251f9ac0d06a513ab0a264d1994aff181e7c3508a SHA512 e1de1bad48d5ab0688f969c45e6dec94dd569c872eba3679c68cfee7a1078fccfb9459bd78ec442c6992ef606d39e617b45207b7b141c6499bf1774e67025b46 WHIRLPOOL e90309bf0d84899f20488e0af8a6e31674fb5b5353b26c9d9458911e77f8253e1a23da41479e2e2ad59099426b1e7c6b6310acb36cda1d90d42eeb94c017c1e0 diff --git a/net-mail/sympa/sympa-6.1.23.ebuild b/net-mail/sympa/sympa-6.1.23.ebuild deleted file mode 100644 index 6b12029..0000000 --- a/net-mail/sympa/sympa-6.1.23.ebuild +++ /dev/null @@ -1,265 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils user depend.apache 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/features.html" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~x86 ~amd64" -IUSE="apache2 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=" - ${DEPEND_APACHE} - >=dev-lang/perl-5.8 - >=virtual/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" || die "emake failed." -} - -src_install() { - - emake DESTDIR="${D}" install || die "emake install failed" - - # 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 || \ - die "newdoc failed" - newdoc "${FILESDIR}/${PN}-apache_soap.conf" apache_soap.conf || \ - die "newdoc failed" - newdoc "${FILESDIR}/${PN}-lighttpd.conf" lighttpd.conf ||\ - die "newdoc failed" - newdoc "${FILESDIR}/${PN}-lighttpd_soap.conf" lighttpd_soap.conf ||\ - die "newdoc failed" - newdoc "${FILESDIR}/${PN}-nginx.conf" nginx.conf ||\ - die "newdoc failed" -} - -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.24.ebuild b/net-mail/sympa/sympa-6.1.24.ebuild new file mode 100644 index 0000000..6b12029 --- /dev/null +++ b/net-mail/sympa/sympa-6.1.24.ebuild @@ -0,0 +1,265 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils user depend.apache 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/features.html" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~amd64" +IUSE="apache2 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=" + ${DEPEND_APACHE} + >=dev-lang/perl-5.8 + >=virtual/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" || die "emake failed." +} + +src_install() { + + emake DESTDIR="${D}" install || die "emake install failed" + + # 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 || \ + die "newdoc failed" + newdoc "${FILESDIR}/${PN}-apache_soap.conf" apache_soap.conf || \ + die "newdoc failed" + newdoc "${FILESDIR}/${PN}-lighttpd.conf" lighttpd.conf ||\ + die "newdoc failed" + newdoc "${FILESDIR}/${PN}-lighttpd_soap.conf" lighttpd_soap.conf ||\ + die "newdoc failed" + newdoc "${FILESDIR}/${PN}-nginx.conf" nginx.conf ||\ + die "newdoc failed" +} + +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