diff options
author | mandree <mandree@FreeBSD.org> | 2011-08-31 18:19:57 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2011-08-31 18:19:57 +0800 |
commit | a75b83532bd95393538fa05fa5e61d2df69a6f71 (patch) | |
tree | d67e4808653456d7275115f1e9ac8fef66f42b0d /mail | |
parent | ca2601aa1562053f2d05e4a0f1b05fe7c174a6de (diff) | |
download | freebsd-ports-gnome-a75b83532bd95393538fa05fa5e61d2df69a6f71.tar.gz freebsd-ports-gnome-a75b83532bd95393538fa05fa5e61d2df69a6f71.tar.zst freebsd-ports-gnome-a75b83532bd95393538fa05fa5e61d2df69a6f71.zip |
Fix contrib/trainbogo.sh to use md5 rather than md5sum.
Reported by: RW
Split CPPFLAGS from CONFIGURE_ENV.
Reported by: portlint
Diffstat (limited to 'mail')
-rw-r--r-- | mail/bogofilter/Makefile | 5 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-contrib__trainbogo.sh | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile index 48a2dd7b53e2..f816d7b46581 100644 --- a/mail/bogofilter/Makefile +++ b/mail/bogofilter/Makefile @@ -7,7 +7,7 @@ PORTNAME= bogofilter PORTVERSION= 1.2.2 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES?= mail MASTER_SITES= SF/bogofilter/bogofilter-current/bogofilter-${PORTVERSION} @@ -50,8 +50,9 @@ LIB_DEPENDS+= gsl.16:${PORTSDIR}/math/gsl .else CONFIGURE_ARGS+= --with-included-gsl .endif +CPPFLAGS+= ${BF_CPPFLAGS} CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" LIBS="${BF_LIBS}" \ - PERL="${PERL}" CPPFLAGS="${BF_CPPFLAGS}" + PERL="${PERL}" INSTALL_TARGET= install-strip prefix=${PREFIX} mandir=${MANPREFIX}/man MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1 \ diff --git a/mail/bogofilter/files/patch-contrib__trainbogo.sh b/mail/bogofilter/files/patch-contrib__trainbogo.sh new file mode 100644 index 000000000000..0d7cd5742567 --- /dev/null +++ b/mail/bogofilter/files/patch-contrib__trainbogo.sh @@ -0,0 +1,11 @@ +--- ./contrib/trainbogo.sh.orig 2007-07-24 00:44:06.000000000 +0200 ++++ ./contrib/trainbogo.sh 2011-08-31 12:15:20.000000000 +0200 +@@ -181,7 +181,7 @@ + for i in "${hamdir}"/* "${spamdir}"/* + do + [ ! -f "${i}" ] && continue +- md5=$(printf "%s" "${rndseed}${i}" | md5sum | sed "s/ -//") ++ md5=$(printf "%s" "${rndseed}${i}" | md5) + echo "${md5} ${i}" >> "${list}" + done + |