Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 2010 15:58:32 -0700 (PDT)
From:      Douglas William Thrift <douglas@douglasthrift.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/151466: New port: www/trac-TracGoogleAnalytics Trac plugin to enable logging by Google Analytics
Message-ID:  <201010142258.o9EMwWIK088036@slowhand.douglasthrift.net>
Resent-Message-ID: <201010142300.o9EN0Mme065041@freefall.freebsd.org>

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

>Number:         151466
>Category:       ports
>Synopsis:       New port: www/trac-TracGoogleAnalytics Trac plugin to enable logging by Google Analytics
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 14 23:00:22 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Douglas William Thrift
>Release:        FreeBSD 8.0-RELEASE-p4-jc2 amd64
>Organization:
>Environment:
System: FreeBSD slowhand.douglasthrift.net 8.0-RELEASE-p4-jc2 FreeBSD 8.0-RELEASE-p4-jc2 #1: Tue Jul 20 15:11:39 PDT 2010 user@jail8.johncompanies.com:/usr/obj/usr/src/sys/jail8 amd64
>Description:
Previously known as Google Analytics Plugin, this plugin will enable
your trac environment to be logged by Google Analytics.

It adds the necessary javascript code to log your environment, plus, it
also logs the downloads of regular filenames which end with a specific
extension; these extensions are defined by you; and also external links.

WWW: http://google.ufsoft.org/wiki/TracGoogleAnalytics
>How-To-Repeat:
>Fix:
--- trac-TracGoogleAnalytics.shar begins here ---
#!/bin/sh
# This is a shell archive
echo x trac-TracGoogleAnalytics
mkdir -p trac-TracGoogleAnalytics > /dev/null 2>&1
echo x trac-TracGoogleAnalytics/Makefile
sed 's/^X//' > trac-TracGoogleAnalytics/Makefile << 'SHAR_END'
X# New ports collection makefile for:    trac-TracGoogleAnalytics
X# Date created:                         14 October 2010
X# Whom:                                 Douglas Thrift
X#
X# $FreeBSD$
X#
X
XPORTNAME=	TracGoogleAnalytics
XPORTVERSION=	0.2.3
XCATEGORIES=	www devel python
XMASTER_SITES=	CHEESESHOP
XPKGNAMEPREFIX=	trac-
X
XMAINTAINER=	douglas@douglasthrift.net
XCOMMENT=	Trac plugin to enable logging by Google Analytics
X
XRUN_DEPENDS=	tracd:${PORTSDIR}/www/trac
X
XLICENSE=	BSD
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	easy_install
X
XPLIST_FILES=	%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
X
X.include <bsd.port.mk>
SHAR_END
echo x trac-TracGoogleAnalytics/distinfo
sed 's/^X//' > trac-TracGoogleAnalytics/distinfo << 'SHAR_END'
XMD5 (TracGoogleAnalytics-0.2.3.tar.gz) = 667dd39b2c6b3c4c4c787418b6d27629
XSHA256 (TracGoogleAnalytics-0.2.3.tar.gz) = f6fbc56427b613f95a5366e2a2b17e8979073defe6a4cd5cbce15b0c351859b2
XSIZE (TracGoogleAnalytics-0.2.3.tar.gz) = 11281
SHAR_END
echo x trac-TracGoogleAnalytics/pkg-descr
sed 's/^X//' > trac-TracGoogleAnalytics/pkg-descr << 'SHAR_END'
XPreviously known as Google Analytics Plugin, this plugin will enable
Xyour trac environment to be logged by Google Analytics.
X
XIt adds the necessary javascript code to log your environment, plus, it
Xalso logs the downloads of regular filenames which end with a specific
Xextension; these extensions are defined by you; and also external links.
X
XWWW: http://google.ufsoft.org/wiki/TracGoogleAnalytics
SHAR_END
echo x trac-TracGoogleAnalytics/files
mkdir -p trac-TracGoogleAnalytics/files > /dev/null 2>&1
echo x trac-TracGoogleAnalytics/files/patch-tracext-google-analytics-templates-google_analytics_admin.html
sed 's/^X//' > trac-TracGoogleAnalytics/files/patch-tracext-google-analytics-templates-google_analytics_admin.html << 'SHAR_END'
X--- tracext/google/analytics/templates/google_analytics_admin.html.orig	2010-10-14 15:05:27.000000000 -0700
X+++ tracext/google/analytics/templates/google_analytics_admin.html	2010-10-14 15:05:31.000000000 -0700
X@@ -22,7 +22,7 @@
X       <fieldset>
X         <legend>Basic Options</legend>
X         <label for="uid">UID:</label>
X-        <input type="text" name="uid" value="${ga.uid.value.upper()}"/>
X+        <input type="text" name="uid" value="${ga.uid.value.upper() if ga.uid.value else ''}"/>
X         <p class="help">Enter your Google Analytics' UID in this box.<br/>
X           The UID is needed for Google Analytics to log your website stats.<br/>
X           Your UID can be found by looking in the JavaScript Google Analytics
SHAR_END
exit
--- trac-TracGoogleAnalytics.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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