DSPAM is an open-source, freely available anti-spam solution designed to

combat unsolicited commercial email using advanced statistical analysis.
This commit is contained in:
jakob 2005-01-11 16:06:04 +00:00
parent f5d448568c
commit 7d301b931e
8 changed files with 172 additions and 0 deletions

83
mail/dspam/Makefile Normal file
View File

@ -0,0 +1,83 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/01/11 16:06:04 jakob Exp $
COMMENT= "anti-spam filter"
VERSION= 3.2.4
DISTNAME= dspam-${VERSION}
CATEGORIES= mail
MASTER_SITES= http://dspam.nuclearelephant.com/sources/
HOMEPAGE= http://dspam.nuclearelephant.com/
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
SEPARATE_BUILD= concurrent
CONFIGURE_ARGS+= --with-dspam-home=/var/dspam \
--with-dspam-home-owner=_dspam \
--with-dspam-home-group=_dspam \
--with-dspam-home-mode=0755 \
--with-dspam-owner=root \
--with-dspam-group=bin \
--with-dspam-mode=0555 \
--enable-long-usernames
DOCS= ${WRKSRC}/README ${WRKSRC}/README.*
EXAMPLESDIR= ${PREFIX}/share/examples/dspam
DRIVER=
FLAVORS= sqlite mysql pgsql
FLAVOR?= sqlite
.if ${FLAVOR:L:Msqlite}
.if !empty(DRIVER)
BROKEN= choose either mysql or pgsql or sqlite
.endif
CONFIGURE_ARGS+= --with-storage-driver=sqlite_drv \
--with-sqlite-includes=${LOCALBASE}/include \
--with-sqlite-libraries=${LOCALBASE}/lib
LIB_DEPENDS= sqlite.8.6::databases/sqlite
DRIVER= sqlite
.endif
.if ${FLAVOR:L:Mmysql}
.if !empty(DRIVER)
BROKEN= choose either mysql or pgsql or sqlite
.endif
CONFIGURE_ARGS+= --with-storage-driver=mysql_drv \
--with-mysql-includes=${LOCALBASE}/include/mysql \
--with-mysql-libraries=${LOCALBASE}/lib/mysql \
--enable-virtual-users
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
DRIVER= mysql
.endif
.if ${FLAVOR:L:Mpgsql}
.if !empty(DRIVER)
BROKEN= choose either mysql or pgsql or sqlite
.endif
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \
--with-pgsql-includes=${LOCALBASE}/include/postgresql \
--with-pgsql-libraries=${LOCALBASE}/lib \
--enable-virtual-users
LIB_DEPENDS+= pq.3:postgresql-client-*:databases/postgresql
DRIVER= pgsql
.endif
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKBUILD}/dspam.conf ${PREFIX}/share/examples/dspam/dspam.conf
${INSTALL_DATA} ${WRKSRC}/tools.${DRIVER}_drv/README ${EXAMPLESDIR}/README.${DRIVER}
${INSTALL_DATA} ${WRKSRC}/tools.${DRIVER}_drv/*.sql ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dspam
${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/dspam
.include <bsd.port.mk>

4
mail/dspam/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (dspam-3.2.4.tar.gz) = 30885376c7300c5abde37896b0ccf89a
RMD160 (dspam-3.2.4.tar.gz) = 6357ee0735d049592338e8b7dc82893ff478da94
SHA1 (dspam-3.2.4.tar.gz) = ed82baeb0643972d03da6168cf34bc62ac02693a
SIZE (dspam-3.2.4.tar.gz) = 620924

8
mail/dspam/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
DSPAM is an open-source, freely available anti-spam solution designed to
combat unsolicited commercial email using advanced statistical analysis.
In short, DSPAM filters spam by learning what spam is and isn't by
learning each user's individual mail behavior. This allows DSPAM to
provide highly-accurate, personalized filtering for each user on even a
large system and provides an administratively maintenance free solution
capable of learning each user's email behaviors with very few false
positives.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PFRAG.mysql,v 1.1.1.1 2005/01/11 16:06:04 jakob Exp $
share/examples/dspam/README.mysql
share/examples/dspam/mysql_objects-4.1.sql
share/examples/dspam/mysql_objects-space.sql
share/examples/dspam/mysql_objects-speed.sql
share/examples/dspam/neural.sql
share/examples/dspam/purge-4.1.sql
share/examples/dspam/purge.sql
share/examples/dspam/virtual_users.sql

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.pgsql,v 1.1.1.1 2005/01/11 16:06:04 jakob Exp $
share/examples/dspam/pgsql_objects.sql
share/examples/dspam/purge.sql
share/examples/dspam/virtual_users.sql

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2005/01/11 16:06:04 jakob Exp $
@lib lib/libdspam.so.6.0

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.sqlite,v 1.1.1.1 2005/01/11 16:06:04 jakob Exp $
share/examples/dspam/README.sqlite

60
mail/dspam/pkg/PLIST Normal file
View File

@ -0,0 +1,60 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/01/11 16:06:04 jakob Exp $
@newgroup _dspam:540
@newuser _dspam:540:540:daemon:DSPAM Account:/var/dspam:/sbin/nologin
%%SHARED%%
bin/dspam
bin/dspam_2sql
bin/dspam_admin
bin/dspam_clean
bin/dspam_corpus
bin/dspam_crc
bin/dspam_dump
bin/dspam_genaliases
bin/dspam_merge
bin/dspam_stats
include/dspam/
include/dspam/buffer.h
include/dspam/config.h
include/dspam/decode.h
include/dspam/error.h
include/dspam/lht.h
include/dspam/libdspam.h
include/dspam/libdspam_objects.h
include/dspam/nodetree.h
include/dspam/storage_driver.h
include/dspam/tbt.h
lib/libdspam.a
lib/libdspam.la
lib/pkgconfig/
lib/pkgconfig/dspam.pc
@man man/man1/dspam.1
@man man/man1/dspam_clean.1
@man man/man1/dspam_corpus.1
@man man/man1/dspam_dump.1
@man man/man1/dspam_merge.1
@man man/man1/dspam_stats.1
@man man/man3/dspam_addattribute.3
@man man/man3/dspam_attach.3
@man man/man3/dspam_create.3
@man man/man3/dspam_destroy.3
@man man/man3/dspam_detach.3
@man man/man3/dspam_getsource.3
@man man/man3/dspam_init.3
@man man/man3/dspam_process.3
@man man/man3/libdspam.3
share/doc/dspam/
share/doc/dspam/README
share/doc/dspam/README.courier
share/doc/dspam/README.exim
share/doc/dspam/README.pop3filter
share/doc/dspam/README.postfix
share/doc/dspam/README.qmail
share/doc/dspam/README.sendmail
share/examples/dspam/
share/examples/dspam/dspam.conf
%%sqlite%%
%%mysql%%
%%pgsql%%
@extraunexec rm -rf /var/dspam
@extra /etc/dspam.conf
@exec install -o _dspam -g _dspam -m 755 -d /var/dspam