diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2013-05-31 00:32:20 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2013-05-31 00:32:20 +0000 |
commit | 25f004efaa6d7e9bd6d999423846c0d6d2a83319 (patch) | |
tree | 5454b9dc3da0f82f0e96ea83c7bc7dd7101984ed /net-mail/vpopmail | |
parent | Add fix for security issue from bug #269129, and fix compile with vpopmail-5.... (diff) | |
download | historical-25f004efaa6d7e9bd6d999423846c0d6d2a83319.tar.gz historical-25f004efaa6d7e9bd6d999423846c0d6d2a83319.tar.bz2 historical-25f004efaa6d7e9bd6d999423846c0d6d2a83319.zip |
Bug #277764: fix parallel install. Bug #377939: postgres support. Bug #437640: *bsd support.
Package-Manager: portage-2.2.0_alpha177/cvs/Linux x86_64
Diffstat (limited to 'net-mail/vpopmail')
-rw-r--r-- | net-mail/vpopmail/ChangeLog | 9 | ||||
-rw-r--r-- | net-mail/vpopmail/Manifest | 4 | ||||
-rw-r--r-- | net-mail/vpopmail/files/vpopmail-vpgsql.patch | 94 | ||||
-rw-r--r-- | net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild | 252 |
4 files changed, 357 insertions, 2 deletions
diff --git a/net-mail/vpopmail/ChangeLog b/net-mail/vpopmail/ChangeLog index df8a035ae090..694d226b2e0c 100644 --- a/net-mail/vpopmail/ChangeLog +++ b/net-mail/vpopmail/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-mail/vpopmail # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v 1.109 2013/05/30 23:21:24 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v 1.110 2013/05/31 00:32:09 robbat2 Exp $ + +*vpopmail-5.4.33-r1 (31 May 2013) + + 31 May 2013; Robin H. Johnson <robbat2@gentoo.org> + +files/vpopmail-vpgsql.patch, +vpopmail-5.4.33-r1.ebuild: + Bug #277764: fix parallel install. Bug #377939: postgres support. Bug #437640: + *bsd support. 30 May 2013; Robin H. Johnson <robbat2@gentoo.org> vpopmail-5.4.33.ebuild: Fix build with new automake/aclocal. Also bug #343341: _FORTIFY_SOURCE. diff --git a/net-mail/vpopmail/Manifest b/net-mail/vpopmail/Manifest index d43a3553105f..32c4a4fe7882 100644 --- a/net-mail/vpopmail/Manifest +++ b/net-mail/vpopmail/Manifest @@ -3,12 +3,14 @@ AUX vpopmail-5.4.9-access.violation.patch 918 SHA256 cf6840d7dc6131969ef5a69b1d5 AUX vpopmail-Maildir-dotmaildir-fix.sh 1480 SHA256 de2100c8f56116591870b55f953ae3358c0f65d1920d5acda3c1c00bc5c10085 SHA512 982e30f3c6bd6a11316460d71ef9c2bdc687108de1529b6016a2ffaf7136fa2c3636935b46ae6ed9864148cd09623eb149fe33e5bef2451dceb5e23e7e1a505a WHIRLPOOL 18426a981a2534ad9fdc390f672cbec1482a60f55da148c7fbbe747ac52e7490eb6c1afe9645a115ff7cf07cc0a8239419900d1213c6e4990287fa4d1e123b7f AUX vpopmail-double-free.patch 411 SHA256 30baf7ccd16af5ab375e03b56764c367f589f0cf1e0535fcc98b5c591829b055 SHA512 f12c29172e0bf0da173847c30db552dfb49e437805c74e0d03064dffb7a1bf71b0d897a5f13d019fd25cb103e394f0f869778de42288e6c6cc3e8612037b5190 WHIRLPOOL 8678656496fdea52e9f40ed3da113ac7c71cd24371e87108bd6bf9800ed55ecc392f044ff33ca694852772b6e815c6e167a5a3c0ec9dcc70e1bc31f840597820 AUX vpopmail-lazy.patch 324 SHA256 aa1f8123433b82cdae554c943c8731359e226c598cea22496fdd63a11ab58fc4 SHA512 42f1e24ee850b9e858a271d734246981c506d74556a62d0124ebe8e842553e32e57603975545d8f49d76e3cca832a73ef61ef191a0a1cf07f9343fe609ecc0c5 WHIRLPOOL 6a00bc14728d58f49257350312950ac32aa8f9689fd1e53105da50464b32ea54f862411def1771a4a597681ab97c88463a4e05c892841c447b428789eb67eeda +AUX vpopmail-vpgsql.patch 2666 SHA256 fdd5bed1b568b6a5ca7eaeccc2e41e873828e215dac465e72e12a3c4696a47b9 SHA512 a8067aabfac181637f1366be0215c885ad380e44bbae1a69f9b0438b0a99cd194c2ce2068acf25142c9bfe6623ca8a77b1a9b82790f7faeb6e921c20cd1c1e20 WHIRLPOOL f771ae0758f783090b902b349ab1405522325ee90bf16a9bbf9b979fd9d43190ded495cca09e7c14339b8f58652dc445b41f7204a7bde036f6514bd0a7ed18f9 DIST vpopmail-5.4.16.tar.gz 453019 SHA256 c1ea76e404082a116795dc3c49933b26f79cdbb49bca5ebc4fa170403a5e3c7a SHA512 a7ce5640a59ee7f216869d08cb681eb323910f4fd7dcc9f644fe9bcb842c6703745edbbd5bb95ab44dc59b4684a8e29b115a3aeb893ef7514fdc28eab46328d0 WHIRLPOOL 10bc8c4f05b11cabaaf69e49f42006bd8b46d671f189c4e5d8258e3fb88bffb76e086398792dc655b3a02d6f59efcb48727602b50273138a3b35940725faeba3 DIST vpopmail-5.4.30.tar.gz 609358 SHA256 38239ca6f9dda25f70cc46106f3ffe8b9d3b95907ced54c15eb942c2ff387acc SHA512 62bb677cb2f928d37fff1346a7aa7a6f9f7900159d1edcf0f471bf252c59f19e2b8605c27033e9123339a75dc4058b4fd21ea5e05684590e50c94a1431d91c7b WHIRLPOOL 0a4caafe23dd649e6c5917bac6fa414dd702b8631231c94385a2afc24e977b3ea07e6cdf71261935e4a7df2e7508edad40124c15cfab2e02308c060c5d50e44a DIST vpopmail-5.4.33.tar.gz 612271 SHA256 383c7436dfb18e773336f608f1771fc08559143c4f3938a5807a0cc5994c44f4 SHA512 abd5060d709c661d95ca442c6f77c4c27cf30a3c6790fc36d76ccf379ed2e08c1f0af697b2bcc57176a2cdb2cb67f6c27236d7b3fa69a135fa87f45a5df208ab WHIRLPOOL 9b49635984e541880528e56da9932a74e1a0988ef0b82f0f15538b6f9744c3bf1e86da45dd5de0c55af714669547c48d1f13830c8480e6760bc548b5047520f3 EBUILD vpopmail-5.4.16.ebuild 7521 SHA256 c6d5e2c30808c07dc676be37fcd60b1ef9d9c8e518662691350d20062c3b07ed SHA512 d4b34acacf59f6c5826cb4a033cacb4bb5da33cd6556833f2f071b42ccf1ac10dc9748336b18d6c58322b1e723bfc428c7db940f3184b38671edec33e018fbc0 WHIRLPOOL 3bda566fd24fb91458a0844b84edec0568f6f95e0c099149c3751450bb071ad0047937cab9f578c646eb82000f540f7d09988b98d9837328186788fc35f57d1f EBUILD vpopmail-5.4.30-r1.ebuild 7208 SHA256 a0340942a6c0b68018fe04a4c140cc0abd590ddf08f38dcba8d5285341b0be68 SHA512 da04f34d620b92787ace4d0a0cbad04a250bc5dcbdf48caa26a713cbde33821d479e94361dae1ce3d807d286b7a31a218acdb6896949d77231dda838c684f0f6 WHIRLPOOL acd5a867b9d4893ba06e39b820d6b27cb9e89a43b983e68ad4cc8bfe280a242c4721dba2498168eb1955f14eed6ea3c271dd54761316c13ed380c468cdf197cc EBUILD vpopmail-5.4.30-r2.ebuild 7306 SHA256 fbbd326a402cd28f4450d75430216574dd1d99c2d72da04f54360d856b82cb4e SHA512 3f82f7487f3575dcb4ce5f57ff3874c43393c926e6fdffff32ac3b1ae3b9075c16f417998013e84990122773116da514919fddc70e70e2849b22f59073934735 WHIRLPOOL 39f46c5304b08447bf855a886aefc4f97ce8dfb0c1f05219d19fa53a54e706308cb9db300c486f4963fdd87452b931711cab97dc03e21559f3e100f958fe4876 +EBUILD vpopmail-5.4.33-r1.ebuild 8043 SHA256 e2b597d6dbee8ffd659f00a0600874203152849d8b8c540c574a7ee377a11c5b SHA512 b50637e33a897eb88ca32e73726ee36b0650b37860c87a8c4be68bc620811935f306ff1149cb472fea75a11182b5ed60382c1baf7ad60c4e547f9494cb7dbd7b WHIRLPOOL 91705938e5ef68cd37ba4fe2fedf546e4ff06c0ae395383e5e9a5027fd5d87ccdaead4cf1495f5276c0c0dc825abd3609b1c6cd9fa0ea168931388fcd01ed85e EBUILD vpopmail-5.4.33.ebuild 7651 SHA256 c95f04b00f37f2268b3fa4f2eb512e98f3fce128c23663d199f1fdecc87fe6c1 SHA512 bcdcd7fe5549d336cdf941a88d8e170c462e1feb8be6c4d98c12f9710e4330b89c231f97af6f38775ac1e5d069dfa9e676ab5b576e9225aa1b78f404d5bdd508 WHIRLPOOL 05135747c2637af26ba00ee809e50ba67a4f609046ae83e1a47e912603d1416782e0cb778777f7895c5430914ba12f95022054d79525b95ed16e4207dd8fda28 -MISC ChangeLog 16820 SHA256 023e6945eacf62fc87d8b889757b344e4ab87637c88202f4cee461c39cefcd42 SHA512 336d23b03ccfa546ba998e8a87f438bea7e300838661c551e7edae512e21fd340a45943bca3d70a6d76917cf818781e437d19cbd5487477c217afb78de371da0 WHIRLPOOL a3de32a8c7e2453aa09de6017f306dd290043e407a8293d5f05b681899d42ad2af651c48821ba68eb1b546fe4c92013047b1013b87a472f820a15cdfc07271b0 +MISC ChangeLog 17066 SHA256 7823bc81a81df66c2fb61d828c1077a0a0e9c534ad6ea060d9f7d8adb83d1dce SHA512 27e199b6377ecf40d2aef5d3deb1587538a805e9c3d1d5795a9dc6234198e57716d2062ad067e69175f8223a61145cd7df66e72c7213f3c0cb54b1676f5d5191 WHIRLPOOL 0dca9f904b04f5cfb498590a8610d4442e39cd55a155efd63216b6a8c6199ca207917bf8b849a5c11f5dc8d0f3efdfcf3760b468426bad0e32a0ecada5aa1d81 MISC metadata.xml 517 SHA256 d651b3c6eb2a45f76ffd4546a77248df9f5750e9acd14b4896d3cac0bec65c88 SHA512 8519dbf3455005c2750ad6f8b601b62cba5b72938934dec10769a17f35a8343cfc2e76744134176082deb9aa77c571cc485b1afd74f487235bcbb6c91d1025cb WHIRLPOOL 18263a8f7cddab9aaa95f686f5a41d4c614809a0c2e963c82e96c2ee4dcc7288c9f8d626aab25f4a57dedfbecb44c590307b18250797485af208b30b3b7ad475 diff --git a/net-mail/vpopmail/files/vpopmail-vpgsql.patch b/net-mail/vpopmail/files/vpopmail-vpgsql.patch new file mode 100644 index 000000000000..1d387e43f59d --- /dev/null +++ b/net-mail/vpopmail/files/vpopmail-vpgsql.patch @@ -0,0 +1,94 @@ +--- vpgsql.c.2 2011-02-28 18:00:45.000000000 +0100 ++++ vpgsql.c 2011-08-06 05:46:49.959717911 +0200 +@@ -392,10 +392,10 @@ + #endif + + #ifdef ENABLE_SQL_LOGGING +- qnprintf( sqlBufUpdate, SQL_BUF_SIZE, ++ qnprintf( SqlBufUpdate, SQL_BUF_SIZE, + "delete from vlog where domain = '%s'", domain ); + pgres=PQexec(pgc, SqlBufUpdate); +- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) { ++ if( !pgres || PQresultStatus(pgres)!=PGRES_COMMAND_OK) { + return(-1); + } + #endif +@@ -445,11 +445,11 @@ + #endif + + #ifdef ENABLE_SQL_LOGGING +- qnprintf( sqlBufUpdate, SQL_BUF_SIZE, ++ qnprintf( SqlBufUpdate, SQL_BUF_SIZE, + "delete from vlog where domain = '%s' and user='%s'", + domain, user ); + pgres=PQexec(pgc, SqlBufUpdate); +- if( !pgres || PGresultStatus(pgres)!=PGRES_COMMAND_OK) { ++ if( !pgres || PQresultStatus(pgres)!=PGRES_COMMAND_OK) { + err = -1; + } + #endif +@@ -1555,6 +1555,64 @@ + return valias_current->data; + } + } ++ ++char *valias_select_names( char *alias, char *domain ) ++{ ++ PGresult *pgres; ++ int err; ++ unsigned ntuples, ctuple; ++ struct linklist *temp_entry = NULL; ++ ++ /* remove old entries as necessary */ ++ while (valias_current != NULL) ++ valias_current = linklist_del (valias_current); ++ ++ if ( (err =vauth_open(0)) != 0 ) return (NULL); ++ ++ qnprintf( SqlBufRead, SQL_BUF_SIZE, ++ "select distinct alias from valias where domain = '%s' order by alias", domain); ++ if ( ! (pgres=PQexec(pgc, SqlBufRead)) ++ || PQresultStatus(pgres) != PGRES_TUPLES_OK ) { ++ if(pgres) PQclear(pgres); ++ vcreate_valias_table(); ++ if ( ! (pgres=PQexec(pgc, SqlBufRead)) ++ || PQresultStatus(pgres) != PGRES_TUPLES_OK ) { ++ fprintf(stderr,"vpgsql: sql error[o]: %s\n", ++ PQerrorMessage(pgc)); ++ if (pgres) PQclear (pgres); ++ return(NULL); ++ } ++ } ++ ntuples = PQntuples (pgres); ++ for (ctuple = 0; ctuple < ntuples; ctuple++) { ++ temp_entry = linklist_add (temp_entry, PQgetvalue (pgres, ctuple, 1), PQgetvalue (pgres, ctuple, 0)); ++ if (valias_current == NULL) valias_current = temp_entry; ++ } ++ PQclear (pgres); ++ pgres = NULL; ++ ++ if (valias_current == NULL) return NULL; /* no results */ ++ else { ++ strcpy (alias, valias_current->d2); ++ return(valias_current->data); ++ } ++} ++ ++char *valias_select_names_next(char *alias) ++{ ++ if (valias_current == NULL) return NULL; ++ valias_current = linklist_del (valias_current); ++ ++ if (valias_current == NULL) return NULL; /* no results */ ++ else { ++ strcpy(alias, valias_current->d2); ++ return(valias_current->data); ++ } ++} ++ ++void valias_select_names_end() { ++ // not needed with PostgreSQL ++} + #endif + + #ifdef ENABLE_SQL_LOGGING diff --git a/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild b/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild new file mode 100644 index 000000000000..217c81f7bd37 --- /dev/null +++ b/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild @@ -0,0 +1,252 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/vpopmail-5.4.33-r1.ebuild,v 1.1 2013/05/31 00:32:09 robbat2 Exp $ + +EAPI=5 + +inherit autotools eutils fixheadtails qmail user + +HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail" +DESCRIPTION="A collection of programs to manage virtual email domains and accounts on your Qmail mail servers." +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="clearpasswd ipalias maildrop mysql postgres spamassassin" +REQUIRED_USE="mysql? ( !postgres )" + +DEPEND="virtual/qmail + maildrop? ( mail-filter/maildrop ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql-server ) + spamassassin? ( mail-filter/spamassassin )" +RDEPEND="${DEPEND}" + +# This makes sure the variable is set, and that it isn't null. +VPOP_DEFAULT_HOME="/var/vpopmail" + +vpopmail_set_homedir() { + VPOP_HOME=$(egethome vpopmail) + if [[ -z "${VPOP_HOME}" ]]; then + ebeep + eerror "vpopmail's home directory is null in passwd data!" + eerror "You probably want to check that out." + eerror "Continuing with default." + VPOP_HOME="${VPOP_DEFAULT_HOME}" + else + einfo "Setting VPOP_HOME to: $VPOP_HOME" + fi +} + +pkg_setup() { + enewgroup vpopmail 89 + enewuser vpopmail 89 -1 ${VPOP_DEFAULT_HOME} vpopmail + upgradewarning +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.4.9-access.violation.patch + epatch "${FILESDIR}"/${PN}-lazy.patch + epatch "${FILESDIR}"/${PN}-double-free.patch + epatch "${FILESDIR}"/${PN}-vpgsql.patch + + echo 'install-recursive: install-exec-am' \ + >>"${S}"/Makefile.am + + # fix maildir paths + sed -i -e 's|Maildir|.maildir|g' \ + vchkpw.c vconvert.c vdelivermail.c \ + vpopbull.c vpopmail.c vqmaillocal.c \ + vuserinfo.c maildirquota.c || die + + # remove vpopmail advertisement + sed -i -e '/printf.*vpopmail/s:vpopmail (:(:' \ + vdelivermail.c vpopbull.c vqmaillocal.c || die + + # automake/autoconf + mv -f "${S}"/configure.{in,ac} || die + sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' \ + configure.ac || die + + # _FORTIFY_SOURCE + sed -i \ + -e 's/\(snprintf(\s*\(LI->[a-zA-Z_]\+\),\s*\)[a-zA-Z_]\+,/\1 sizeof(\2),/' \ + vlistlib.c || die + + eautoreconf + ht_fix_file cdb/Makefile +} + +src_configure() { + vpopmail_set_homedir + + local authopts + if use mysql; then + mysqlinc=$(mysql_config --include) + authopts="--enable-incdir=${mysqlinc#-I}" + authopts+=" --enable-auth-module=mysql" + authopts+=" --enable-libdir=/usr/$(get_libdir)/mysql" + authopts+=" --enable-sql-logging" + authopts+=" --enable-valias" + authopts+=" --disable-mysql-replication" + authopts+=" --enable-mysql-limits" + elif use postgres; then + pglibdir=$(pg_config --libdir) + authopts+=" --enable-auth-module=pgsql" + authopts+=" --enable-libdir=${pglibdir}" + authopts+=" --enable-sql-logging" + authopts+=" --enable-valias" + else + authopts+=" --enable-auth-module=cdb" + fi + + econf ${authopts} \ + --sysconfdir=${VPOP_HOME}/etc \ + --enable-non-root-build \ + --enable-qmaildir=${QMAIL_HOME} \ + --enable-qmail-newu=${QMAIL_HOME}/bin/qmail-newu \ + --enable-qmail-inject=${QMAIL_HOME}/bin/qmail-inject \ + --enable-qmail-newmrh=${QMAIL_HOME}/bin/qmail-newmrh \ + --enable-vpopuser=vpopmail \ + --enable-vpopgroup=vpopmail \ + --enable-many-domains \ + --enable-file-locking \ + --enable-file-sync \ + --enable-md5-passwords \ + --enable-logging \ + --enable-auth-logging \ + --enable-log-name=vpopmail \ + --enable-qmail-ext \ + --disable-tcpserver-file \ + --disable-roaming-users \ + $(use_enable ipalias ip-alias-domains) \ + $(use_enable clearpasswd clear-passwd) \ + $(use_enable maildrop) \ + $(use_enable maildrop maildrop-prog /usr/bin/maildrop) \ + $(use_enable spamassassin) +} + +src_install() { + vpopmail_set_homedir + + emake DESTDIR="${D}" install + keepdir "${VPOP_HOME}"/domains + + # install helper script for maildir conversion + into "${VPOP_HOME}" + dobin "${FILESDIR}"/vpopmail-Maildir-dotmaildir-fix.sh + into /usr + + dodoc doc/AUTHORS ChangeLog doc/FAQ doc/INSTALL doc/README* + dohtml doc/doc_html/* doc/man_html/* + rm -rf "${D}/${VPOP_HOME}"/doc + dosym /usr/share/doc/${PF}/ "${VPOP_HOME}"/doc + + # create /etc/vpopmail.conf + if use mysql; then + dodir /etc + mv "${D}${VPOP_HOME}"/etc/vpopmail.mysql "${D}"/etc/vpopmail.conf + dosym /etc/vpopmail.conf "${VPOP_HOME}"/etc/vpopmail.mysql + + sed -e '12d' -i "${D}"/etc/vpopmail.conf + echo '# Read-only DB' >> "${D}"/etc/vpopmail.conf + echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf + echo '# Write DB' >> "${D}"/etc/vpopmail.conf + echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf + + # lock down perms + fperms 640 /etc/vpopmail.conf + fowners root:vpopmail /etc/vpopmail.conf + fi + + insinto "${VPOP_HOME}"/etc + doins vusagec.conf + dosym "${VPOP_HOME}"/etc/vusagec.conf /etc/vusagec.conf + sed -i 's/Disable = False;/Disable = True;/g' "${D}${VPOP_HOME}"/etc/vusagec.conf + + einfo "Installing env.d entry" + dodir /etc/env.d + doenvd "${FILESDIR}"/99vpopmail + + einfo "Locking down vpopmail permissions" + fowners -R root:0 "${VPOP_HOME}"/{bin,etc,include} + fowners root:vpopmail "${VPOP_HOME}"/bin/vchkpw + fperms 4711 "${VPOP_HOME}"/bin/vchkpw +} + +pkg_postinst() { + if use mysql ; then + elog + elog "You have 'mysql' turned on in your USE" + elog "Vpopmail needs a VALID MySQL USER. Let's call it 'vpopmail'" + elog "You MUST add it and then specify its passwd in the /etc/vpopmail.conf file" + elog + elog "First log into mysql as your mysql root user and pass. Then:" + elog "> create database vpopmail;" + elog "> use mysql;" + elog "> grant select, insert, update, delete, create, drop on vpopmail.* to" + elog " vpopmail@localhost identified by 'your password';" + elog "> flush privileges;" + elog + elog "If you have problems with vpopmail not accepting mail properly," + elog "please ensure that /etc/vpopmail.conf is chmod 640 and" + elog "owned by root:vpopmail" + elog + fi + + # do this for good measure + if [[ -e /etc/vpopmail.conf ]]; then + chmod 640 /etc/vpopmail.conf + chown root:vpopmail /etc/vpopmail.conf + fi + + upgradewarning +} + +pkg_postrm() { + vpopmail_set_homedir + + elog "The vpopmail DATA will NOT be removed automatically." + elog "You can delete them manually by removing the ${VPOP_HOME} directory." +} + +upgradewarning() { + ewarn + ewarn "Massive important warning if you are upgrading to 5.2.1-r8 or older" + ewarn "The internal structure of the mail storage has changed for" + ewarn "consistancy with the rest of Gentoo! Please review and utilize the " + ewarn "script at ${VPOP_HOME}/bin/vpopmail-Maildir-dotmaildir-fix.sh" + ewarn "to upgrade your system! (It can do conversions both ways)." + ewarn "You should be able to run it right away without any changes." + ewarn + + elog + elog "Use of vpopmail's tcp.smtp[.cdb] is also deprecated now, consider" + elog "using net-mail/relay-ctrl instead." + elog + + if use mysql; then + elog + elog "If you are upgrading from 5.4.17 or older, you have to fix your" + elog "MySQL tables:" + elog + elog 'ALTER TABLE `dir_control` CHANGE `domain` `domain` CHAR(96) NOT NULL;' + elog 'ALTER TABLE `ip_alias_map` CHANGE domain domain CHAR(96) NOT NULL;' + elog 'ALTER TABLE `lastauth` CHANGE domain domain CHAR(96) NOT NULL;' + elog 'ALTER TABLE `valias` CHANGE domain domain CHAR(96) NOT NULL;' + elog 'ALTER TABLE `vlog` CHANGE domain domain CHAR(96) NOT NULL;' + elog 'ALTER TABLE `vpopmail` CHANGE domain domain CHAR(96) NOT NULL;' + elog 'ALTER TABLE `limits` CHANGE domain domain CHAR(96) NOT NULL,' + elog ' ADD `disable_spamassassin` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_smtp`,' + elog ' ADD `delete_spam` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_spamassassin`;' + elog + fi + + ewarn + ewarn "Newer versions of vpopmail contain a quota daemon called vusaged." + ewarn "This ebuild DOES NOT INSTALL vusaged and has therefore disabled" + ewarn "its usage in ${VPOP_HOME}/etc/vusagec.conf. DO NOT ENABLE!" + ewarn "Otherwise mail delivery WILL BREAK" + ewarn +} |