Changes 0.2.1:

* Bug fixes
This commit is contained in:
adam 2012-07-29 10:11:17 +00:00
parent b3a10ff307
commit 042cd1eb4b
14 changed files with 99 additions and 60 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.2 2011/08/31 07:47:17 adam Exp $ # $NetBSD: Makefile,v 1.3 2012/07/29 10:11:18 adam Exp $
DISTNAME= c_icap_modules-0.1.6 DISTNAME= c_icap_modules-0.2.1
PKGNAME= ${DISTNAME:S/_/-/g} PKGNAME= ${DISTNAME:S/_/-/g}
CATEGORIES= www CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=c-icap/} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=c-icap/}

View file

@ -1,5 +1,13 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/11 04:30:06 adam Exp $ @comment $NetBSD: PLIST,v 1.2 2012/07/29 10:11:18 adam Exp $
${PLIST.clamav}lib/c_icap/srv_clamav.la ${PLIST.clamav}lib/c_icap/virus_scan.la
bin/c-icap-mods-sguardDB
lib/c_icap/srv_url_check.la lib/c_icap/srv_url_check.la
${PLIST.clamav}share/c-icap/srv_clamav.conf.default ${PLIST.clamav}share/c-icap/virus_scan.conf.default
man/man8/c-icap-mods-sguardDB.8
share/c-icap/srv_url_check.conf.default share/c-icap/srv_url_check.conf.default
share/c_icap/templates/srv_url_check/en/DENY
${PLIST.clamav}share/c_icap/templates/virus_scan/en/VIRUS_FOUND
${PLIST.clamav}share/c_icap/templates/virus_scan/en/VIR_MODE_HEAD
${PLIST.clamav}share/c_icap/templates/virus_scan/en/VIR_MODE_PROGRESS
${PLIST.clamav}share/c_icap/templates/virus_scan/en/VIR_MODE_TAIL
${PLIST.clamav}share/c_icap/templates/virus_scan/en/VIR_MODE_VIRUS_FOUND

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.2 2011/08/31 07:47:17 adam Exp $ $NetBSD: distinfo,v 1.3 2012/07/29 10:11:18 adam Exp $
SHA1 (c_icap_modules-0.1.6.tar.gz) = 535f203e6665320f6b2cd93697f5acdcb37c8f0d SHA1 (c_icap_modules-0.2.1.tar.gz) = a8a6b4efabfc11b8eff955bbdf8c67b6fadff649
RMD160 (c_icap_modules-0.1.6.tar.gz) = 200d5a45f13b3e4159468445abdc113411eda1bb RMD160 (c_icap_modules-0.2.1.tar.gz) = c735e9a27f540f9d03d11f4d7cb4be502dcf6250
Size (c_icap_modules-0.1.6.tar.gz) = 321011 bytes Size (c_icap_modules-0.2.1.tar.gz) = 348245 bytes
SHA1 (patch-configure) = dd712ea5e18de59535200caef9d7298d5668dc58 SHA1 (patch-configure) = a666aa9b4b6b62c48899c0b5a659ef1cfc7d0d6a
SHA1 (patch-services_clamav_Makefile.in) = cb6b6445cbc2b9811f70b1cc115ff843d65dbbdd SHA1 (patch-services_url_check_Makefile.in) = 600105b3cce752ebc3d21b66638e454d98ac2d45
SHA1 (patch-services_url_check_Makefile.in) = 2033feaec3f6d8680c98106f17d24e862a3446dc SHA1 (patch-services_virus_scan_Makefile.in) = 8a1ce7d863757f8851a06d621a1163d7a605b893

View file

