From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 8 15:30:10 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 776A516A41F for ; Thu, 8 Sep 2005 15:30:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02CE443D49 for ; Thu, 8 Sep 2005 15:30:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j88FU9qC005718 for ; Thu, 8 Sep 2005 15:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j88FU9EX005711; Thu, 8 Sep 2005 15:30:09 GMT (envelope-from gnats) Resent-Date: Thu, 8 Sep 2005 15:30:09 GMT Resent-Message-Id: <200509081530.j88FU9EX005711@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, chinsan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69AFB16A41F; Thu, 8 Sep 2005 15:27:30 +0000 (GMT) (envelope-from chinsan@chinsan.twbbs.org) Received: from chinsan.twbbs.org (220-135-48-40.HINET-IP.hinet.net [220.135.48.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9FFA43D45; Thu, 8 Sep 2005 15:27:27 +0000 (GMT) (envelope-from chinsan@chinsan.twbbs.org) Received: by chinsan.twbbs.org (Postfix, from userid 1001) id ED9907301F; Thu, 8 Sep 2005 23:27:22 +0800 (CST) Message-Id: <20050908152722.ED9907301F@chinsan.twbbs.org> Date: Thu, 8 Sep 2005 23:27:22 +0800 (CST) From: chinsan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: ale@FreeBSD.org Subject: ports/85872: [PATCH] www/eaccelerator: security issue & provide more installation instructions X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chinsan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 15:30:10 -0000 >Number: 85872 >Category: ports >Synopsis: [PATCH] www/eaccelerator: security issue & provide more installation instructions >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: Thu Sep 08 15:30:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 5.4-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan.twbbs.org 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Aug 14 21:25:08 CST 2005 root@chinsan.twbbs.org:/usr/obj/usr/src/sys/TAKAKO i386 >Description: - Fix some security issue(s/0777/0755) - Provide more installation instructions - Port maintainer(ale@FreeBSD.org) is CC'd. Thanks. :) >How-To-Repeat: >Fix: --- eaccelerator.diff begins here --- diff -ruN eaccelerator.orig/Makefile eaccelerator/Makefile --- eaccelerator.orig/Makefile Thu Sep 8 23:04:44 2005 +++ eaccelerator/Makefile Thu Sep 8 23:14:33 2005 @@ -43,7 +43,8 @@ .endif post-build: - @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/encoder.php > ${WRKSRC}/encoder + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g; s|0777|0755|g" \ + ${WRKSRC}/encoder.php > ${WRKSRC}/encoder do-install: @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} diff -ruN eaccelerator.orig/files/pkg-message.in eaccelerator/files/pkg-message.in --- eaccelerator.orig/files/pkg-message.in Thu Sep 8 23:04:44 2005 +++ eaccelerator/files/pkg-message.in Thu Sep 8 23:20:58 2005 @@ -1,18 +1,37 @@ ***************************************************************************** -Edit %%LOCALBASE%%/etc/php/extensions.ini and add: +1. Edit %%LOCALBASE%%/etc/php/extensions.ini and add: -extension=eaccelerator.so + extension=eaccelerator.so -**************************************************** -*** This extension must be loaded after *** -*** extension=session.so *** -**************************************************** + **************************************************** + *** This extension must be loaded after *** + *** extension=session.so *** + **************************************************** -Then create the cache directory: +2. Then create the cache directory: -mkdir /tmp/eaccelerator -chown www /tmp/eaccelerator -chmod 0700 /tmp/eaccelerator + # mkdir /tmp/eaccelerator + # chown www /tmp/eaccelerator + # chmod 0700 /tmp/eaccelerator + +3. Finally, edit %%LOCALBASE%%/etc/php.ini to fit your need: + ; For example + eaccelerator.shm_size="16" + eaccelerator.cache_dir="/tmp/eaccelerator" + eaccelerator.enable="1" + eaccelerator.optimizer="1" + eaccelerator.check_mtime="1" + eaccelerator.debug="0" + eaccelerator.filter="" + eaccelerator.shm_max="0" + eaccelerator.shm_ttl="0" + eaccelerator.shm_prune_period="0" + eaccelerator.shm_only="0" + eaccelerator.compress="1" + eaccelerator.compress_level="9" + + For more detailed information, please take a look at + http://eaccelerator.net/IniSettingsUk ***************************************************************************** --- eaccelerator.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: