diff options
author | Lim Swee Tat <st_lim@gentoo.org> | 2004-08-26 09:53:08 +0000 |
---|---|---|
committer | Lim Swee Tat <st_lim@gentoo.org> | 2004-08-26 09:53:08 +0000 |
commit | c49d914824efd206b9e39e9b25b2088e6e716748 (patch) | |
tree | ead6dbf0f40e768eff0cd15cb64aa55caef899b0 /mail-filter | |
parent | fix digest (diff) | |
download | historical-c49d914824efd206b9e39e9b25b2088e6e716748.tar.gz historical-c49d914824efd206b9e39e9b25b2088e6e716748.tar.bz2 historical-c49d914824efd206b9e39e9b25b2088e6e716748.zip |
Fixed bug As we have bluez-libs 2.8 in repository I patched gammu to not link with
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/dspam/ChangeLog | 6 | ||||
-rw-r--r-- | mail-filter/dspam/Manifest | 4 | ||||
-rw-r--r-- | mail-filter/dspam/dspam-3.1.1.ebuild | 34 |
3 files changed, 31 insertions, 13 deletions
diff --git a/mail-filter/dspam/ChangeLog b/mail-filter/dspam/ChangeLog index 5f39f8684ae2..9573d44a4852 100644 --- a/mail-filter/dspam/ChangeLog +++ b/mail-filter/dspam/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for mail-filter/dspam # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/ChangeLog,v 1.11 2004/08/22 17:00:36 st_lim Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/ChangeLog,v 1.12 2004/08/26 09:53:08 st_lim Exp $ + + 26 Aug 2004; Lim Swee Tat <st_lim@gentoo.org> dspam-3.1.1.ebuild: + Solved bug #61564 with the help of steveb <tp22a@softhome.net>. + Now able to offer a choice of speed optimized or space optimized mysql data. 23 Aug 2004; Lim Swee Tat <st_lim@gentoo.org> dspam-3.1.1.ebuild: Fixed bug #61200 diff --git a/mail-filter/dspam/Manifest b/mail-filter/dspam/Manifest index 99d531811fed..2fad54fc4184 100644 --- a/mail-filter/dspam/Manifest +++ b/mail-filter/dspam/Manifest @@ -1,7 +1,7 @@ -MD5 2a34219a36d5909ce6b8057b7931cf9c dspam-3.1.1.ebuild 14645 +MD5 aef3fd8ad052e39a73eec6b5f8296c60 dspam-3.1.1.ebuild 15347 MD5 ae3a688715ae77f8c9acfa862adbb8e8 dspam-3.0.0.ebuild 6928 MD5 0b670a5ca13881c4f77d70935c913dcf dspam-3.1.0.ebuild 9277 -MD5 397a9408f9f8bf216378c46b107219fa ChangeLog 2480 +MD5 9236dfdbe8e221e9ad393888c2ab6a6d ChangeLog 2694 MD5 02610fe17122bb3a27ca3dcbf7374fcc metadata.xml 311 MD5 2cd345708a9889a04c472a9e5be7400e files/untrusted.mailer_args 24 MD5 2a79c945ef6c7e7bd45aa1d46ae99e69 files/mysql_install_db 114 diff --git a/mail-filter/dspam/dspam-3.1.1.ebuild b/mail-filter/dspam/dspam-3.1.1.ebuild index 7d3b682aad38..8102c0beda2c 100644 --- a/mail-filter/dspam/dspam-3.1.1.ebuild +++ b/mail-filter/dspam/dspam-3.1.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.1.1.ebuild,v 1.2 2004/08/22 17:00:36 st_lim Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.1.1.ebuild,v 1.3 2004/08/26 09:53:08 st_lim Exp $ inherit eutils @@ -30,8 +30,6 @@ DATADIR="/var/spool/dspam" LOGDIR="/var/log/dspam" CONFIGDIR="${HOMEDIR}/config" -MYSQL_TABLE_TYPE="space.optimized" - pkg_setup() { if (use mysql && use postgres) || \ (use mysql && use oci8) || \ @@ -218,7 +216,8 @@ src_install () { doins ${T}/mysql.data fi - newins tools.mysql_drv/mysql_objects.sql mysql_objects.sql + newins tools.mysql_drv/mysql_objects.sql.speed.optimized mysql_objects.sql.speed.optimized + newins tools.mysql_drv/mysql_objects.sql.space.optimized mysql_objects.sql.space.optimized newins tools.mysql_drv/virtual_users.sql mysql_virtual_users.sql newins tools.mysql_drv/purge.sql mysql_purge.sql newins ${FILESDIR}/upgrade.sql mysql_upgrade.sql @@ -331,14 +330,30 @@ pkg_config () { einfo "Creating DSPAM MySQL database \"${DSPAM_MySQL_DB}\"" /usr/bin/mysqladmin -u root -p create ${DSPAM_MySQL_DB} - einfo "Creating DSPAM MySQL tables" - /usr/bin/mysql -u root -p ${DSPAM_MySQL_DB} < ${CONFIGDIR}/mysql_objects.sql + 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" ]] && break + done + + if [ "${DSPAM_MySQL_DB_Type}" == "1" ] + then + /usr/bin/mysql -u root -p ${DSPAM_MySQL_DB} < ${CONFIGDIR}/mysql_objects.sql.space.optimized + else + /usr/bin/mysql -u root -p ${DSPAM_MySQL_DB} < ${CONFIGDIR}/mysql_objects.sql.speed.optimized + fi + + einfo "Creating DSPAM MySQL database for virtual users" /usr/bin/mysql -u root -p ${DSPAM_MySQL_DB} < ${CONFIGDIR}/mysql_virtual_users.sql einfo "Creating DSPAM MySQL user \"${DSPAM_MySQL_USER}\"" /usr/bin/mysql -u root -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 - fi - if use postgres ; then + elif use postgres ; then [[ -f ${CONFIGDIR}/pgsql.data ]] && mv -f ${CONFIGDIR}/pgsql.data ${HOMEDIR} DSPAM_PgSQL_USER="$(cat ${HOMEDIR}/pgsql.data|head -n 3|tail -n 1)" DSPAM_PgSQL_PWD="$(cat ${HOMEDIR}/pgsql.data|head -n 4|tail -n 1)" @@ -375,8 +390,7 @@ pkg_config () { done /usr/bin/psql -d ${DSPAM_PgSQL_DB} -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE ${DSPAM_PgSQL_DB} TO ${DSPAM_PgSQL_USER};" 1>/dev/null 2>&1 /usr/bin/psql -d ${DSPAM_PgSQL_DB} -U postgres -c "GRANT ALL PRIVILEGES ON SCHEMA public TO ${DSPAM_PgSQL_USER};" 1>/dev/null 2>&1 - fi - if use oci8 ; then + elif use oci8 ; then [[ -f ${CONFIGDIR}/oracle.data ]] && mv -f ${CONFIGDIR}/oracle.data ${HOMEDIR} fi |