Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jun 2011 23:01:02 -0400
From:      Ryan Steinmetz <rpsfa@rit.edu>
To:        Alex Almeida <almeida.alex@gmail.com>
Cc:        ports@FreeBSD.org, wxs@FreeBSD.org, garga@FreeBSD.org
Subject:   Re: FreeBSD Port: sarg-2.2.7.1_3
Message-ID:  <20110612030102.GA67254@fast.rit.edu>
In-Reply-To: <4DF377AE.2040502@bsd.com.br>
References:  <4DF377AE.2040502@bsd.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <bsd.port.post.mk>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110612030102.GA67254>