summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-06-24 09:08:38 +0000
committerAlin Năstac <mrness@gentoo.org>2007-06-24 09:08:38 +0000
commit9e408a27ebd4fa34af80453cccd7759a1d10e70d (patch)
tree9aa658029914a83c396cfc97bf36fde9137e6e3d /mail-filter
parentAdd poppler >=0.5.9 compatibility patch thanks to Ed Catmur <ed@catmur.co.uk>... (diff)
downloadhistorical-9e408a27ebd4fa34af80453cccd7759a1d10e70d.tar.gz
historical-9e408a27ebd4fa34af80453cccd7759a1d10e70d.tar.bz2
historical-9e408a27ebd4fa34af80453cccd7759a1d10e70d.zip
Remove obsolete version. Fix QA notice and add warning in pkg_setup about hash backend (#179400).
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/dspam/ChangeLog7
-rw-r--r--mail-filter/dspam/Manifest41
-rw-r--r--mail-filter/dspam/dspam-3.6.8-r3.ebuild500
-rw-r--r--mail-filter/dspam/dspam-3.8.0-r1.ebuild13
-rw-r--r--mail-filter/dspam/files/digest-dspam-3.6.8-r39
-rw-r--r--mail-filter/dspam/files/digest-dspam-3.8.0-r16
6 files changed, 36 insertions, 540 deletions
diff --git a/mail-filter/dspam/ChangeLog b/mail-filter/dspam/ChangeLog
index 353a7d18baf8..b51d9a5b5000 100644
--- a/mail-filter/dspam/ChangeLog
+++ b/mail-filter/dspam/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/dspam
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/ChangeLog,v 1.90 2007/06/13 17:23:34 tsunam Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/ChangeLog,v 1.91 2007/06/24 09:08:38 mrness Exp $
+
+ 24 Jun 2007; Alin Năstac <mrness@gentoo.org> -dspam-3.6.8-r3.ebuild,
+ dspam-3.8.0-r1.ebuild:
+ Remove obsolete version. Fix QA notice and add warning in pkg_setup about
+ hash backend (#179400).
13 Jun 2007; Joshua Jackson <tsunam@gentoo.org> dspam-3.8.0-r1.ebuild:
Stable x86
diff --git a/mail-filter/dspam/Manifest b/mail-filter/dspam/Manifest
index 57446b58100f..7ab14736672f 100644
--- a/mail-filter/dspam/Manifest
+++ b/mail-filter/dspam/Manifest
@@ -25,37 +25,28 @@ AUX logrotate.dspam 156 RMD160 256f2607b275336f944b0882591366c39b53daf7 SHA1 280
MD5 2163ca41de383f09f4d754e2d35cb158 files/logrotate.dspam 156
RMD160 256f2607b275336f944b0882591366c39b53daf7 files/logrotate.dspam 156
SHA256 75e04139e564ad55011ee77b8245dc5cdefbb6d56ca451feab5861ab907d614e files/logrotate.dspam 156
-DIST dspam-3.6.8-patches-20070322.tar.gz 5518 RMD160 76bc1194891527da5c221f0f8d33b806911e288b SHA1 4a13338009f849fe928eae7ca6b7d3fb72103732 SHA256 3f38801f4437053e71ccde146c62b1af0adb5be6bd7d7d34914565160ba00df4
-DIST dspam-3.6.8.tar.gz 743275 RMD160 93a70db14070cb61bd2ef1b0ca55a18be1dbfd7b SHA1 e8c413882eadf1e02837e4a2ffcfc98b801eded1 SHA256 88c7b41fb81e90ba8a260885a1d14bce39f2ef4a06cc2c6b8bfa0b99ba1aec34
-DIST dspam-3.8.0-patches-20070418.tar.gz 7688 RMD160 e1f0d0d1a67f917352e19ec11763e743c6791f43 SHA1 3768946442c22679835c66cee34176b29db7f762 SHA256 f0e1c523205833bf1cdbedec16039fafedf9e802f4da6faa859f14411819b27a
+DIST dspam-3.8.0-patches-20070624.tar.gz 7808 RMD160 bc0d8d439e7a9a89bfc3dfb4bee3a72d116abb6a SHA1 1f95834dc06fa9a8ed402df015cf57aac957c7fe SHA256 6fcbb5b50d48d6aae716e88a52f4ed89debe93c0df875ff4c003c6147e2f8583
DIST dspam-3.8.0.tar.gz 726160 RMD160 e7831e2415e30e819dd9cbc0ba3f269e113e2fb9 SHA1 d1de7ee2134522adaf52f49167accecf1589fa96 SHA256 84a227934a7aee73516bdb82c33ee7b359e955c8cd95a1544a9a13069f79bfc7
DIST dspam_sa_trainer.tar.gz 1230 RMD160 c3d0fca7169d23ecf9d44c850ee255b42d97d818 SHA1 71a002f26a888bdfe47759cf1f780cd6478dacac SHA256 8fb6b1ebe592acf00a028737ef8e174544af166768b987d29048b2319bc5a215
-EBUILD dspam-3.6.8-r3.ebuild 17130 RMD160 9a913710930d24d9a79af111b1ab8973b17e8f74 SHA1 460905f7ceede56e7e381995dd2fd82f59447f5c SHA256 6b55ff04c1080314f4e3e6b95fd3d692154a7ae98121f1ee83d1b51aa9d04d31
-MD5 61e46c0895f070b706d4c6ca3bd15140 dspam-3.6.8-r3.ebuild 17130
-RMD160 9a913710930d24d9a79af111b1ab8973b17e8f74 dspam-3.6.8-r3.ebuild 17130
-SHA256 6b55ff04c1080314f4e3e6b95fd3d692154a7ae98121f1ee83d1b51aa9d04d31 dspam-3.6.8-r3.ebuild 17130
-EBUILD dspam-3.8.0-r1.ebuild 15032 RMD160 9bf78e0dcf6c2379a410015675758eaf14fc5923 SHA1 02ffbf8f64c2cd3f79b8b3fb4d411ae470bf3024 SHA256 1150c2acdfb91550fc6fb20e9cfbdb2ac5577bd48f006e1108ba5d49e86d543c
-MD5 3c8dba7151b198e7a77a0d83230f77f1 dspam-3.8.0-r1.ebuild 15032
-RMD160 9bf78e0dcf6c2379a410015675758eaf14fc5923 dspam-3.8.0-r1.ebuild 15032
-SHA256 1150c2acdfb91550fc6fb20e9cfbdb2ac5577bd48f006e1108ba5d49e86d543c dspam-3.8.0-r1.ebuild 15032
-MISC ChangeLog 16104 RMD160 0b12ed3e93e7c3dc34a4aa2cfc03bec56daa4ea5 SHA1 cc4992185184b13a84ade1ccc8e80e116766490c SHA256 cb4f22f3d8a3acb4bdb272b9b67698ab902e68465ee9c5fbdb88b59891e1fbde
-MD5 db607c75239a1bd314c21dcd0a5ccd16 ChangeLog 16104
-RMD160 0b12ed3e93e7c3dc34a4aa2cfc03bec56daa4ea5 ChangeLog 16104
-SHA256 cb4f22f3d8a3acb4bdb272b9b67698ab902e68465ee9c5fbdb88b59891e1fbde ChangeLog 16104
+EBUILD dspam-3.8.0-r1.ebuild 15420 RMD160 aeaa04b9e04c40a7d7da4353eab1d80cba4a5529 SHA1 caa0b0a3484896a3957aa49cac3f1c2a6df767f0 SHA256 28c3fd765e86604134e05d112773a37d05d0fc69d907537bb7a8177869e52e5f
+MD5 1146b0405f29673821fc033f305f6f6a dspam-3.8.0-r1.ebuild 15420
+RMD160 aeaa04b9e04c40a7d7da4353eab1d80cba4a5529 dspam-3.8.0-r1.ebuild 15420
+SHA256 28c3fd765e86604134e05d112773a37d05d0fc69d907537bb7a8177869e52e5f dspam-3.8.0-r1.ebuild 15420
+MISC ChangeLog 16304 RMD160 a55d126f781aa1485beb4da7f0af4d0a70096740 SHA1 2a871b006fdc26f33457d2d2c097c5ccd1f0ddda SHA256 4b30e6f255e5c1788f3c4c22fab116abbbea36b7d5a73d8ca0a54888151c1f8a
+MD5 4234b5b00d77bf034375144d09b2e6be ChangeLog 16304
+RMD160 a55d126f781aa1485beb4da7f0af4d0a70096740 ChangeLog 16304
+SHA256 4b30e6f255e5c1788f3c4c22fab116abbbea36b7d5a73d8ca0a54888151c1f8a ChangeLog 16304
MISC metadata.xml 335 RMD160 acb18f015dcada8300ffce56be0c4a285ce2a215 SHA1 87ddabb196434e9e9363ba4b5b5596b78aa463f1 SHA256 23816215482cfc089c2e3fe9ae75547c364ad01fbb2a98886ad91d28f5971e17
MD5 47349dfc68ef142782e134a2e7696a37 metadata.xml 335
RMD160 acb18f015dcada8300ffce56be0c4a285ce2a215 metadata.xml 335
SHA256 23816215482cfc089c2e3fe9ae75547c364ad01fbb2a98886ad91d28f5971e17 metadata.xml 335
-MD5 70bb8cee0421ab362030f6820112e350 files/digest-dspam-3.6.8-r3 759
-RMD160 aeb37fa95434477546b28ff8c7edecec216f28bc files/digest-dspam-3.6.8-r3 759
-SHA256 d7d4d1f5c8b678914be3b634fd9d775032e2f80de07ec153b17505463bfc1b36 files/digest-dspam-3.6.8-r3 759
-MD5 a50a19a5dacce4108a5ddc1f1601fa49 files/digest-dspam-3.8.0-r1 759
-RMD160 77f651a7322bd224ee0d32b976dfaee46f007df5 files/digest-dspam-3.8.0-r1 759
-SHA256 d942346fb5a650ccf135ccb9b98231dc447d90d0b41e38e1b2e53ed0cb3ebfdf files/digest-dspam-3.8.0-r1 759
+MD5 a74e4aa7ca3ad4921fe67e6cfa1df108 files/digest-dspam-3.8.0-r1 759
+RMD160 14e7e6d6f1e5badf2ed418a835e5f2181609d401 files/digest-dspam-3.8.0-r1 759
+SHA256 5357c68185e991aa8d22f5b183aa9d1777db157eabee31acb78ffb0cb27521e7 files/digest-dspam-3.8.0-r1 759
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.7 (GNU/Linux)
+Version: GnuPG v2.0.4 (GNU/Linux)
-iD8DBQFGcCge2ZWR0Jhg/EsRAremAJ900CcneSJwKNr/8PKGFhfj9RTaXQCZAZT4
-6g/mOyCovXrrzUyOxKiJB6E=
-=YMKo
+iD8DBQFGfjSiJnxX6mF440QRAlx3AJ441FsGPN14tfjFiH3WYwzT9EyJoACgzcIy
+JJAGnZ12rsCq5fMuf3XQ+Ug=
+=B9VI
-----END PGP SIGNATURE-----
diff --git a/mail-filter/dspam/dspam-3.6.8-r3.ebuild b/mail-filter/dspam/dspam-3.6.8-r3.ebuild
deleted file mode 100644
index bd6d965e4877..000000000000
--- a/mail-filter/dspam/dspam-3.6.8-r3.ebuild
+++ /dev/null
@@ -1,500 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.6.8-r3.ebuild,v 1.3 2007/04/03 18:08:30 gustavoz Exp $
-
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
-
-inherit eutils autotools flag-o-matic
-
-DESCRIPTION="A statistical-algorithmic hybrid anti-spam filter"
-HOMEPAGE="http://dspam.nuclearelephant.com/"
-SRC_URI="http://dspam.nuclearelephant.com/sources/${P}.tar.gz
- mirror://gentoo/${P}-patches-20070322.tar.gz
- http://dspam.nuclearelephant.com/sources/extras/dspam_sa_trainer.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="clamav daemon debug large-domain ldap logrotate mysql oracle postgres \
- sqlite sqlite3 virtual-users user-homedirs"
-
-DEPEND="clamav? ( >=app-antivirus/clamav-0.86 )
- ldap? ( >=net-nds/openldap-2.2 )
- mysql? ( virtual/mysql )
- postgres? ( >=dev-db/postgresql-7.4.3 )
- sqlite? ( <dev-db/sqlite-3 )
- sqlite3? ( =dev-db/sqlite-3* )"
-
-RDEPEND="${DEPEND}
- sys-process/cronbase
- virtual/logger
- logrotate? ( app-admin/logrotate )"
-
-KEYWORDS="~alpha ~amd64 ~ppc sparc x86"
-
-# some FHS-like structure
-HOMEDIR="/var/spool/dspam"
-CONFDIR="/etc/mail/dspam"
-LOGDIR="/var/log/dspam"
-DSPAMPERMS=2511
-
-create_dspam_usergroup() {
- local egid euid
- #Need a UID and GID >= 1000, for being able to use suexec in apache
- for euid in $(seq 1000 5000 ) ; do
- [[ -z $(egetent passwd ${euid}) ]] && break
- done
- for egid in $(seq 1000 5000 ) ; do
- [[ -z $(egetent group ${egid}) ]] && break
- done
-
- enewgroup dspam ${egid}
- enewuser dspam ${euid} -1 ${HOMEDIR} dspam,mail
-}
-
-pkg_setup() {
- if use virtual-users && use user-homedirs ; then
- eerror "If the users are virtual, then they probably should not have home directories."
- die "Incompatible USE flag selection"
- fi
-
- create_dspam_usergroup
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- EPATCH_SUFFIX="patch"
- epatch "${WORKDIR}"/patches
-
- # Fix Lazy bindings
- append-flags $(bindnow-flags)
-
- AT_M4DIR="${S}/m4"
- eautoreconf
-}
-
-src_compile() {
- local myconf="--enable-long-usernames --enable-syslog"
-
- use large-domain && myconf="${myconf} --enable-large-scale" || \
- myconf="${myconf} --enable-domain-scale"
-
- use user-homedirs && myconf="${myconf} --enable-homedir"
-
- use debug && myconf="${myconf} --enable-debug --enable-bnr-debug"
-
- if use virtual-users ; then
- if use mysql || use postgres || use oracle ; then
- myconf="${myconf} --enable-virtual-users"
- fi
- fi
-
- if use mysql || use postgres ; then
- myconf="${myconf} --enable-preferences-extension"
- fi
-
- local STORAGE
- # select storage driver
- if use sqlite ; then
- if [ "$STORAGE" ] ; then STORAGE="${STORAGE}," ; fi
- STORAGE="${STORAGE}sqlite_drv"
- fi
- if use sqlite3 ; then
- if [ "$STORAGE" ] ; then STORAGE="${STORAGE}," ; fi
- STORAGE="${STORAGE}sqlite3_drv"
- fi
- if use mysql; then
- if [ "$STORAGE" ] ; then STORAGE="${STORAGE}," ; fi
- STORAGE="${STORAGE}mysql_drv"
- myconf="${myconf} --with-mysql-includes=/usr/include/mysql"
- myconf="${myconf} --with-mysql-libraries=/usr/lib/mysql"
- fi
- if use postgres ; then
- if [ "$STORAGE" ] ; then STORAGE="${STORAGE}," ; fi
- STORAGE="${STORAGE}pgsql_drv"
- myconf="${myconf} --with-pgsql-includes=/usr/include/postgresql"
- myconf="${myconf} --with-pgsql-libraries=/usr/lib/postgresql"
- fi
- if use oracle ; then
- if [ "$STORAGE" ] ; then STORAGE="${STORAGE}," ; fi
- STORAGE="${STORAGE}ora_drv"
- myconf="${myconf} --with-oracle-home=${ORACLE_HOME}"
-
- # I am in no way a Oracle specialist. If someone knows
- # how to query the version of Oracle, then let me know.
- if (expr ${ORACLE_HOME/*\/} : 10 1>/dev/null 2>&1); then
- myconf="${myconf} --with-oracle-version=10"
- fi
- fi
- if [[ -z "${STORAGE}" ]]; then
- STORAGE="${STORAGE}hash_drv"
- fi
-
- econf ${myconf} --with-storage-driver=${STORAGE} \
- --with-dspam-home=${HOMEDIR} \
- --sysconfdir=${CONFDIR} \
- $(use_enable daemon) \
- $(use_enable ldap) \
- $(use_enable clamav) \
- --with-dspam-group=dspam \
- --with-dspam-home-group=dspam \
- --with-dspam-mode=${DSPAMPERMS} \
- --with-logdir=${LOGDIR} || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install () {
- diropts -m0770 -o dspam -g dspam
- dodir ${CONFDIR}
- insinto ${CONFDIR}
- insopts -m640 -o dspam -g dspam
- doins src/dspam.conf
-
- dosym /etc/mail/dspam /etc/dspam
-
- # make install
- make DESTDIR="${D}" install || die "make install failed"
-
- dodir /usr/lib/dspam
- if [[ "${D}"/usr/lib/*drv* != *"*" ]]; then
- mv "${D}"/usr/lib/*drv* "${D}"/usr/lib/dspam/
- fi
-
- diropts -m0755 -o dspam -g dspam
- keepdir /var/run/dspam
-
- # create logdir
- if use debug ; then
- diropts -m0770 -o dspam -g dspam
- keepdir ${LOGDIR}
- fi
-
- #clean options
- diropts -m0755
- insopts -m0644
-
- if use daemon; then
- # We use sockets for the daemon instead of tcp port 24
- sed -e 's:^#*\(ServerDomainSocketPath[\t ]\{1,\}\).*:\1\"/var/run/dspam/dspam.sock\":gI' \
- -e 's:^#*\(ServerPID[\t ]\{1,\}\).*:\1/var/run/dspam/dspam.pid:gI' \
- -e 's:^#*\(ClientHost[\t ]\{1,\}\)/.*:\1\"/var/run/dspam/dspam.sock\":gI' \
- -i "${D}/${CONFDIR}/dspam.conf"
-
- newinitd "${FILESDIR}/dspam.rc" dspam
-
- fowners root:dspam /usr/bin/dspamc
- fperms u=rx,g=xs,o=x /usr/bin/dspamc
- fi
-
- # generate random password
- local PASSWORD="${RANDOM}${RANDOM}${RANDOM}${RANDOM}"
-
- # database related configuration and scripts
- if use sqlite; then
- insinto ${CONFDIR}
- newins src/tools.sqlite_drv/purge-2.sql sqlite_purge.sql
- fi
- if use sqlite3; then
- insinto ${CONFDIR}
- newins src/tools.sqlite_drv/purge-3.sql sqlite3_purge.sql
- fi
- if use mysql; then
- DSPAM_DB_DATA[0]="/var/run/mysqld/mysqld.sock"
- DSPAM_DB_DATA[1]=""
- DSPAM_DB_DATA[2]="dspam"
- DSPAM_DB_DATA[3]="${PASSWORD}"
- DSPAM_DB_DATA[4]="dspam"
- DSPAM_DB_DATA[5]="true"
-
- # Modify configuration and create mysql.data file
- sed -e "s:^#*\(MySQLServer[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[0]}:gI" \
- -e "s:^#*\(MySQLPort[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[1]}:gI" \
- -e "s:^#*\(MySQLUser[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[2]}:gI" \
- -e "s:^#*\(MySQLPass[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[3]}:gI" \
- -e "s:^#*\(MySQLDb[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[4]}:gI" \
- -e "s:^#*\(MySQLCompress[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[5]}:gI" \
- -i "${D}"/${CONFDIR}/dspam.conf
- for DB_DATA_INDEX in $(seq 0 $((${#DSPAM_DB_DATA[@]} - 1))); do
- echo "${DSPAM_DB_DATA[$DB_DATA_INDEX]}" >> "${D}"/${CONFDIR}/mysql.data
- done
-
- insinto ${CONFDIR}
- newins src/tools.mysql_drv/mysql_objects-space.sql mysql_objects-space.sql
- newins src/tools.mysql_drv/mysql_objects-speed.sql mysql_objects-speed.sql
- newins src/tools.mysql_drv/mysql_objects-4.1.sql mysql_objects-4.1.sql
- if use virtual-users ; then
- newins src/tools.mysql_drv/virtual_users.sql mysql_virtual_users.sql
- newins src/tools.mysql_drv/virtual_user_aliases.sql mysql_virtual_user_aliases.sql
- fi
- newins src/tools.mysql_drv/purge.sql mysql_purge.sql
- newins src/tools.mysql_drv/purge-4.1.sql mysql_purge-4.1.sql
-
- fperms 640 ${CONFDIR}/mysql.data
- fowners root:dspam ${CONFDIR}/mysql.data
- fi
- if use postgres ; then
- DSPAM_DB_DATA[0]="127.0.0.1"
- DSPAM_DB_DATA[1]="5432"
- DSPAM_DB_DATA[2]="dspam"
- DSPAM_DB_DATA[3]="${PASSWORD}"
- DSPAM_DB_DATA[4]="dspam"
-
- # Modify configuration and create pgsql.data file
- sed -e "s:^#*\(PgSQLServer[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[0]}:gI" \
- -e "s:^#*\(PgSQLPort[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[1]}:gI" \
- -e "s:^#*\(PgSQLUser[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[2]}:gI" \
- -e "s:^#*\(PgSQLPass[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[3]}:gI" \
- -e "s:^#*\(PgSQLDb[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[4]}:gI" \
- -e "s:^#*\(PgSQLConnectionCache[\t ]*.\):\1:gI" \
- -i "${D}"/${CONFDIR}/dspam.conf
- for DB_DATA_INDEX in $(seq 0 $((${#DSPAM_DB_DATA[@]} - 1))); do
- echo "${DSPAM_DB_DATA[$DB_DATA_INDEX]}" >> "${D}"/${CONFDIR}/pgsql.data
- done
-
- insinto ${CONFDIR}
- newins src/tools.pgsql_drv/pgsql_objects.sql pgsql_objects.sql
- if use virtual-users ; then
- newins src/tools.pgsql_drv/virtual_users.sql pgsql_virtual_users.sql
- fi
- newins src/tools.pgsql_drv/purge.sql pgsql_purge.sql
-
- fperms 640 ${CONFDIR}/pgsql.data
- fowners root:dspam ${CONFDIR}/pgsql.data
- fi
- if use oracle ; then
- DSPAM_DB_DATA[0]="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=PROD)))"
- DSPAM_DB_DATA[1]="dspam"
- DSPAM_DB_DATA[2]="${PASSWORD}"
- DSPAM_DB_DATA[3]="dspam"
-
- # Modify configuration and create oracle.data file
- sed -e "s:^#*\(OraServer[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[0]}:gI" \
- -e "s:^\(OraUser[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[1]}:gI" \
- -e "s:^\(OraPass[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[2]}:gI" \
- -e "s:^\(OraSchema[\t ]\{1,\}\).*:\1${DSPAM_DB_DATA[3]}:gI"\
- -i "${D}"/${CONFDIR}/dspam.conf
- for DB_DATA_INDEX in $(seq 0 $((${#DSPAM_DB_DATA[@]} - 1))); do
- echo "${DSPAM_DB_DATA[$DB_DATA_INDEX]}" >> "${D}"/${CONFDIR}/oracle.data
- done
-
- insinto ${CONFDIR}
- newins src/tools.ora_drv/oral_objects.sql ora_objects.sql
- if use virtual-users ; then
- newins src/tools.ora_drv/virtual_users.sql ora_virtual_users.sql
- fi
- newins src/tools.ora_drv/purge.sql ora_purge.sql
-
- fperms 640 ${CONFDIR}/oracle.data
- fowners root:dspam ${CONFDIR}/oracle.data
- fi
-
- sed -e "s:^\(Purge.*\):###\1:g" \
- -e "s:^#\(Purge.*\):\1:g" \
- -e "s:^###\(Purge.*\):#\1:g" \
- -i "${D}"/${CONFDIR}/dspam.conf
-
- # installs the notification messages
- # -> The documentation is wrong! The files need to be in ./txt
- insinto ${CONFDIR}/txt
- doins "${S}"/txt/*.txt
-
- # Create the opt-in / opt-out directories
- diropts -m0770 -o dspam -g dspam
- dodir ${HOMEDIR}
- keepdir ${HOMEDIR}/opt-in
- keepdir ${HOMEDIR}/opt-out
- diropts -m0755
-
- # logrotation scripts
- if use logrotate && use debug ; then
- insinto /etc/logrotate.d
- newins "${FILESDIR}/logrotate.dspam" dspam
- fi
-
- # dspam cron job
- exeinto /etc/cron.daily
- doexe "${FILESDIR}/dspam.cron"
-
- # documentation
- dodoc CHANGELOG README* RELEASE.NOTES UPGRADING
- docinto doc
- dodoc doc/*.txt
- docinto gentoo
- dodoc "${FILESDIR}/README.postfix" "${FILESDIR}/README.qmail"
- docinto sa_train
- dodoc "${WORKDIR}"/dspam_sa_trainer/*
- doman man/dspam*
-}
-
-pkg_preinst() {
- # Preserve *.data files
- local installed_datafiles="${ROOT}"/${CONFDIR}/*.data
- if [[ "${installed_datafiles}" != *"*.data" ]]; then
- cp "${ROOT}"/${CONFDIR}/*.data "${D}"/${CONFDIR}
- fi
-}
-
-pkg_postinst() {
- # need enewgroup/enewuser in this function for binary install.
- create_dspam_usergroup
-
- if use mysql || use postgres || use oracle; then
- elog
- elog "To setup DSPAM to run out-of-the-box on your system with a MySQL,"
- elog "PostgreSQL or Oracle database, run:"
- elog "emerge --config =${PF}"
- fi
-
- if use postgres && has_version ">dev-db/postgresql-8.0"; then
- elog
- elog "Before executing the configuration command mentioned above you have"
- elog "to execute the following command:"
- elog "createlang plpgsql -U postgres dspam"
- fi
-
- if use daemon; then
- elog
- elog "If you want to run DSPAM in the new daemon mode remember"
- elog "to make the DSPAM daemon start during boot:"
- elog " rc-update add dspam default"
- fi
- if use daemon ; then
- elog
- elog "To use the DSPAM daemon mode, the used storage driver must be thread-safe."
- fi
-
- elog
- elog "Edit /etc/mail/dspam.conf with your delivery agent"
- elog "See http://dspamwiki.expass.de/Installation for more info"
- elog
-}
-
-pkg_config () {
- local AVAIL_BACKENDS=()
- use mysql && AVAIL_BACKENDS=( ${AVAIL_BACKENDS[*]} mysql )
- use postgres && AVAIL_BACKENDS=( ${AVAIL_BACKENDS[*]} postgres )
- use sqlite && AVAIL_BACKENDS=( ${AVAIL_BACKENDS[*]} sqlite )
- use sqlite3 && AVAIL_BACKENDS=( ${AVAIL_BACKENDS[*]} sqlite3 )
- use oracle && AVAIL_BACKENDS=( ${AVAIL_BACKENDS[*]} oracle )
- local USE_BACKEND
- read -p "Which backend do you want to configure? (available backends are ${AVAIL_BACKENDS[*]}) " USE_BACKEND
- if [[ " ${AVAIL_BACKENDS[*]} " != *" ${USE_BACKEND} "* ]]
- then
- eerror "The '${USE_BACKEND}' backend is not available."
- return 1
- fi
-
- case "${USE_BACKEND}" in
-
- sqlite | sqlite3)
- einfo "sqlite_drv will automatically create the necessary database"
- ;;
-
- mysql)
- DSPAM_DB_DATA=( $(sed "s:^[\t ]*$:###:gI" "${ROOT}${CONFDIR}/mysql.data") )
- for DB_DATA_INDEX in $(seq 0 $((${#DSPAM_DB_DATA[@]} - 1))); do
- [[ "${DSPAM_DB_DATA[$DB_DATA_INDEX]}" = "###" ]] && DSPAM_DB_DATA[$DB_DATA_INDEX]=""
- done
- DSPAM_MySQL_USER="${DSPAM_DB_DATA[2]}"
- DSPAM_MySQL_PWD="${DSPAM_DB_DATA[3]}"
- DSPAM_MySQL_DB="${DSPAM_DB_DATA[4]}"
-
- local MYSQL_ROOT_USER=""
- echo -n "Please enter your administrative MySQL account (default root): "
- read MYSQL_ROOT_USER
- if [[ -z "${MYSQL_ROOT_USER}" ]]; then
- MYSQL_ROOT_USER="root"
- fi
- ewarn "When prompted for a password, please enter your MySQL ${MYSQL_ROOT_USER} password"
- ewarn
-
- einfo "Creating DSPAM MySQL database \"${DSPAM_MySQL_DB}\""
- /usr/bin/mysqladmin -u ${MYSQL_ROOT_USER} -p create ${DSPAM_MySQL_DB}
-
-
- if has_version ">=virtual/mysql-4.1"; then
- /usr/bin/mysql -u ${MYSQL_ROOT_USER} -p ${DSPAM_MySQL_DB} < ${CONFDIR}/mysql_objects-4.1.sql
- else
- einfo "Creating DSPAM MySQL tables for data objects"
- einfo " Please select what kind of object database you like to use."
- einfo " [1] Space optimized database"
- einfo " [2] Speed optimized database"
- einfo
- while true
- do
- read -n 1 -s -p " Press 1 or 2 on the keyboard to select database" DSPAM_MySQL_DB_Type
- [[ "${DSPAM_MySQL_DB_Type}" == "1" || "${DSPAM_MySQL_DB_Type}" == "2" ]] && echo && break
- done
-
- if [[ "${DSPAM_MySQL_DB_Type}" == "1" ]]; then
- /usr/bin/mysql -u ${MYSQL_ROOT_USER} -p ${DSPAM_MySQL_DB} < ${CONFDIR}/mysql_objects-space.sql
- else
- /usr/bin/mysql -u ${MYSQL_ROOT_USER} -p ${DSPAM_MySQL_DB} < ${CONFDIR}/mysql_objects-speed.sql
- fi
- fi
-
- if use virtual-users ; then
- einfo "Creating DSPAM MySQL database for virtual-users users"
- einfo " Please select what kind of virtual_uids table you like to use."
- einfo " [1] Virtual users added automatically (use this if this server is the primary MX)"
- einfo " [2] Virtual users added manually (use it if this server is a secondary MX)"
- einfo
- while true; do
- read -n 1 -s -p " Press 1 or 2 on the keyboard to select table type" DSPAM_MySQL_DB_Type
- [[ "${DSPAM_MySQL_DB_Type}" == "1" || "${DSPAM_MySQL_DB_Type}" == "2" ]] && echo && break
- done
-
- if [[ "${DSPAM_MySQL_DB_Type}" == "1" ]]; then
- /usr/bin/mysql -u ${MYSQL_ROOT_USER} -p ${DSPAM_MySQL_DB} < ${CONFDIR}/mysql_virtual_users.sql
- else
- /usr/bin/mysql -u ${MYSQL_ROOT_USER} -p ${DSPAM_MySQL_DB} < ${CONFDIR}/mysql_virtual_user_aliases.sql
- fi
- fi
-
- einfo "Creating DSPAM MySQL user \"${DSPAM_MySQL_USER}\""
- /usr/bin/mysql -u ${MYSQL_ROOT_USER} -p -e "GRANT SELECT,INSERT,UPDATE,DELETE ON ${DSPAM_MySQL_DB}.* TO ${DSPAM_MySQL_USER}@localhost IDENTIFIED BY '${DSPAM_MySQL_PWD}';FLUSH PRIVILEGES;" -D mysql
- ;;
-
- postgres)
- DSPAM_DB_DATA=( $(sed "s:^[\t ]*$:###:gI" "${ROOT}${CONFDIR}/pgsql.data") )
- for DB_DATA_INDEX in $(seq 0 $((${#DSPAM_DB_DATA[@]} - 1))); do
- [[ "${DSPAM_DB_DATA[$DB_DATA_INDEX]}" = "###" ]] && DSPAM_DB_DATA[$DB_DATA_INDEX]=""
- done
- DSPAM_PgSQL_USER="${DSPAM_DB_DATA[2]}"
- DSPAM_PgSQL_PWD="${DSPAM_DB_DATA[3]}"
- DSPAM_PgSQL_DB="${DSPAM_DB_DATA[4]}"
-
- ewarn "When prompted for a password, please enter your PgSQL postgres password"
- ewarn
-
- einfo "Creating DSPAM PostgreSQL database \"${DSPAM_PgSQL_DB}\" and user \"${DSPAM_PgSQL_USER}\""
- /usr/bin/psql -h localhost -d template1 -U postgres -c "CREATE USER ${DSPAM_PgSQL_USER} WITH PASSWORD '${DSPAM_PgSQL_PWD}' NOCREATEDB NOCREATEUSER; CREATE DATABASE ${DSPAM_PgSQL_DB}; GRANT ALL PRIVILEGES ON DATABASE ${DSPAM_PgSQL_DB} TO ${DSPAM_PgSQL_USER}; GRANT ALL PRIVILEGES ON SCHEMA public TO ${DSPAM_PgSQL_USER}; UPDATE pg_database SET datdba=(SELECT usesysid FROM pg_shadow WHERE usename='${DSPAM_PgSQL_USER}') WHERE datname='${DSPAM_PgSQL_DB}';"
-
- einfo "Creating DSPAM PostgreSQL tables"
- PGUSER=${DSPAM_PgSQL_USER} PGPASSWORD=${DSPAM_PgSQL_PWD} /usr/bin/psql -d ${DSPAM_PgSQL_DB} -U ${DSPAM_PgSQL_USER} -f ${CONFDIR}/pgsql_objects.sql 1>/dev/null 2>&1
-
- if use virtual-users ; then
- einfo "Creating DSPAM PostgreSQL database for virtual-users users"
- PGUSER=${DSPAM_PgSQL_USER} PGPASSWORD=${DSPAM_PgSQL_PWD} /usr/bin/psql -d ${DSPAM_PgSQL_DB} -U ${DSPAM_PgSQL_USER} -f ${CONFDIR}/pgsql_virtual_users.sql 1>/dev/null 2>&1
- fi
- ;;
-
- oracle)
- einfo "We have not enought Oracle knowledge to configure Oracle"
- einfo "automatically. If you know how, please post a message in"
- einfo "Gentoo Bugzilla."
- einfo
- einfo "You need manually to create the Oracle user for DSPAM and"
- einfo "the necessary database."
- einfo "But the DSPAM configuration file dspam.conf and oracle.data"
- einfo "was already configured with the necessary information to"
- einfo "access the database."
- einfo "Please read your dspam.conf, oracle.data and the README for"
- einfo "more info on how to setup DSPAM with Oracle."
- einfo "objects for each user upon first use of DSPAM by that user."
- ;;
-
- esac
-}
diff --git a/mail-filter/dspam/dspam-3.8.0-r1.ebuild b/mail-filter/dspam/dspam-3.8.0-r1.ebuild
index 2fc0c292932f..a9e1dbe4382e 100644
--- a/mail-filter/dspam/dspam-3.8.0-r1.ebuild
+++ b/mail-filter/dspam/dspam-3.8.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.8.0-r1.ebuild,v 1.3 2007/06/13 17:23:34 tsunam Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.8.0-r1.ebuild,v 1.4 2007/06/24 09:08:38 mrness Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -10,7 +10,7 @@ inherit eutils autotools flag-o-matic multilib
DESCRIPTION="A statistical-algorithmic hybrid anti-spam filter"
HOMEPAGE="http://dspam.nuclearelephant.com/"
SRC_URI="http://dspam.nuclearelephant.com/sources/${P}.tar.gz
- mirror://gentoo/${P}-patches-20070418.tar.gz
+ mirror://gentoo/${P}-patches-20070624.tar.gz
http://dspam.nuclearelephant.com/sources/extras/dspam_sa_trainer.tar.gz"
LICENSE="GPL-2"
@@ -58,6 +58,15 @@ pkg_setup() {
die "Incompatible USE flag selection"
fi
+ if ! ( use mysql || use postgres || use sqlite || use sqlite3 ) ; then
+ echo
+ ewarn "You didn't selected any database backend, therefore hash backend will be used."
+ ewarn "Be advised that hash backend has some issues (see http://bugs.gentoo.org/show_bug.cgi?id=179400),"
+ ewarn "Hit Ctrl-C now and select one database backend through the corespondent USE flag."
+ echo
+ ebeep
+ fi
+
create_dspam_usergroup
}
diff --git a/mail-filter/dspam/files/digest-dspam-3.6.8-r3 b/mail-filter/dspam/files/digest-dspam-3.6.8-r3
deleted file mode 100644
index 3ce3d4481d2a..000000000000
--- a/mail-filter/dspam/files/digest-dspam-3.6.8-r3
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 37d06acaf87dd0cdea8caa599474b099 dspam-3.6.8-patches-20070322.tar.gz 5518
-RMD160 76bc1194891527da5c221f0f8d33b806911e288b dspam-3.6.8-patches-20070322.tar.gz 5518
-SHA256 3f38801f4437053e71ccde146c62b1af0adb5be6bd7d7d34914565160ba00df4 dspam-3.6.8-patches-20070322.tar.gz 5518
-MD5 c4b1a7079690ee16d8b0f36b2a2a90a4 dspam-3.6.8.tar.gz 743275
-RMD160 93a70db14070cb61bd2ef1b0ca55a18be1dbfd7b dspam-3.6.8.tar.gz 743275
-SHA256 88c7b41fb81e90ba8a260885a1d14bce39f2ef4a06cc2c6b8bfa0b99ba1aec34 dspam-3.6.8.tar.gz 743275
-MD5 8ffe9d41e6104a4c6d19067528193145 dspam_sa_trainer.tar.gz 1230
-RMD160 c3d0fca7169d23ecf9d44c850ee255b42d97d818 dspam_sa_trainer.tar.gz 1230
-SHA256 8fb6b1ebe592acf00a028737ef8e174544af166768b987d29048b2319bc5a215 dspam_sa_trainer.tar.gz 1230
diff --git a/mail-filter/dspam/files/digest-dspam-3.8.0-r1 b/mail-filter/dspam/files/digest-dspam-3.8.0-r1
index 4ae7b9e258f7..86dd9ae31fc9 100644
--- a/mail-filter/dspam/files/digest-dspam-3.8.0-r1
+++ b/mail-filter/dspam/files/digest-dspam-3.8.0-r1
@@ -1,6 +1,6 @@
-MD5 1e0848291117bba17969d02bd72801a0 dspam-3.8.0-patches-20070418.tar.gz 7688
-RMD160 e1f0d0d1a67f917352e19ec11763e743c6791f43 dspam-3.8.0-patches-20070418.tar.gz 7688
-SHA256 f0e1c523205833bf1cdbedec16039fafedf9e802f4da6faa859f14411819b27a dspam-3.8.0-patches-20070418.tar.gz 7688
+MD5 1cf935d3402eb896a4fbca9c52abd108 dspam-3.8.0-patches-20070624.tar.gz 7808
+RMD160 bc0d8d439e7a9a89bfc3dfb4bee3a72d116abb6a dspam-3.8.0-patches-20070624.tar.gz 7808
+SHA256 6fcbb5b50d48d6aae716e88a52f4ed89debe93c0df875ff4c003c6147e2f8583 dspam-3.8.0-patches-20070624.tar.gz 7808
MD5 056b8c8b3ad9415a52c01b22ff1e64cf dspam-3.8.0.tar.gz 726160
RMD160 e7831e2415e30e819dd9cbc0ba3f269e113e2fb9 dspam-3.8.0.tar.gz 726160
SHA256 84a227934a7aee73516bdb82c33ee7b359e955c8cd95a1544a9a13069f79bfc7 dspam-3.8.0.tar.gz 726160