|
|
HOMEPAGE="http://dspam.nuclearelephant.com/" | HOMEPAGE="http://dspam.nuclearelephant.com/" |
LICENSE="GPL-2" | LICENSE="GPL-2" |
| |
IUSE="cyrus debug exim mysql maildrop neural oci8 postgres procmail sqlite sqlite3 large-domain virtual-users" |
IUSE="cyrus debug exim mysql maildrop neural oci8 postgres procmail sqlite sqlite3 large-domain virtual-users user-homedirs" |
DEPEND="exim? ( >=mail-mta/exim-4.34 ) | DEPEND="exim? ( >=mail-mta/exim-4.34 ) |
mysql? ( >=dev-db/mysql-3.23 ) || ( >=sys-libs/db-4.0 ) | mysql? ( >=dev-db/mysql-3.23 ) || ( >=sys-libs/db-4.0 ) |
maildrop? ( >=mail-filter/maildrop-1.5.3 ) | maildrop? ( >=mail-filter/maildrop-1.5.3 ) |
|
|
epause 30 | epause 30 |
fi | fi |
has_version ">sys-kernel/linux-headers-2.6" || ( | has_version ">sys-kernel/linux-headers-2.6" || ( |
einfo "To use the new DSPAM deamon mode, you need to emerge" |
einfo "To use the new DSPAM daemon mode, you need to emerge" |
einfo ">sys-kernel/linux-headers-2.6 and rebuild glibc to support NPTL" | einfo ">sys-kernel/linux-headers-2.6 and rebuild glibc to support NPTL" |
echo | echo |
ewarn "Waiting 30 seconds before starting..." |
ewarn "Waiting 10 seconds before starting..." |
ewarn "(Control-C to abort)..." | ewarn "(Control-C to abort)..." |
epause 30 |
epause 10 |
) | ) |
id dspam 2>/dev/null || enewgroup dspam 26 | id dspam 2>/dev/null || enewgroup dspam 26 |
id dspam 2>/dev/null || enewuser dspam 26 /bin/bash ${HOMEDIR} dspam |
id dspam 2>/dev/null || enewuser dspam 26 /bin/bash ${HOMEDIR} dspam |
|
if use virtual-users && use user-homedirs ; then |
|
ewarn "If the users are virtual, then they probably should not have home directories." |
|
fi |
|
if use user-homedirs ; then |
|
ewarn "WARNING: dspam-web will not work with user-homedirs. Disable this USE flag " |
|
ewarn "if you intend on using dspam-web." |
|
fi |
} | } |
| |
src_compile() { | src_compile() { |
|
|
myconf="${myconf} --with-dspam-group=dspam" | myconf="${myconf} --with-dspam-group=dspam" |
myconf="${myconf} --sysconfdir=${HOMEDIR}" | myconf="${myconf} --sysconfdir=${HOMEDIR}" |
myconf="${myconf} --with-logdir=${LOGDIR}" | myconf="${myconf} --with-logdir=${LOGDIR}" |
use virtual-users || myconf="${myconf} --enable-homedir" |
use user-homedirs && myconf="${myconf} --enable-homedir" |
| |
# enables support for debugging (touch /etc/dspam/.debug to turn on) | # enables support for debugging (touch /etc/dspam/.debug to turn on) |
# optional: even MORE debugging output, use with extreme caution! | # optional: even MORE debugging output, use with extreme caution! |