summaryrefslogtreecommitdiff
path: root/www/c-icap/patches
diff options
context:
space:
mode:
authoradam <adam>2011-05-11 04:29:18 +0000
committeradam <adam>2011-05-11 04:29:18 +0000
commit369482166873520727bdd23efe9b0a326c222f40 (patch)
tree423df7c7cc28a897662fd9b41e1300ad0caf78a0 /www/c-icap/patches
parentd30e05dc964a320707d14ca0e77c087be129a6b0 (diff)
downloadpkgsrc-369482166873520727bdd23efe9b0a326c222f40.tar.gz
c-icap is an implementation of an ICAP server. It can be used with HTTP proxies
that support the ICAP protocol to implement content adaptation and filtering services. Most of the commercial HTTP proxies must support the ICAP protocol. The open source Squid 3.x proxy server supports it.
Diffstat (limited to 'www/c-icap/patches')
-rw-r--r--www/c-icap/patches/patch-Makefile.in21
-rw-r--r--www/c-icap/patches/patch-configure29
2 files changed, 50 insertions, 0 deletions
diff --git a/www/c-icap/patches/patch-Makefile.in b/www/c-icap/patches/patch-Makefile.in
new file mode 100644
index 00000000000..6f7bc0fa065
--- /dev/null
+++ b/www/c-icap/patches/patch-Makefile.in
@@ -0,0 +1,21 @@
+$NetBSD: patch-Makefile.in,v 1.1.1.1 2011/05/11 04:29:18 adam Exp $
+
+Handle configuration files.
+
+--- Makefile.in.orig 2011-03-28 19:22:39.000000000 +0000
++++ Makefile.in
+@@ -1560,11 +1560,9 @@ doc:
+ $(DOXYGEN) c-icap.dox
+
+ install-data-local:
+- $(mkinstalldirs) $(DESTDIR)$(CONFIGDIR);
+- $(INSTALL) c-icap.conf $(DESTDIR)$(CONFIGDIR)/c-icap.conf.default
+- $(INSTALL) c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic.default
+- if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.conf; then $(INSTALL) c-icap.conf $(DESTDIR)$(CONFIGDIR)/c-icap.conf; fi
+- if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.magic; then $(INSTALL) c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic; fi
++ $(mkinstalldirs) $(DESTDIR)$(datadir)/c-icap;
++ $(INSTALL) c-icap.conf $(DESTDIR)$(datadir)/c-icap/c-icap.conf.default
++ $(INSTALL) c-icap.magic $(DESTDIR)$(datadir)/c-icap/c-icap.magic.default
+ $(mkinstalldirs) $(DESTDIR)$(LOGDIR);
+ $(mkinstalldirs) $(DESTDIR)$(SOCKDIR);
+ chgrp nogroup $(DESTDIR)$(LOGDIR) || echo -e "*********\nWARNING! Can not set group for the log dir $(DESTDIR)$(LOGDIR)\n*********\n"
diff --git a/www/c-icap/patches/patch-configure b/www/c-icap/patches/patch-configure
new file mode 100644
index 00000000000..9753a816942
--- /dev/null
+++ b/www/c-icap/patches/patch-configure
@@ -0,0 +1,29 @@
+$NetBSD: patch-configure,v 1.1.1.1 2011/05/11 04:29:18 adam Exp $
+
+Detect Berkeley DB.
+
+--- configure.orig 2011-05-05 12:27:48.000000000 +0000
++++ configure
+@@ -11647,11 +11647,11 @@ rm -f core conftest.err conftest.$ac_obj
+ # Save old CFLAGS/LDFLAGS
+ OLDCFLAGS=$CFLAGS
+ OLDLDFLAGS=$LDFLAGS
+- for DBVER in 49 48 47 46 45 44 43 42; do
++ for DBVER in 4 5 6; do
+ if test -d $libdbpath/include/db$DBVER; then
+ echo -n "checking for Berleley DB under $libdbpath/include/db$DBVER and $libdbpath/lib/db$DBVER... "
+ CFLAGS="-I$libdbpath/include/db$DBVER $OLDCFLAGS"
+- LDFLAGS="-L $libdbpath/lib/db$DBVER -ldb $OLDLDFLAGS"
++ LDFLAGS="-L $libdbpath/lib -ldb$DBVER $OLDLDFLAGS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -11665,7 +11665,7 @@ rm -f core conftest.err conftest.$ac_obj
+
+ _ACEOF
+ if ac_fn_c_try_link "$LINENO"; then :
+- echo yes;BDB_ADD_LDFLAG="-L$libdbpath/lib/db$DBVER -ldb"; BDB_ADD_FLAG="-I$libdbpath/include/db$DBVER";libdb="yes";
++ echo yes;BDB_ADD_LDFLAG="-L$libdbpath/lib -ldb$DBVER"; BDB_ADD_FLAG="-I$libdbpath/include/db$DBVER";libdb="yes";
+ else
+ libdb="no"; echo "no";
+