@ -1,4 +1,4 @@
# $NetBSD: options.mk,v 1.1.1.1 2011/05/11 04:30:06 adam Exp $ # $NetBSD: options.mk,v 1.2 2012/07/29 10:11:18 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.c-icap PKG_OPTIONS_VAR= PKG_OPTIONS.c-icap
PKG_SUPPORTED_OPTIONS= bdb clamav PKG_SUPPORTED_OPTIONS= bdb clamav
@ -20,7 +20,7 @@ CONFIGURE_ARGS+= --without-bdb
.if !empty(PKG_OPTIONS:Mclamav) .if !empty(PKG_OPTIONS:Mclamav)
PLIST.clamav= yes PLIST.clamav= yes
CONFIGURE_ARGS+= --with-clamav CONFIGURE_ARGS+= --with-clamav
CONF_FILES+= ${EGDIR}/srv_clamav.conf.default ${PKG_SYSCONFDIR}/srv_clamav.conf CONF_FILES+= ${EGDIR}/virus_scan.conf.default ${PKG_SYSCONFDIR}/virus_scan.conf
. include "../../security/clamav/buildlink3.mk" . include "../../security/clamav/buildlink3.mk"
.else .else
CONFIGURE_ARGS+= --without-clamav CONFIGURE_ARGS+= --without-clamav

View file

@ -1,10 +1,10 @@
$NetBSD: patch-configure,v 1.1.1.1 2011/05/11 04:30:06 adam Exp $ $NetBSD: patch-configure,v 1.2 2012/07/29 10:11:18 adam Exp $
Detect Berkeley DB. Detect Berkeley DB.
--- configure.orig 2011-05-05 13:16:38.000000000 +0000 --- configure.orig 2011-05-05 13:16:38.000000000 +0000
+++ configure +++ configure
@@ -11053,11 +11053,11 @@ rm -f core conftest.err conftest.$ac_obj @@ -11318,11 +11318,11 @@ rm -f core conftest.err conftest.$ac_obj
# Save old CFLAGS/LDFLAGS # Save old CFLAGS/LDFLAGS
OLDCFLAGS=$CFLAGS OLDCFLAGS=$CFLAGS
OLDLDFLAGS=$LDFLAGS OLDLDFLAGS=$LDFLAGS
@ -13,12 +13,12 @@ Detect Berkeley DB.
if test -d $libdbpath/include/db$DBVER; then if test -d $libdbpath/include/db$DBVER; then
echo -n "checking for Berleley DB under $libdbpath/include/db$DBVER and $libdbpath/lib/db$DBVER... " echo -n "checking for Berleley DB under $libdbpath/include/db$DBVER and $libdbpath/lib/db$DBVER... "
CFLAGS="-I$libdbpath/include/db$DBVER $OLDCFLAGS" CFLAGS="-I$libdbpath/include/db$DBVER $OLDCFLAGS"
- LDFLAGS="-L $libdbpath/lib/db$DBVER -ldb $OLDLDFLAGS" - LDFLAGS="-L$libdbpath/lib/db$DBVER -ldb $OLDLDFLAGS"
+ LDFLAGS="-L $libdbpath/lib -ldb$DBVER $OLDLDFLAGS" + LDFLAGS="-L$libdbpath/lib -ldb$DBVER $OLDLDFLAGS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@@ -11071,7 +11071,7 @@ rm -f core conftest.err conftest.$ac_obj @@ -11336,7 +11336,7 @@ rm -f core conftest.err conftest.$ac_obj
_ACEOF _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :

View file

@ -1,16 +0,0 @@
$NetBSD: patch-services_clamav_Makefile.in,v 1.1.1.1 2011/05/11 04:30:06 adam Exp $
Handle configuration files.
--- services/clamav/Makefile.in.orig 2011-05-05 13:25:53.000000000 +0000
+++ services/clamav/Makefile.in
@@ -548,8 +548,7 @@ uninstall-am: uninstall-cicapmoduleLTLIB
install-data-local:
- $(INSTALL) srv_clamav.conf $(DESTDIR)$(CONFIGDIR)/srv_clamav.conf.default
- if test ! -f $(DESTDIR)$(CONFIGDIR)/srv_clamav.conf; then $(INSTALL) srv_clamav.conf $(DESTDIR)$(CONFIGDIR)/srv_clamav.conf; fi
+ $(INSTALL) srv_clamav.conf $(DESTDIR)$(datadir)/c-icap/srv_clamav.conf.default
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View file

