- Update to version 0.17.5
- will only use DB 4.2, no configuration possible As we don't use the Berkeley DB environment stuff (for concurrent or transactional libdb use - __db.NNN and log.NNNNNNNNNN files), DB 4.2 will deal with DB 4.0-created data base files just fine. This is a migration aid for future bogofilter versions that depend on DB 4.1 or newer. - INSTALL_MAN -> INSTALL_DATA - ECHO -> ECHO_MSG PR: ports/65382 Submitted by: maintainer
This commit is contained in:
parent
7c36a93577
commit
309ee6a8ae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106620
6 changed files with 74 additions and 82 deletions
|
@ -1,12 +1,12 @@
|
||||||
# ports collection Makefile for: bogofilter
|
# ports collection Makefile for: bogofilter
|
||||||
# Whom: Matthias Andree <matthias.andree@web.de>
|
# Whom: Matthias Andree <matthias.andree@gmx.de>
|
||||||
# Date created: 2002-10-17
|
# Date created: 2002-10-17
|
||||||
#
|
#
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= bogofilter
|
PORTNAME= bogofilter
|
||||||
PORTVERSION= 0.16.4
|
PORTVERSION= 0.17.5
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
|
@ -14,19 +14,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
MAINTAINER= matthias.andree@gmx.de
|
MAINTAINER= matthias.andree@gmx.de
|
||||||
COMMENT= "Fast, teachable, learning spam detector"
|
COMMENT= "Fast, teachable, learning spam detector"
|
||||||
|
|
||||||
# There is a sibling port, bogofilter-tdb, which presets different
|
|
||||||
# values for some of our variables
|
|
||||||
WITH_DB_VER?= 4
|
|
||||||
.if ${WITH_DB_VER} == 42
|
|
||||||
LIB_DEPENDS?= db-4.2:${PORTSDIR}/databases/db42
|
LIB_DEPENDS?= db-4.2:${PORTSDIR}/databases/db42
|
||||||
libs= -ldb-4.2
|
|
||||||
.else
|
|
||||||
WITH_DB_VER= 4
|
|
||||||
LIB_DEPENDS?= db4.0:${PORTSDIR}/databases/db4
|
|
||||||
libs= -ldb4
|
|
||||||
.endif
|
|
||||||
|
|
||||||
LIB_DEPENDS+= gsl.5:${PORTSDIR}/math/gsl
|
LIB_DEPENDS+= gsl.5:${PORTSDIR}/math/gsl
|
||||||
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
|
||||||
|
|
||||||
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
|
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
|
||||||
|
|
||||||
|
@ -36,31 +26,25 @@ USE_PERL5_RUN= yes
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
PATCH_STRIP= -p1
|
PATCH_STRIP= -p1
|
||||||
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
|
||||||
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db${WITH_DB_VER}" \
|
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
|
||||||
LDFLAGS="-L${LOCALBASE}/lib" LIBS="${libs}"
|
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
|
||||||
|
CONFIGURE_ENV+= PERL="${PERL}"
|
||||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||||
INSTALL_TARGET= install-strip prefix=${PREFIX}
|
INSTALL_TARGET= install-strip prefix=${PREFIX}
|
||||||
|
|
||||||
MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1
|
MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
|
||||||
|
|
||||||
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
|
|
||||||
IGNORE= "Does not compile on alpha 5.x \(infinite loop in build\)"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
|
${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
|
||||||
${WRKSRC}/contrib/randomtrain \
|
${WRKSRC}/contrib/randomtrain \
|
||||||
${WRKSRC}/contrib/scramble \
|
${WRKSRC}/contrib/scramble \
|
||||||
${WRKSRC}/contrib/trainbogo.sh
|
${WRKSRC}/contrib/trainbogo.sh
|
||||||
|
${REINPLACE_CMD} -e 's|^#!.*perl|#! ${PERL}|' \
|
||||||
.if !defined(PKGNAMESUFFIX) && ${WITH_DB_VER} != 42
|
${WRKSRC}/src/tests/unsort.pl \
|
||||||
pre-everything::
|
${WRKSRC}/contrib/bogofilter-milter.pl \
|
||||||
@${ECHO} ""
|
${WRKSRC}/contrib/bogominitrain.pl \
|
||||||
@${ECHO} "Use -DWITH_DB_VER=42 to link against db42 instead of the default db4"
|
${WRKSRC}/contrib/mime.get.rfc822 \
|
||||||
@${ECHO} ""
|
${WRKSRC}/contrib/printmaildir.pl
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
|
@ -72,19 +56,18 @@ post-build::
|
||||||
post-install::
|
post-install::
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
@${MKDIR} ${DOCSDIR}/contrib
|
.for i in contrib html programmer xml
|
||||||
@${MKDIR} ${DOCSDIR}/html
|
@${MKDIR} ${DOCSDIR}/${i}
|
||||||
@${MKDIR} ${DOCSDIR}/programmer
|
.endfor
|
||||||
@${MKDIR} ${DOCSDIR}/xml
|
|
||||||
.for i in AUTHORS COPYING INSTALL NEWS README README.cvs \
|
.for i in AUTHORS COPYING INSTALL NEWS README README.cvs \
|
||||||
doc/README.validation TODO \
|
doc/README.validation TODO \
|
||||||
CHANGES-* RELEASE.NOTES-* \
|
CHANGES-* RELEASE.NOTES-* \
|
||||||
doc/integrating-with-postfix doc/integrating-with-qmail \
|
doc/integrating-with-postfix doc/integrating-with-qmail \
|
||||||
doc/bogofilter-tuning.HOWTO doc/bogofilter-SA-2002-01 METHODS \
|
doc/bogofilter-tuning.HOWTO doc/bogofilter-SA-2002-01 METHODS \
|
||||||
doc/README.tdb
|
doc/README.tdb
|
||||||
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
${INSTALL_MAN} ${WRKSRC}/trio/AUTHORS ${DOCSDIR}/AUTHORS.trio
|
${INSTALL_DATA} ${WRKSRC}/trio/AUTHORS ${DOCSDIR}/AUTHORS.trio
|
||||||
.for i in contrib/bogo.R contrib/bogofilter-qfe \
|
.for i in contrib/bogo.R contrib/bogofilter-qfe \
|
||||||
contrib/randomtrain contrib/scramble \
|
contrib/randomtrain contrib/scramble \
|
||||||
contrib/mime.get.rfc822 contrib/printmaildir.pl \
|
contrib/mime.get.rfc822 contrib/printmaildir.pl \
|
||||||
|
@ -92,12 +75,13 @@ post-install::
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
||||||
.endfor
|
.endfor
|
||||||
.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
|
.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
|
||||||
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
||||||
.endfor
|
.endfor
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
|
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
|
||||||
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
|
||||||
${INSTALL_MAN} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
|
${INSTALL_DATA} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
|
||||||
${INSTALL_MAN} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
|
${INSTALL_DATA} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
|
||||||
.endif
|
.endif
|
||||||
|
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
MD5 (bogofilter-0.16.4.tar.bz2) = eafe4d23e3c2a01f72f854c90afb31ea
|
MD5 (bogofilter-0.17.5.tar.bz2) = 9cdeebc3bb9edf9ef09a1b3f0bd09c42
|
||||||
SIZE (bogofilter-0.16.4.tar.bz2) = 614298
|
SIZE (bogofilter-0.17.5.tar.bz2) = 620413
|
||||||
|
|
12
mail/bogofilter-current/pkg-install
Normal file
12
mail/bogofilter-current/pkg-install
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
if [ "$2" = "POST-INSTALL" ] && [ -e ${PKG_PREFIX}/etc/bogofilter.cf ] ; then
|
||||||
|
cat - <<_EOF
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------
|
||||||
|
The recent bogofilter versions have undergone substantial changes that can
|
||||||
|
affect compatibility and may require that you change your configuration.
|
||||||
|
|
||||||
|
See the RELEASE.NOTES-* files that shipped with bogofilter for details.
|
||||||
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
_EOF
|
||||||
|
fi
|
|
@ -1,12 +1,12 @@
|
||||||
# ports collection Makefile for: bogofilter
|
# ports collection Makefile for: bogofilter
|
||||||
# Whom: Matthias Andree <matthias.andree@web.de>
|
# Whom: Matthias Andree <matthias.andree@gmx.de>
|
||||||
# Date created: 2002-10-17
|
# Date created: 2002-10-17
|
||||||
#
|
#
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= bogofilter
|
PORTNAME= bogofilter
|
||||||
PORTVERSION= 0.16.4
|
PORTVERSION= 0.17.5
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
|
@ -14,19 +14,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
MAINTAINER= matthias.andree@gmx.de
|
MAINTAINER= matthias.andree@gmx.de
|
||||||
COMMENT= "Fast, teachable, learning spam detector"
|
COMMENT= "Fast, teachable, learning spam detector"
|
||||||
|
|
||||||
# There is a sibling port, bogofilter-tdb, which presets different
|
|
||||||
# values for some of our variables
|
|
||||||
WITH_DB_VER?= 4
|
|
||||||
.if ${WITH_DB_VER} == 42
|
|
||||||
LIB_DEPENDS?= db-4.2:${PORTSDIR}/databases/db42
|
LIB_DEPENDS?= db-4.2:${PORTSDIR}/databases/db42
|
||||||
libs= -ldb-4.2
|
|
||||||
.else
|
|
||||||
WITH_DB_VER= 4
|
|
||||||
LIB_DEPENDS?= db4.0:${PORTSDIR}/databases/db4
|
|
||||||
libs= -ldb4
|
|
||||||
.endif
|
|
||||||
|
|
||||||
LIB_DEPENDS+= gsl.5:${PORTSDIR}/math/gsl
|
LIB_DEPENDS+= gsl.5:${PORTSDIR}/math/gsl
|
||||||
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
|
||||||
|
|
||||||
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
|
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
|
||||||
|
|
||||||
|
@ -36,31 +26,25 @@ USE_PERL5_RUN= yes
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
PATCH_STRIP= -p1
|
PATCH_STRIP= -p1
|
||||||
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
|
||||||
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db${WITH_DB_VER}" \
|
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
|
||||||
LDFLAGS="-L${LOCALBASE}/lib" LIBS="${libs}"
|
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
|
||||||
|
CONFIGURE_ENV+= PERL="${PERL}"
|
||||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||||
INSTALL_TARGET= install-strip prefix=${PREFIX}
|
INSTALL_TARGET= install-strip prefix=${PREFIX}
|
||||||
|
|
||||||
MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1
|
MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
|
||||||
|
|
||||||
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
|
|
||||||
IGNORE= "Does not compile on alpha 5.x \(infinite loop in build\)"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
|
${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
|
||||||
${WRKSRC}/contrib/randomtrain \
|
${WRKSRC}/contrib/randomtrain \
|
||||||
${WRKSRC}/contrib/scramble \
|
${WRKSRC}/contrib/scramble \
|
||||||
${WRKSRC}/contrib/trainbogo.sh
|
${WRKSRC}/contrib/trainbogo.sh
|
||||||
|
${REINPLACE_CMD} -e 's|^#!.*perl|#! ${PERL}|' \
|
||||||
.if !defined(PKGNAMESUFFIX) && ${WITH_DB_VER} != 42
|
${WRKSRC}/src/tests/unsort.pl \
|
||||||
pre-everything::
|
${WRKSRC}/contrib/bogofilter-milter.pl \
|
||||||
@${ECHO} ""
|
${WRKSRC}/contrib/bogominitrain.pl \
|
||||||
@${ECHO} "Use -DWITH_DB_VER=42 to link against db42 instead of the default db4"
|
${WRKSRC}/contrib/mime.get.rfc822 \
|
||||||
@${ECHO} ""
|
${WRKSRC}/contrib/printmaildir.pl
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
|
@ -72,19 +56,18 @@ post-build::
|
||||||
post-install::
|
post-install::
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
@${MKDIR} ${DOCSDIR}/contrib
|
.for i in contrib html programmer xml
|
||||||
@${MKDIR} ${DOCSDIR}/html
|
@${MKDIR} ${DOCSDIR}/${i}
|
||||||
@${MKDIR} ${DOCSDIR}/programmer
|
.endfor
|
||||||
@${MKDIR} ${DOCSDIR}/xml
|
|
||||||
.for i in AUTHORS COPYING INSTALL NEWS README README.cvs \
|
.for i in AUTHORS COPYING INSTALL NEWS README README.cvs \
|
||||||
doc/README.validation TODO \
|
doc/README.validation TODO \
|
||||||
CHANGES-* RELEASE.NOTES-* \
|
CHANGES-* RELEASE.NOTES-* \
|
||||||
doc/integrating-with-postfix doc/integrating-with-qmail \
|
doc/integrating-with-postfix doc/integrating-with-qmail \
|
||||||
doc/bogofilter-tuning.HOWTO doc/bogofilter-SA-2002-01 METHODS \
|
doc/bogofilter-tuning.HOWTO doc/bogofilter-SA-2002-01 METHODS \
|
||||||
doc/README.tdb
|
doc/README.tdb
|
||||||
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
${INSTALL_MAN} ${WRKSRC}/trio/AUTHORS ${DOCSDIR}/AUTHORS.trio
|
${INSTALL_DATA} ${WRKSRC}/trio/AUTHORS ${DOCSDIR}/AUTHORS.trio
|
||||||
.for i in contrib/bogo.R contrib/bogofilter-qfe \
|
.for i in contrib/bogo.R contrib/bogofilter-qfe \
|
||||||
contrib/randomtrain contrib/scramble \
|
contrib/randomtrain contrib/scramble \
|
||||||
contrib/mime.get.rfc822 contrib/printmaildir.pl \
|
contrib/mime.get.rfc822 contrib/printmaildir.pl \
|
||||||
|
@ -92,12 +75,13 @@ post-install::
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
||||||
.endfor
|
.endfor
|
||||||
.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
|
.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
|
||||||
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
||||||
.endfor
|
.endfor
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
|
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
|
||||||
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
|
||||||
${INSTALL_MAN} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
|
${INSTALL_DATA} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
|
||||||
${INSTALL_MAN} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
|
${INSTALL_DATA} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
|
||||||
.endif
|
.endif
|
||||||
|
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
MD5 (bogofilter-0.16.4.tar.bz2) = eafe4d23e3c2a01f72f854c90afb31ea
|
MD5 (bogofilter-0.17.5.tar.bz2) = 9cdeebc3bb9edf9ef09a1b3f0bd09c42
|
||||||
SIZE (bogofilter-0.16.4.tar.bz2) = 614298
|
SIZE (bogofilter-0.17.5.tar.bz2) = 620413
|
||||||
|
|
12
mail/bogofilter/pkg-install
Normal file
12
mail/bogofilter/pkg-install
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
if [ "$2" = "POST-INSTALL" ] && [ -e ${PKG_PREFIX}/etc/bogofilter.cf ] ; then
|
||||||
|
cat - <<_EOF
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------
|
||||||
|
The recent bogofilter versions have undergone substantial changes that can
|
||||||
|
affect compatibility and may require that you change your configuration.
|
||||||
|
|
||||||
|
See the RELEASE.NOTES-* files that shipped with bogofilter for details.
|
||||||
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
_EOF
|
||||||
|
fi
|
Loading…
Reference in a new issue