- 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:
Kirill Ponomarev 2004-04-09 23:54:16 +00:00
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

View file

@ -1,12 +1,12 @@
# ports collection Makefile for: bogofilter
# Whom: Matthias Andree <matthias.andree@web.de>
# Whom: Matthias Andree <matthias.andree@gmx.de>
# Date created: 2002-10-17
#
# $FreeBSD$
#
PORTNAME= bogofilter
PORTVERSION= 0.16.4
PORTVERSION= 0.17.5
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -14,19 +14,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= matthias.andree@gmx.de
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
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
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
@ -36,31 +26,25 @@ USE_PERL5_RUN= yes
GNU_CONFIGURE= yes
PATCH_STRIP= -p1
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db${WITH_DB_VER}" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="${libs}"
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
CONFIGURE_ENV+= PERL="${PERL}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALL_TARGET= install-strip prefix=${PREFIX}
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:
${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
${WRKSRC}/contrib/randomtrain \
${WRKSRC}/contrib/scramble \
${WRKSRC}/contrib/trainbogo.sh
.if !defined(PKGNAMESUFFIX) && ${WITH_DB_VER} != 42
pre-everything::
@${ECHO} ""
@${ECHO} "Use -DWITH_DB_VER=42 to link against db42 instead of the default db4"
@${ECHO} ""
.endif
${REINPLACE_CMD} -e 's|^#!.*perl|#! ${PERL}|' \
${WRKSRC}/src/tests/unsort.pl \
${WRKSRC}/contrib/bogofilter-milter.pl \
${WRKSRC}/contrib/bogominitrain.pl \
${WRKSRC}/contrib/mime.get.rfc822 \
${WRKSRC}/contrib/printmaildir.pl
.if !defined(NOPORTDOCS)
PORTDOCS= *
@ -72,19 +56,18 @@ post-build::
post-install::
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/contrib
@${MKDIR} ${DOCSDIR}/html
@${MKDIR} ${DOCSDIR}/programmer
@${MKDIR} ${DOCSDIR}/xml
.for i in contrib html programmer xml
@${MKDIR} ${DOCSDIR}/${i}
.endfor
.for i in AUTHORS COPYING INSTALL NEWS README README.cvs \
doc/README.validation TODO \
CHANGES-* RELEASE.NOTES-* \
doc/integrating-with-postfix doc/integrating-with-qmail \
doc/bogofilter-tuning.HOWTO doc/bogofilter-SA-2002-01 METHODS \
doc/README.tdb
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.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 \
contrib/randomtrain contrib/scramble \
contrib/mime.get.rfc822 contrib/printmaildir.pl \
@ -92,12 +75,13 @@ post-install::
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/${i}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
${INSTALL_MAN} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
${INSTALL_MAN} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
${INSTALL_DATA} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
.endif
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
MD5 (bogofilter-0.16.4.tar.bz2) = eafe4d23e3c2a01f72f854c90afb31ea
SIZE (bogofilter-0.16.4.tar.bz2) = 614298
MD5 (bogofilter-0.17.5.tar.bz2) = 9cdeebc3bb9edf9ef09a1b3f0bd09c42
SIZE (bogofilter-0.17.5.tar.bz2) = 620413

View 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

View file

@ -1,12 +1,12 @@
# ports collection Makefile for: bogofilter
# Whom: Matthias Andree <matthias.andree@web.de>
# Whom: Matthias Andree <matthias.andree@gmx.de>
# Date created: 2002-10-17
#
# $FreeBSD$
#
PORTNAME= bogofilter
PORTVERSION= 0.16.4
PORTVERSION= 0.17.5
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -14,19 +14,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= matthias.andree@gmx.de
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
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
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
@ -36,31 +26,25 @@ USE_PERL5_RUN= yes
GNU_CONFIGURE= yes
PATCH_STRIP= -p1
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db${WITH_DB_VER}" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="${libs}"
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
CONFIGURE_ENV+= PERL="${PERL}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALL_TARGET= install-strip prefix=${PREFIX}
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:
${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
${WRKSRC}/contrib/randomtrain \
${WRKSRC}/contrib/scramble \
${WRKSRC}/contrib/trainbogo.sh
.if !defined(PKGNAMESUFFIX) && ${WITH_DB_VER} != 42
pre-everything::
@${ECHO} ""
@${ECHO} "Use -DWITH_DB_VER=42 to link against db42 instead of the default db4"
@${ECHO} ""
.endif
${REINPLACE_CMD} -e 's|^#!.*perl|#! ${PERL}|' \
${WRKSRC}/src/tests/unsort.pl \
${WRKSRC}/contrib/bogofilter-milter.pl \
${WRKSRC}/contrib/bogominitrain.pl \
${WRKSRC}/contrib/mime.get.rfc822 \
${WRKSRC}/contrib/printmaildir.pl
.if !defined(NOPORTDOCS)
PORTDOCS= *
@ -72,19 +56,18 @@ post-build::
post-install::
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/contrib
@${MKDIR} ${DOCSDIR}/html
@${MKDIR} ${DOCSDIR}/programmer
@${MKDIR} ${DOCSDIR}/xml
.for i in contrib html programmer xml
@${MKDIR} ${DOCSDIR}/${i}
.endfor
.for i in AUTHORS COPYING INSTALL NEWS README README.cvs \
doc/README.validation TODO \
CHANGES-* RELEASE.NOTES-* \
doc/integrating-with-postfix doc/integrating-with-qmail \
doc/bogofilter-tuning.HOWTO doc/bogofilter-SA-2002-01 METHODS \
doc/README.tdb
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.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 \
contrib/randomtrain contrib/scramble \
contrib/mime.get.rfc822 contrib/printmaildir.pl \
@ -92,12 +75,13 @@ post-install::
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/${i}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
${INSTALL_MAN} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
${INSTALL_MAN} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
${INSTALL_DATA} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
.endif
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
MD5 (bogofilter-0.16.4.tar.bz2) = eafe4d23e3c2a01f72f854c90afb31ea
SIZE (bogofilter-0.16.4.tar.bz2) = 614298
MD5 (bogofilter-0.17.5.tar.bz2) = 9cdeebc3bb9edf9ef09a1b3f0bd09c42
SIZE (bogofilter-0.17.5.tar.bz2) = 620413

View 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