Building bmf-0.9.4_2.txz (origin /buildshare/ports/355755/mail/bmf) for powerpc-10-0 on XXX slot1: created x distfiles/ x distfiles/bmf-0.9.4.tar.gz x packages/ x packages/pkg-1.2.7_2.txz x packages/db4-4.0.14_1,1.txz ELF ldconfig path: /lib /usr/lib /usr/lib/compat Make depends ===> bmf-0.9.4_2 depends on file: /usr/local/sbin/pkg - not found ===> Verifying install for /usr/local/sbin/pkg in /buildshare/ports/355755/ports-mgmt/pkg ===> Installing existing package /packages/pkg-1.2.7_2.txz Installing pkg-1.2.7_2... done If you are upgrading from the old package format, first run: # pkg2ng ===> Returning to build of bmf-0.9.4_2 ===> bmf-0.9.4_2 depends on shared library: libdb4.so - not found ===> Verifying for libdb4.so in /buildshare/ports/355755/databases/db4 ===> Installing existing package /packages/db4-4.0.14_1,1.txz Installing db4-4.0.14_1,1... done ===> Returning to build of bmf-0.9.4_2 Make install ===> bmf-0.9.4_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by bmf-0.9.4_2 for building ===> Extracting for bmf-0.9.4_2 => SHA256 Checksum OK for bmf-0.9.4.tar.gz. ===> Patching for bmf-0.9.4_2 ===> Applying FreeBSD patches for bmf-0.9.4_2 /usr/bin/sed -i.bak -e 's/@@CC/cc/;s/@@CXX/c++/' /obj/buildshare/ports/355755/mail/bmf/work/bmf-0.9.4/configure /usr/bin/sed -i.bak -e 's/: checkroot/: /g' /obj/buildshare/ports/355755/mail/bmf/work/bmf-0.9.4/Makefile.in ===> bmf-0.9.4_2 depends on shared library: libdb4.so - found (/usr/local/lib/libdb4.so.0) ===> Configuring for bmf-0.9.4_2 ===> FreeBSD 10 autotools fix applied to /obj/buildshare/ports/355755/mail/bmf/work/bmf-0.9.4/configure Examining system setup... Looking for compiler... cc is executable. Checking for BerkeleyDB... enabled. Checking for MySQL... disabled. Configuration successful. Now run 'make all' and 'make install'. ===> Building for bmf-0.9.4_2 cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -DPACKAGE=\"bmf\" -DVERSION=\"0.9.4\" -c bmf.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c filt.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c dbmysql.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c dbdb.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c dbtext.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c dbh.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c lex.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c vec.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c str.c cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -c dbg.c cc -o bmf bmf.o filt.o dbmysql.o dbdb.o dbtext.o dbh.o lex.o vec.o str.o dbg.o -L/usr/local/lib -ldb4 cc -DNDEBUG -D_UNIX -D_BSD=50 -Wall -DHAVE_LIBDB -DPACKAGE=\"bmfconv\" -DVERSION=\"0.9.4\" -c bmfconv.c cc -o bmfconv bmfconv.o dbmysql.o dbdb.o dbtext.o dbh.o vec.o str.o dbg.o -L/usr/local/lib -ldb4 ===> Staging for bmf-0.9.4_2 ===> Generating temporary packing list [ -d /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/bin ] || mkdir -p /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/bin [ -d /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/man/man1 ] || mkdir -p /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/man/man1 cp bmf /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/bin cp bmf.1 /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/man/man1 cp bmfconv /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/bin cp bmfconv.1 /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/man/man1 /usr/bin/strip /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/bin/bmf /usr/bin/strip /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/bin/bmfconv /bin/mkdir -p /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/share/doc/bmf install -o root -g wheel -m 444 /obj/buildshare/ports/355755/mail/bmf/work/bmf-0.9.4/README /obj/buildshare/ports/355755/mail/bmf/work/stage/usr/local/share/doc/bmf ====> Compressing man pages (compress-man) ===> Installing for bmf-0.9.4_2 ===> Checking if mail/bmf already installed ===> Registering installation for bmf-0.9.4_2 Installing bmf-0.9.4_2... done ============================ === How to integrate bmf === ============================ For maildrop(1), use only one of the following examples. The first sample invokes bmf in its normal mode of operation and the second invokes bmf as a filter: ### Sample One # Invoke bmf and use return code to filter spam in one step exception { `bmf` if ( $RETURNCODE == 0 ) to $MAILDIR/spam } ### Sample Two # Invoke bmf as a filter exception { xfilter "bmf -p" if (/^X-Spam-Status: Yes/) to $MAILDIR/spam } For procmail(1), use only one of the following samples. SPAM will be filtered into $MAILDIR/spam. The first sample invokes bmf in its normal mode of operation and the second invokes bmf as a filter. ### begin sample one ### # Invoke bmf and use return code to filter spam in one step :0HB * ? bmf | formail -A"X-Spam-Status: Yes, tests=bmf" >>$MAILDIR/spam ### begin sample two ### # Invoke bmf as a filter :0 fw | bmf -p # Filter spam :0: ^X-Spam-Status: Yes $MAILDIR/spam If you put bmf in your maildrop or procmail scripts as suggested above, it will always register an email as either spam or non-spam. To reverse this registration and train bmf, the following mutt macros may be useful: macro index \ed "unset wait_key\nbmf -S\nset wait_key\n=spam\n" "Tags a given message as SPAM" macro index \et "bmf -t\nset wait_key\n" "Tests a given message to see if it is SPAM" macro index \eu "bmf -N\nset wait_key\n=inbox\n" "Untags a given message as SPAM" These will override these commands: d = de-register as non-spam, register as spam, and move to spam folder. t = test for spamicity. u = de-register as spam, register as non-spam, and move to inbox folder. Please see the ${PREFIX}/share/bmf/README for further details. Make package ===> Building package for bmf-0.9.4_2 slot1: removed