From owner-freebsd-ports@FreeBSD.ORG Sun Jun 12 03:01:04 2011 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C727A1065678; Sun, 12 Jun 2011 03:01:04 +0000 (UTC) (envelope-from rpsfa@rit.edu) Received: from fast.rit.edu (fast.rit.edu [129.21.182.30]) by mx1.freebsd.org (Postfix) with ESMTP id 836CE8FC0C; Sun, 12 Jun 2011 03:01:04 +0000 (UTC) Received: from fast.rit.edu (localhost.rit.edu [127.0.0.1]) by fast.rit.edu (Postfix) with ESMTP id 8888F1D179; Sat, 11 Jun 2011 23:01:03 -0400 (EDT) X-Virus-Scanned: by amavisd-new at fast.rit.edu Received: from fast.rit.edu ([127.0.0.1]) by fast.rit.edu (fast.rit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hhskfONA-mqT; Sat, 11 Jun 2011 23:01:02 -0400 (EDT) Received: from syn.rit.edu (syn.rit.edu [129.21.182.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fast.rit.edu (Postfix) with ESMTPS id 83D781D153; Sat, 11 Jun 2011 23:01:02 -0400 (EDT) Received: from syn.rit.edu (localhost.rit.edu [127.0.0.1]) by syn.rit.edu (8.14.4/8.14.3) with ESMTP id p5C312ef065042; Sat, 11 Jun 2011 23:01:02 -0400 (EDT) (envelope-from rpsfa@rit.edu) Received: (from zi@localhost) by syn.rit.edu (8.14.4/8.14.3/Submit) id p5C312cQ061694; Sat, 11 Jun 2011 23:01:02 -0400 (EDT) (envelope-from rpsfa@rit.edu) Date: Sat, 11 Jun 2011 23:01:02 -0400 From: Ryan Steinmetz To: Alex Almeida Message-ID: <20110612030102.GA67254@fast.rit.edu> References: <4DF377AE.2040502@bsd.com.br> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <4DF377AE.2040502@bsd.com.br> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@FreeBSD.org, wxs@FreeBSD.org, garga@FreeBSD.org Subject: Re: FreeBSD Port: sarg-2.2.7.1_3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 03:01:04 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Alex, Please try the attached diff to update the sarg port to version 2.3.1. You can apply it by doing the following: % cd /usr/ports/www/sarg % patch -p0 < /path/to/sarg.diff Please let us know if this resolves your issue. If it does, we will update the port in the ports tree. -r On (06/11/11 11:11), Alex Almeida wrote: > Hello, > I'm having problems with SARG, when the log line is larger than 40999 > bytes. (SARG: line too long (more than 40999 bytes) in / usr / local / > squid / logs / access.log) > > The version I'm using is the sarg-2.2.7.1_3 (ports), but the site is the > SARG 2.3.1. > > Can I use the manual installation to solve the problem? > > I thank you, > > Alex Almeida > msn/email: almeida.alex@gmail.com > ICQ UIN: 55574151 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" -- Ryan Steinmetz --5mCyUwZo2JvN/JJP Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="sarg.diff" diff -urN /usr/ports/www/sarg/Makefile sarg/Makefile --- /usr/ports/www/sarg/Makefile 2011-01-05 05:30:18.000000000 -0500 +++ sarg/Makefile 2011-06-11 22:50:39.000000000 -0400 @@ -6,8 +6,7 @@ # PORTNAME= sarg -PORTVERSION= 2.2.7.1 -PORTREVISION= 3 +PORTVERSION= 2.3.1 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -18,6 +17,7 @@ USE_GCC= 4.2+ USE_ICONV= yes +USE_GMAKE= yes USE_GETTEXT= yes GNU_CONFIGURE= yes MAKE_JOBS_SAFE= yes @@ -26,7 +26,6 @@ CONFIGURE_ENV= CC="${CC}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --sysconfdir="${PREFIX}/etc/${PORTNAME}" \ --enable-sargphp="${PREFIX}/etc/${PORTNAME}" \ - --enable-languagedir="${PREFIX}/etc/${PORTNAME}/languages" \ --enable-fontdir="${PREFIX}/etc/${PORTNAME}/fonts" \ --enable-imagedir="${PREFIX}/etc/${PORTNAME}/images" @@ -42,11 +41,15 @@ .endif .if !defined(WITHOUT_GD) -GD_PORT?= graphics/gd -LIB_DEPENDS+= gd.4:${PORTSDIR}/${GD_PORT} +LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd .endif pre-install: ${STRIP_CMD} ${WRKSRC}/sarg +post-install: + @${RM} ${WRKSRC}/languages/.new + @${MKDIR} ${PREFIX}/etc/${PORTNAME}/languages + ${INSTALL_DATA} ${WRKSRC}/languages/* ${PREFIX}/etc/${PORTNAME}/languages + .include diff -urN /usr/ports/www/sarg/distinfo sarg/distinfo --- /usr/ports/www/sarg/distinfo 2010-11-12 10:00:06.000000000 -0500 +++ sarg/distinfo 2011-06-11 14:22:41.000000000 -0400 @@ -1,2 +1,2 @@ -SHA256 (sarg-2.2.7.1.tar.gz) = 209398e7690876ef9df04ba7f0b4b47c91ea8cdcfd7a54d78f15b5548a2dd32e -SIZE (sarg-2.2.7.1.tar.gz) = 713786 +SHA256 (sarg-2.3.1.tar.gz) = 2228d5dea0e9ce7a3996e0ec238a4e8ca0681e809eda85e9bf334e76cd621d0f +SIZE (sarg-2.3.1.tar.gz) = 1073514 diff -urN /usr/ports/www/sarg/files/patch-Makefile.in sarg/files/patch-Makefile.in --- /usr/ports/www/sarg/files/patch-Makefile.in 2010-02-22 12:06:04.000000000 -0500 +++ sarg/files/patch-Makefile.in 2011-06-11 22:35:00.000000000 -0400 @@ -1,17 +1,29 @@ ---- Makefile.in.orig 2010-01-20 09:19:16.000000000 -0200 -+++ Makefile.in 2010-02-08 09:58:51.000000000 -0200 -@@ -9,7 +9,7 @@ - CC = @CC@ - BINDIR = @bindir@ - IBINDIR = -DBINDIR=\"@bindir@\" --MANDIR = @mandir@ -+MANDIR = @mandir@/man1 - SYSCONFDIR = @sysconfdir@ - SARGPHPDIR = @SARGPHPDIR@ - LANGDIR = @LANGDIR@ -@@ -84,12 +84,11 @@ +--- Makefile.in.orig 2010-08-03 13:41:57.000000000 -0400 ++++ Makefile.in 2011-06-11 22:34:52.000000000 -0400 +@@ -8,7 +8,7 @@ + docdir = @docdir@ + CC = @CC@ + BINDIR = @bindir@ +-MANDIR = @mandir@ ++MANDIR = @mandir@/man1 + SYSCONFDIR = @sysconfdir@ + SARGPHPDIR = @SARGPHPDIR@ + FONTDIR = @FONTDIR@ +@@ -23,7 +23,7 @@ + CPPFLAGS = @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ + DEFS = $(IBINDIR) $(ISYSCONFDIR) $(IFONTDIR) $(IIMAGEDIR) $(ISARGPHPDIR) $(ILOCALEDIR) @DEFS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ -lintl + SRCDIR = . + VPATH = . + INSTALL = cp +@@ -77,14 +77,13 @@ + mkdir -p $(DESTDIR)$(IMAGEDIR); \ + fi $(INSTALL_PROGRAM) sarg $(DESTDIR)$(BINDIR)/sarg - chmod 755 $(DESTDIR)$(BINDIR)/sarg +- chmod 755 $(DESTDIR)$(BINDIR)/sarg ++ chmod 644 $(DESTDIR)$(BINDIR)/sarg $(INSTALL_PROGRAM) sarg.1 $(DESTDIR)$(MANDIR)/sarg.1 - chmod 755 $(DESTDIR)$(MANDIR)/sarg.1 + chmod 644 $(DESTDIR)$(MANDIR)/sarg.1 @@ -22,5 +34,5 @@ - else \ - cp sarg.conf $(DESTDIR)$(SYSCONFDIR)/sarg.conf.default; \ fi - cp -r ./languages/* $(DESTDIR)$(LANGDIR); cp ./exclude_codes $(DESTDIR)$(SYSCONFDIR); + cp ./user_limit_block $(DESTDIR)$(SYSCONFDIR); diff -urN /usr/ports/www/sarg/pkg-plist sarg/pkg-plist --- /usr/ports/www/sarg/pkg-plist 2010-02-22 12:06:04.000000000 -0500 +++ sarg/pkg-plist 2011-06-11 22:47:28.000000000 -0400 @@ -12,6 +12,7 @@ etc/sarg/images/graph.png etc/sarg/images/sarg-squidguard-block.png etc/sarg/images/sarg.png +etc/sarg/languages/Afrikaans etc/sarg/languages/Bulgarian_windows1251 etc/sarg/languages/Catalan etc/sarg/languages/Czech @@ -57,6 +58,28 @@ etc/sarg/sarg-php/style.php etc/sarg/sarg-php/translate.this etc/sarg/user_limit_block +share/locale/bg/LC_MESSAGES/sarg.mo +share/locale/ca/LC_MESSAGES/sarg.mo +share/locale/cs/LC_MESSAGES/sarg.mo +share/locale/de/LC_MESSAGES/sarg.mo +share/locale/el/LC_MESSAGES/sarg.mo +share/locale/es/LC_MESSAGES/sarg.mo +share/locale/fr/LC_MESSAGES/sarg.mo +share/locale/hu/LC_MESSAGES/sarg.mo +share/locale/id/LC_MESSAGES/sarg.mo +share/locale/it/LC_MESSAGES/sarg.mo +share/locale/ja/LC_MESSAGES/sarg.mo +share/locale/lv/LC_MESSAGES/sarg.mo +share/locale/nl/LC_MESSAGES/sarg.mo +share/locale/pl/LC_MESSAGES/sarg.mo +share/locale/pt/LC_MESSAGES/sarg.mo +share/locale/ro/LC_MESSAGES/sarg.mo +share/locale/ru/LC_MESSAGES/sarg.mo +share/locale/sk/LC_MESSAGES/sarg.mo +share/locale/sr/LC_MESSAGES/sarg.mo +share/locale/tr/LC_MESSAGES/sarg.mo +share/locale/uk/LC_MESSAGES/sarg.mo +share/locale/zh_CN/LC_MESSAGES/sarg.mo @dirrm etc/sarg/sarg-php/locale/ru/LC_MESSAGES @dirrm etc/sarg/sarg-php/locale/ru @dirrm etc/sarg/sarg-php/locale/pt_BR/LC_MESSAGES --5mCyUwZo2JvN/JJP--