diff options
Diffstat (limited to 'net-mail/vpopmail')
-rw-r--r-- | net-mail/vpopmail/Manifest | 6 | ||||
-rw-r--r-- | net-mail/vpopmail/vpopmail-5.4.33-r5.ebuild | 250 | ||||
-rw-r--r-- | net-mail/vpopmail/vpopmail-5.4.33-r6.ebuild | 2 | ||||
-rw-r--r-- | net-mail/vpopmail/vpopmail-5.4.33-r7.ebuild | 4 | ||||
-rw-r--r-- | net-mail/vpopmail/vpopmail-5.4.33.ebuild | 246 |
5 files changed, 5 insertions, 503 deletions
diff --git a/net-mail/vpopmail/Manifest b/net-mail/vpopmail/Manifest index a5952eaef5e0..290a9a1f3c8a 100644 --- a/net-mail/vpopmail/Manifest +++ b/net-mail/vpopmail/Manifest @@ -14,8 +14,6 @@ AUX vpopmail-double-free.patch 399 BLAKE2B ac2d7ad9b8b3e9cf25fbd973c7e42e48c1107 AUX vpopmail-lazy.patch 323 BLAKE2B c35a878e2aa69a9ba0e108fdf4f0f8de85965588acc8d2c3fecb1d152e2f0e9585d78b9ce5b2314735de8b70710687e0a75358ef3029dd96eaa704941df00bd7 SHA512 794ef15920ac565073d871a946df53395afb0630d561343f4d164af3287d1665e115ad42d7a2218306cedb5dc795b10d9c15852b69fd649854ddb0c18dc0b2dd AUX vpopmail-vpgsql.patch 2668 BLAKE2B 0f69aa8642d15d740e0e5944a438854fde240831176ae2152cc805809e5a87ecd8ce5c6791f4c4e53d2027393d158e28e9dbec49d0efd7c4c2d50c9eeb4cf10d SHA512 9f02f9f9ab186791fe071ee5cb27334144727e81f0bbd6b8f5ce472368f892f5396a225c6c1af9d5b7a66bf66e7be50aef146d7635132fab9d91f265b68af1d9 DIST vpopmail-5.4.33.tar.gz 612271 BLAKE2B 1dacc512c5d64e8f73a0630209407161afd87ebec510cdf57cb8aaa8be9b911141612d69892981a2545fc263e798f6e7dc9d5a283e1177e223f4a2e1fac80017 SHA512 abd5060d709c661d95ca442c6f77c4c27cf30a3c6790fc36d76ccf379ed2e08c1f0af697b2bcc57176a2cdb2cb67f6c27236d7b3fa69a135fa87f45a5df208ab -EBUILD vpopmail-5.4.33-r5.ebuild 7513 BLAKE2B 9e2615d960bfc6d3cc88bdf1417e5825c1273c0b2b9a97d383c140ae1d72c0767cd093b563fbf8cf10036be98f69694652b236cf786ea1862e75c327b0cd05c8 SHA512 cece7550f49d235599875d7ee1d090a8bb5db49d90f4ef6b0aff54010e36ba93b7f9b9ba66c2389f84092c752c6657c2003123293d2af7bcd3eeecb77c0b1c22 -EBUILD vpopmail-5.4.33-r6.ebuild 7522 BLAKE2B fe99e39321e6f8cd240b2f498f4a0f50c5a0bc1e5ab426e4c99e5cc3a84a62f89e2fd09eb1c2802192796ff18c0ba1dcb5d3ba7aa5a98a65ada679ff563827ad SHA512 f0f2d3c9ca81f44c6a6d1000a285621caed73b5d1809f75cd4138346b6e9702cebc765f9c39dd5d52eaebd7b11b37f63aaee22638adaac48bf254d22d5986ef1 -EBUILD vpopmail-5.4.33-r7.ebuild 7541 BLAKE2B d342aa606fe1031a30b7fc7706a9cf9cc0af523e6a46571da5c7328ca711266e082d5e00f7be8b3f8d5157258f8d5ac5cf5e2d01689184bbdcf50c05cc404ca4 SHA512 2f526978a1586a3ab8b6c213b91cda1dd24d89b7386f8264538c406864f7d53e0b4cde7fb568e152118d45cb45f541fb1ac101e68298c12fa009283c41f1931d -EBUILD vpopmail-5.4.33.ebuild 7678 BLAKE2B 0784b6ac7398d33dd6cb4dfd067d4778568a24ca2a1b71fbc52ff541bcbe5878056c74560270f44f7da7edb7ddb17955a4320d79ebdb92945cfddaa3f68ae372 SHA512 d0e9c724e49dda58c838c98e40da28638b8c7e5063517c03d5f26a5d471427af0795ec32c0f8711e1ae37e0e6a851807640d1081f5e834daedd89d82e4e43365 +EBUILD vpopmail-5.4.33-r6.ebuild 7515 BLAKE2B 0db08cb6abb0730389dc1d748716e49abc059838c3edf6ae190266f1b1932277dce384519c32178a209096ffa2c1e585ad99ccea419c2e15057592bca09d5693 SHA512 c63a82445f77c9a3720ab5841b061cf461eacfa1af180d6e009d53985be6e814ba1c82dc621a6cf05a82d6a3548ba4ad21af29fcfc76717899fa1e794c27bc0a +EBUILD vpopmail-5.4.33-r7.ebuild 7537 BLAKE2B 88c87449980b0f8596cd2cf72b75456af84ce344a7a6a074d6cb0c673ecb3012e9512eb97762f6436fd2a161e36b03b98818166b0ef6ad7f6eabcc3cf1637c7e SHA512 61ee7395ebfcd55e0a38a8e96103babc9919d2c00351fc64ffaffe5a58ea020b2ecc94b664943f4f5909247a95652eaf2ecd5ec9500a46a64d8493195a100424 MISC metadata.xml 798 BLAKE2B 9d38645910ab93bb1557fb51895900fc5280086a702d1b561a7676206147498a6c1cba59dde1e3f320fc20d3099f304ec71056273cf4955530cc59f0cc0b4439 SHA512 b91e76e79c223a21648a2c380d4d81517b4bab65238b641734d173312e2ced4004e31b7d4aaced92962ae5cd65bfaafe7ab2f14612489d28598b8b1d0a9a5465 diff --git a/net-mail/vpopmail/vpopmail-5.4.33-r5.ebuild b/net-mail/vpopmail/vpopmail-5.4.33-r5.ebuild deleted file mode 100644 index 46dde6bd5e1a..000000000000 --- a/net-mail/vpopmail/vpopmail-5.4.33-r5.ebuild +++ /dev/null @@ -1,250 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools fixheadtails qmail - -HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail" -DESCRIPTION="Collection of programs to manage virtual email on Qmail servers" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86" -IUSE="clearpasswd ipalias maildrop mysql postgres spamassassin" -REQUIRED_USE="mysql? ( !postgres )" - -DEPEND=" - acct-group/vpopmail - acct-user/vpopmail - virtual/qmail - maildrop? ( mail-filter/maildrop ) - mysql? ( dev-db/mysql-connector-c:0= ) - postgres? ( dev-db/postgresql:=[server] ) - spamassassin? ( mail-filter/spamassassin )" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-5.4.9-access.violation.patch - "${FILESDIR}"/${PN}-lazy.patch - "${FILESDIR}"/${PN}-vpgsql.patch - "${FILESDIR}"/${PN}-double-free.patch - "${FILESDIR}"/${PN}-5.4.33-vdelivermail-add-static.patch - "${FILESDIR}"/${PN}-5.4.33-fix-those-vfork-instances-that-do-more-than-exec.patch - "${FILESDIR}"/${PN}-5.4.33-remove-unneeded-forward-declaration.patch - "${FILESDIR}"/${PN}-5.4.33-clean-up-calling-maildrop.patch - "${FILESDIR}"/${PN}-5.4.33-fix-S-tag-in-case-spamassassin-changed-the-file-size.patch - "${FILESDIR}"/${PN}-5.4.33-strncat.patch - "${FILESDIR}"/${PN}-5.4.33-unistd.patch - "${FILESDIR}"/${PN}-5.4.33-check-crypt-return-value-for-NULL.patch - "${FILESDIR}"/${PN}-5.4.33-use-proper-printf-format-strings.patch -) -DOCS=( - ChangeLog - doc/. -) -HTML_DOCS=( - doc_html/. - man_html/. -) - -VPOP_HOME="/var/vpopmail" - -pkg_setup() { - upgradewarning -} - -src_prepare() { - default - - echo 'install-recursive: install-exec-am' \ - >>"${S}"/Makefile.am || die - - # 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 "${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() { - local -a authopts - if use mysql; then - incdir=$(mysql_config --variable=pkgincludedir || die) - libdir=$(mysql_config --variable=pkglibdir || die) - authopts+=( "--enable-auth-module=mysql" - "--enable-incdir=${incdir}" - "--enable-libdir=${libdir}" - "--enable-sql-logging" - "--enable-valias" - "--disable-mysql-replication" - "--enable-mysql-limits" - ) - elif use postgres; then - libdir=$(pg_config --libdir || die) - incdir=$(pg_config --pkgincludedir || die) - authopts+=( "--enable-auth-module=pgsql" - "--enable-incdir=${incdir}" - "--enable-libdir=${libdir}" - "--enable-sql-logging" - "--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() { - 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 - - mv doc/doc_html/ doc/man_html/ . || die - einstalldocs - rm -r "${D}/${VPOP_HOME}"/doc || die - - # create /etc/vpopmail.conf - if use mysql; then - insinto /etc - newins "${D}${VPOP_HOME}"/etc/vpopmail.mysql vpopmail.conf - dosym ../../etc/vpopmail.conf "${VPOP_HOME}"/etc/vpopmail.mysql - - sed 's/^[^#]/# &/' -i "${D}"/etc/vpopmail.conf || die - echo '# Read-only DB' >> "${D}"/etc/vpopmail.conf || die - echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf || die - echo '# Write DB' >> "${D}"/etc/vpopmail.conf || die - echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf || die - - # 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 || die - - einfo "Installing env.d entry" - 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 || die - chown root:vpopmail /etc/vpopmail.conf || die - fi - - upgradewarning -} - -pkg_postrm() { - elog "The vpopmail DATA will NOT be removed automatically." - elog "You can delete them manually by removing the ${VPOP_HOME} directory." -} - -upgradewarning() { - if has_version "<=net-mail/vpopmail-5.2.1-r8"; then - 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 - fi - - 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 - if has_version "<=net-mail/vpopmail-5.4.17"; then - elog - elog "If you are upgrading from 5.4.17 or older, you have to fix your" - elog "MySQL tables, please see the UPGRADE file in the documentation!" - elog - fi - 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 -} diff --git a/net-mail/vpopmail/vpopmail-5.4.33-r6.ebuild b/net-mail/vpopmail/vpopmail-5.4.33-r6.ebuild index 6baa607e05c2..a4eca3315ec1 100644 --- a/net-mail/vpopmail/vpopmail-5.4.33-r6.ebuild +++ b/net-mail/vpopmail/vpopmail-5.4.33-r6.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86" +KEYWORDS="amd64 arm hppa ~ia64 ppc ppc64 ~s390 sparc x86" IUSE="clearpasswd ipalias maildrop mysql postgres spamassassin" REQUIRED_USE="mysql? ( !postgres )" diff --git a/net-mail/vpopmail/vpopmail-5.4.33-r7.ebuild b/net-mail/vpopmail/vpopmail-5.4.33-r7.ebuild index ceca711c4a4f..face2fb6b996 100644 --- a/net-mail/vpopmail/vpopmail-5.4.33-r7.ebuild +++ b/net-mail/vpopmail/vpopmail-5.4.33-r7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" IUSE="clearpasswd ipalias maildrop mysql postgres spamassassin" REQUIRED_USE="mysql? ( !postgres )" diff --git a/net-mail/vpopmail/vpopmail-5.4.33.ebuild b/net-mail/vpopmail/vpopmail-5.4.33.ebuild deleted file mode 100644 index a38b01a00823..000000000000 --- a/net-mail/vpopmail/vpopmail-5.4.33.ebuild +++ /dev/null @@ -1,246 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit autotools eutils fixheadtails qmail user - -HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail" -DESCRIPTION="Collection of programs to manage virtual email on Qmail servers" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" -IUSE="clearpasswd ipalias maildrop mysql spamassassin" - -DEPEND=" - acct-group/vpopmail - acct-user/vpopmail - virtual/qmail - maildrop? ( mail-filter/maildrop ) - mysql? ( virtual/mysql ) - 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 - 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() { - 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 - - # 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 - incdir=$(mysql_config --variable=pkgincludedir) - libdir=$(mysql_config --variable=pkglibdir) - authopts+=" --enable-auth-module=mysql" - authopts+=" --enable-incdir=${incdir}" - authopts+=" --enable-libdir=${libdir}" - authopts+=" --enable-sql-logging" - authopts+=" --enable-valias" - authopts+=" --disable-mysql-replication" - authopts+=" --enable-mysql-limits" - 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 - - # bug #277764 - emake -j1 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 \ - $(realpath --relative-to "${D}/${VPOP_HOME}"/ "${D}"/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 \ - $(realpath --relative-to "${D}/${VPOP_HOME}"/etc/ "${D}"/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 root:0 -R "${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 -} |