Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2011 17:27:02 +0200 (CEST)
From:      Radim Kolar <hsn@sendmail.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hsn@sendmail.cz, jnlin@csie.nctu.edu.tw
Subject:   ports/159973: [PATCH] www/trafficserver: update to 3.0.1
Message-ID:  <201108211527.p7LFR23Y035885@fbsd8.localdomain>
Resent-Message-ID: <201108211530.p7LFUDXm072431@freefall.freebsd.org>

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

>Number:         159973
>Category:       ports
>Synopsis:       [PATCH] www/trafficserver: update to 3.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 21 15:30:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Radim Kolar
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fbsd8.localdomain 8.2-RELEASE FreeBSD 8.2-RELEASE #8: Tue Mar  1 14:49:07 CET
>Description:
- Update to 3.0.1
- added patch for fixing file permission (submited upstream)
- added patch for fixing include (submited upstream)
- var directory is /var/trafficserver not ${PREFIX}/var
- added updated flex/bison for compiling WCCS support
- added gsed because bsd sed hangs during generating cpp header

Sadly WCCS support didnt compile yet, but i prepared build intractucture for
it (updated toolchain)

Added file(s):
- files/patch-chown-diag
- files/patch-malloc-h

Port maintainer (jnlin@csie.nctu.edu.tw) is cc'd.

Only one known port bug remains (applies to older versions too) if you deinstall this port, your customized configuration is deinstalled too. Please
backup your configuration before upgrading or fix port

its still quite new software, i dont recommend it for production
go for squid or varnish

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- trafficserver-3.0.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/trafficserver/Makefile /home/hsn/ports/trafficserver/Makefile
--- /usr/ports/www/trafficserver/Makefile	2011-07-16 07:41:45.000000000 +0200
+++ /home/hsn/ports/trafficserver/Makefile	2011-08-21 17:16:29.219615552 +0200
@@ -6,18 +6,20 @@
 #
 
 PORTNAME=	trafficserver
-PORTVERSION=	3.0.0
+PORTVERSION=	3.0.1
 CATEGORIES=	www
 MASTER_SITES=	APACHE/${PORTNAME}
 
 MAINTAINER=	jnlin@csie.nctu.edu.tw
 COMMENT=	A fast, scalable and extensible HTTP proxy server
 
+LICENSE=	ASL
+
 LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo \
 		expat.6:${PORTSDIR}/textproc/expat2 \
 		pcre.0:${PORTSDIR}/devel/pcre
 
-LICENSE=	ASL
+CONFIGURE_ARGS+=	--localstatedir=/var
 
 USE_AUTOTOOLS=	autoconf automake libtool
 USE_BZIP2=	yes
@@ -26,6 +28,9 @@
 USE_SQLITE=	yes
 USE_TCL=	yes
 USE_RC_SUBR=	${PORTNAME}
+USE_LDCONFIG=	yes
+USE_BISON=	build
+USE_GMAKE=	yes
 
 .include <bsd.port.pre.mk>
 
@@ -34,8 +39,12 @@
 RUN_DEPENDS=	xz>0:${PORTSDIR}/archivers/xz
 .endif
 
+BUILD_DEPENDS+=	gsed:${PORTSDIR}/textproc/gsed
+BUILD_DEPENDS+=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
+CONFIGURE_ENV+=	LEX=${LOCALBASE}/bin/flex
+
 .if ${OSVERSION} < 800000 && ${ARCH} == "amd64"
-BROKEN=		does not compile on 7.X
+BROKEN=		does not compile on 7.X/amd64
 .endif
 
 .if ${ARCH} == "sparc64"
@@ -47,4 +56,10 @@
 	    -e 's,LIBTOOL_LINK_FLAGS = -R -R,LIBTOOL_LINK_FLAGS = -R,' \
 	    -e 's,LDFLAGS = -rdynamic  *-R -R,LDFLAGS = -rdynamic -R,'
 
+#post-install:
+#	@${RMDIR}  ${PREFIX}/var/trafficserver
+#	@${RMDIR}  ${PREFIX}/var/log/trafficserver
+#	@${RMDIR}  ${PREFIX}/var/log
+#	@${RMDIR}  ${PREFIX}/var
+
 .include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/www/trafficserver/distinfo /home/hsn/ports/trafficserver/distinfo
--- /usr/ports/www/trafficserver/distinfo	2011-06-15 05:58:43.000000000 +0200
+++ /home/hsn/ports/trafficserver/distinfo	2011-08-20 12:09:25.923442015 +0200
@@ -1,2 +1,2 @@
-SHA256 (trafficserver-3.0.0.tar.bz2) = 70d3abda009719d272bc87288bf47beaa5966cb964c9dfbb5fd32c602ac1354e
-SIZE (trafficserver-3.0.0.tar.bz2) = 2418416
+SHA256 (trafficserver-3.0.1.tar.bz2) = 5aab91d4993a27bdb9650157ace4a41edc03ef9735cd25e7c917c8fffb23d0b2
+SIZE (trafficserver-3.0.1.tar.bz2) = 2417978
diff -ruN --exclude=CVS /usr/ports/www/trafficserver/files/patch-chown-diag /home/hsn/ports/trafficserver/files/patch-chown-diag
--- /usr/ports/www/trafficserver/files/patch-chown-diag	1970-01-01 01:00:00.000000000 +0100
+++ /home/hsn/ports/trafficserver/files/patch-chown-diag	2011-08-21 13:07:22.853587548 +0200
@@ -0,0 +1,10 @@
+--- proxy/Initialize.cc.orig	2011-01-14 01:28:47.000000000 +0100
++++ proxy/Initialize.cc	2011-08-21 13:00:01.530225032 +0200
+@@ -302,6 +302,7 @@
+   diags_log_fp = fopen(diags_logpath, "w");
+   if (diags_log_fp) {
+     int status;
++    chown_file_to_user(diag_logpath,admin_user);
+     status = setvbuf(diags_log_fp, NULL, _IOLBF, 512);
+     if (status != 0) {
+       fclose(diags_log_fp);
diff -ruN --exclude=CVS /usr/ports/www/trafficserver/files/patch-malloc-h /home/hsn/ports/trafficserver/files/patch-malloc-h
--- /usr/ports/www/trafficserver/files/patch-malloc-h	1970-01-01 01:00:00.000000000 +0100
+++ /home/hsn/ports/trafficserver/files/patch-malloc-h	2011-08-20 18:37:28.654936970 +0200
@@ -0,0 +1,11 @@
+--- lib/tsconfig/TsConfigGrammar.y.orig	2011-08-20 18:36:13.685707419 +0200
++++ lib/tsconfig/TsConfigGrammar.y	2011-08-20 18:36:34.796159531 +0200
+@@ -23,7 +23,7 @@
+  */
+ 
+ # include "TsConfigTypes.h"
+-# include <malloc.h>
++# include <stdlib.h>
+ 
+ // Inhibit Bison definitions.
+ # define YYMALLOC malloc
--- trafficserver-3.0.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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