Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Experimental p0f support in CVS

2008-09-06 by Greg Troxel

I tried to build milter-greylist from CVS for the first time, and had
one minor problem.

I used the following script to pick up prereqs from pkgsrc, and to
overwrite my pkgsrc installation:

#!/bin/sh

CPPFLAGS=-I/usr/pkg/include \
LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" \
./configure \
--prefix=/usr/pkg \
--enable-dnsryesbl \
--enable-p0f

This caused build failures, because the makefile didn't respect
CPPFLAGS, and the following diff makes it work.

It seems odd to have Makfile checked in, given the configure creates it,
and I would also suggest not checking in configure, and adding an
autogen.sh script to run autoconf.

Index: Makefile.in
===================================================================
RCS file: /milter-greylist/milter-greylist/Makefile.in,v
retrieving revision 1.62
diff -u -p -r1.62 Makefile.in
--- Makefile.in 7 Sep 2008 00:13:34 -0000 1.62
+++ Makefile.in 6 Sep 2008 18:00:06 -0000
@@ -29,7 +29,7 @@
# OF THE POSSIBILITY OF SUCH DAMAGE.
#

-CFLAGS= @CFLAGS@ -D_BSD_SOURCE -I${SRCDIR} -I.
+CFLAGS= @CFLAGS@ -D_BSD_SOURCE -I${SRCDIR} -I. @CPPFLAGS@
LDFLAGS= @LDFLAGS@
LIBS= @LIBS@
prefix= @prefix@
@@ -129,7 +129,7 @@ install-db:
install: install-daemon-to-bin install-man install-conf install-db

depend:
- ${MKDEP} ${CFLAGS} ${SRC}
+ ${MKDEP} ${CPPFLAGS} ${CFLAGS} ${SRC}

clean:
${RM} -f milter-greylist ${OBJ} ${GENSRC} \

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.