@ -1,11 +1,11 @@
$NetBSD: patch-services_url_check_Makefile.in,v 1.1.1.1 2011/05/11 04:30:06 adam Exp $ $NetBSD: patch-services_url_check_Makefile.in,v 1.2 2012/07/29 10:11:18 adam Exp $
Remove unwanted linker flag. Remove unwanted linker flag
Handle configuration files. Handle configuration files
--- services/url_check/Makefile.in.orig 2011-05-05 13:19:55.000000000 +0000 --- services/url_check/Makefile.in.orig 2011-05-05 13:19:55.000000000 +0000
+++ services/url_check/Makefile.in +++ services/url_check/Makefile.in
@@ -34,7 +34,7 @@ PRE_UNINSTALL = : @@ -35,7 +35,7 @@ PRE_UNINSTALL = :
POST_UNINSTALL = : POST_UNINSTALL = :
build_triplet = @build@ build_triplet = @build@
host_triplet = @host@ host_triplet = @host@
@ -13,14 +13,23 @@ Handle configuration files.
+@USEBDB_TRUE@am__append_1 = @BDB_ADD_LDFLAG@ +@USEBDB_TRUE@am__append_1 = @BDB_ADD_LDFLAG@
@USEBDB_TRUE@am__append_2 = @BDB_ADD_FLAG@ @USEBDB_TRUE@am__append_2 = @BDB_ADD_FLAG@
@USEBDB_TRUE@am__append_3 = sguardDB.c @USEBDB_TRUE@am__append_3 = sguardDB.c
subdir = services/url_check @USEBDB_TRUE@bin_PROGRAMS = c-icap-mods-sguardDB$(EXEEXT)
@@ -554,8 +554,7 @@ uninstall-am: uninstall-cicapmoduleLTLIB @@ -263,7 +263,7 @@ SUFFIXES = .8.in .8
man_MANS = $(manpages)
TMPLS = templates/en/DENY
@USEBDB_TRUE@c_icap_mods_sguardDB_SOURCES = sguardDB.c
-@USEBDB_TRUE@c_icap_mods_sguardDB_LDADD = @UTILITIES_LIBADD@ @BDB_ADD_LDFLAG@ -ldb
+@USEBDB_TRUE@c_icap_mods_sguardDB_LDADD = @UTILITIES_LIBADD@ @BDB_ADD_LDFLAG@
@USEBDB_TRUE@c_icap_mods_sguardDB_CFLAGS = @BDB_ADD_FLAG@ -DBUILD_SGUARD_TOOL
EXTRA_DIST = sguardDB.h url_check_body.h makefile.w32 srv_url_check.def srv_url_check.conf $(TMPLS) $(manpages_src)
all: all-am
@@ -720,8 +720,7 @@ uninstall-man: uninstall-man8
$(do_subst) < $< > $@
install-data-local: install-data-local:
- $(INSTALL) srv_url_check.conf $(DESTDIR)$(CONFIGDIR)/srv_url_check.conf.default - $(INSTALL) srv_url_check.conf $(DESTDIR)$(CONFIGDIR)/srv_url_check.conf.default
- if test ! -f $(DESTDIR)$(CONFIGDIR)/srv_url_check.conf; then $(INSTALL) srv_url_check.conf $(DESTDIR)$(CONFIGDIR)/srv_url_check.conf; fi - if test ! -f $(DESTDIR)$(CONFIGDIR)/srv_url_check.conf; then $(INSTALL) srv_url_check.conf $(DESTDIR)$(CONFIGDIR)/srv_url_check.conf; fi
+ $(INSTALL) srv_url_check.conf $(DESTDIR)$(datadir)/c-icap/srv_url_check.conf.default + $(INSTALL) srv_url_check.conf $(DESTDIR)$(datadir)/c-icap/srv_url_check.conf.default
$(mkinstalldirs) $(DESTDIR)$(cicapdatadir)/templates/srv_url_check/en
$(INSTALL) $(TMPLS) $(DESTDIR)$(cicapdatadir)/templates/srv_url_check/en/
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View file

