Compile DB_File from Perl5.8 on FreeBSD with a different version of Berkley DB

I still like SquidGuard as a squid redirector and I use a couple of perl scripts to maintain the proxy blacklists from Urlblacklist.com. But in order to get the perl DB_File module working with the same version of BerkleyDB (3) that SquidGuard requires it is needed to change the default make file from the FreeBSD portstree

Add the following two options to the CONFIGURE_ARGS option of the perl5.8/Makefile :
-Dccflags=-I/usr/local/include/db3 \
-Alibswanted=db3 \

so that it lists :
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
-Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
-Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \
-Dman3dir=${PREFIX}/lib/perl5/${PERL_VER}/perl/man/man3 \
-Dman1dir=${PREFIX}/man/man1 \
-Dsitearch=${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH} \
-Dsitelib=${PREFIX}/${SITE_PERL_REL} -Dscriptdir=${PREFIX}/bin \
-Dsiteman3dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man3 \
-Dsiteman1dir=${PREFIX}/man/man1 \
-Ui_malloc -Ui_iconv -Uinstallusrbinperl \
-Dcc="${CC}" -Duseshrplib \
-Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\"
-Dccflags=-I/usr/local/include/db3 \
-Alibswanted=db3 \
LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \
LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \
LC_TIME=""

And compile/install the perl5.8 port with make install clean (or make deinstall reinstall clean to recompile/reinstall)

Posted by Administrator on Saturday, December 16, 2006

digg delicious technorati blinklist furl reddit