@ -0,0 +1,16 @@
$NetBSD: patch-services_virus_scan_Makefile.in,v 1.1 2012/07/29 10:12:08 adam Exp $
Handle configuration files
--- services/virus_scan/Makefile.in.orig 2012-07-29 09:31:53.000000000 +0000
+++ services/virus_scan/Makefile.in
@@ -586,8 +586,7 @@ uninstall-am: uninstall-cicapmoduleLTLIB
install-data-local:
- $(INSTALL) virus_scan.conf $(DESTDIR)$(CONFIGDIR)/virus_scan.conf.default
- if test ! -f $(DESTDIR)$(CONFIGDIR)/virus_scan.conf; then $(INSTALL) virus_scan.conf $(DESTDIR)$(CONFIGDIR)/virus_scan.conf; fi
+ $(INSTALL) virus_scan.conf $(DESTDIR)$(datadir)/c-icap/virus_scan.conf.default
$(mkinstalldirs) $(DESTDIR)$(cicapdatadir)/templates/virus_scan/en/
for f in $(TMPLS); do $(INSTALL) $$f $(DESTDIR)$(cicapdatadir)/templates/virus_scan/en/; done

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.3 2011/08/31 07:42:06 adam Exp $ # $NetBSD: Makefile,v 1.4 2012/07/29 10:11:17 adam Exp $
DISTNAME= c_icap-0.1.6 DISTNAME= c_icap-0.2.1
PKGNAME= ${DISTNAME:S/_/-/} PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= www CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=c-icap/} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=c-icap/}

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/11 04:29:18 adam Exp $ @comment $NetBSD: PLIST,v 1.2 2012/07/29 10:11:17 adam Exp $
bin/c-icap bin/c-icap
bin/c-icap-client bin/c-icap-client
bin/c-icap-config bin/c-icap-config
@ -7,6 +7,7 @@ ${PLIST.bdb}bin/c-icap-mkbdb
bin/c-icap-stretch bin/c-icap-stretch
include/c_icap/access.h include/c_icap/access.h
include/c_icap/acl.h include/c_icap/acl.h
include/c_icap/array.h
include/c_icap/body.h include/c_icap/body.h
include/c_icap/c-icap-conf.h include/c_icap/c-icap-conf.h
include/c_icap/c-icap.h include/c_icap/c-icap.h
@ -40,6 +41,7 @@ lib/c_icap/dnsbl_tables.la
${PLIST.ldap}lib/c_icap/ldap_module.la ${PLIST.ldap}lib/c_icap/ldap_module.la
${PLIST.perl}lib/c_icap/perl_handler.la ${PLIST.perl}lib/c_icap/perl_handler.la
lib/c_icap/srv_echo.la lib/c_icap/srv_echo.la
lib/c_icap/srv_ex206.la
lib/c_icap/sys_logger.la lib/c_icap/sys_logger.la
lib/libicapapi.la lib/libicapapi.la
man/man8/c-icap-client.8 man/man8/c-icap-client.8

View file

@ -1,7 +1,8 @@
$NetBSD: distinfo,v 1.2 2011/08/31 07:42:07 adam Exp $ $NetBSD: distinfo,v 1.3 2012/07/29 10:11:17 adam Exp $
SHA1 (c_icap-0.1.6.tar.gz) = 31d322eacdc4fe3ee5f8d5d2c93d7f4faef1f7d7 SHA1 (c_icap-0.2.1.tar.gz) = aab7799da76f8caf2305e025f844e04c50ee5a6d
RMD160 (c_icap-0.1.6.tar.gz) = 3949976edb3fe3265563f280cc2929c590c44930 RMD160 (c_icap-0.2.1.tar.gz) = ffafde55389f817827440cf5624b2b2e7ddc4ee5
Size (c_icap-0.1.6.tar.gz) = 528708 bytes Size (c_icap-0.2.1.tar.gz) = 556687 bytes
SHA1 (patch-Makefile.in) = 50f68b9c071d9552a37360591a27d07590759b5b SHA1 (patch-Makefile.in) = 1e24956dee6d124c4f1e06d4bc6187ca0c2be52b
SHA1 (patch-configure) = ef069f6377c9b96c40af1301b03464e981436ba4 SHA1 (patch-configure) = 7c03ef488f20ac9cf1af6b59bb037330c0d5a337
SHA1 (patch-include_util.h) = 7e0a5e20dade3e7b62ddcad385cf81c1a772d6e6

View file

@ -1,10 +1,10 @@
$NetBSD: patch-Makefile.in,v 1.1.1.1 2011/05/11 04:29:18 adam Exp $ $NetBSD: patch-Makefile.in,v 1.2 2012/07/29 10:11:17 adam Exp $
Handle configuration files. Handle configuration files.
--- Makefile.in.orig 2011-03-28 19:22:39.000000000 +0000 --- Makefile.in.orig 2011-03-28 19:22:39.000000000 +0000
+++ Makefile.in +++ Makefile.in
@@ -1560,11 +1560,9 @@ doc: @@ -1581,11 +1581,9 @@ doc:
$(DOXYGEN) c-icap.dox $(DOXYGEN) c-icap.dox
install-data-local: install-data-local:

View file

@ -1,10 +1,10 @@
$NetBSD: patch-configure,v 1.1.1.1 2011/05/11 04:29:18 adam Exp $ $NetBSD: patch-configure,v 1.2 2012/07/29 10:11:17 adam Exp $
Detect Berkeley DB. Detect Berkeley DB.
--- configure.orig 2011-05-05 12:27:48.000000000 +0000 --- configure.orig 2011-05-05 12:27:48.000000000 +0000
+++ configure +++ configure
@@ -11647,11 +11647,11 @@ rm -f core conftest.err conftest.$ac_obj @@ -11658,11 +11658,11 @@ rm -f core conftest.err conftest.$ac_obj
# Save old CFLAGS/LDFLAGS # Save old CFLAGS/LDFLAGS
OLDCFLAGS=$CFLAGS OLDCFLAGS=$CFLAGS
OLDLDFLAGS=$LDFLAGS OLDLDFLAGS=$LDFLAGS
@ -13,12 +13,12 @@ Detect Berkeley DB.
if test -d $libdbpath/include/db$DBVER; then if test -d $libdbpath/include/db$DBVER; then
echo -n "checking for Berleley DB under $libdbpath/include/db$DBVER and $libdbpath/lib/db$DBVER... " echo -n "checking for Berleley DB under $libdbpath/include/db$DBVER and $libdbpath/lib/db$DBVER... "
CFLAGS="-I$libdbpath/include/db$DBVER $OLDCFLAGS" CFLAGS="-I$libdbpath/include/db$DBVER $OLDCFLAGS"
- LDFLAGS="-L $libdbpath/lib/db$DBVER -ldb $OLDLDFLAGS" - LDFLAGS="-L$libdbpath/lib/db$DBVER -ldb $OLDLDFLAGS"
+ LDFLAGS="-L $libdbpath/lib -ldb$DBVER $OLDLDFLAGS" + LDFLAGS="-L$libdbpath/lib -ldb$DBVER $OLDLDFLAGS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@@ -11665,7 +11665,7 @@ rm -f core conftest.err conftest.$ac_obj @@ -11676,7 +11676,7 @@ rm -f core conftest.err conftest.$ac_obj
_ACEOF _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :

View file

@ -0,0 +1,19 @@
$NetBSD: patch-include_util.h,v 1.1 2012/07/29 10:11:17 adam Exp $
On Mac OS X, strnstr declaration is different
--- include/util.h.orig 2012-05-27 20:30:13.000000000 +0000
+++ include/util.h
@@ -42,8 +42,12 @@ CI_DECLARE_FUNC(struct tm*) gmtime_r(con
#endif
#ifndef HAVE_STRNSTR
+#ifdef __APPLE__
+CI_DECLARE_FUNC(char *) strnstr(const char *s, const char *find, size_t slen);
+#else
CI_DECLARE_FUNC(const char *) strnstr(const char *s, const char *find, size_t slen);
#endif
+#endif
#ifndef HAVE_STRNCASESTR
CI_DECLARE_FUNC(const char *) strncasestr(const char *s, const char *find, size_t slen);