From joek@zircon.staff.flyingcroc.net  Wed Feb 19 13:32:39 2003
Return-Path: <joek@zircon.staff.flyingcroc.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F148B37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Feb 2003 13:32:39 -0800 (PST)
Received: from gilliam.users.flyingcroc.net (gilliam.users.flyingcroc.net [207.246.128.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5183A43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Feb 2003 13:32:39 -0800 (PST)
	(envelope-from joek@zircon.staff.flyingcroc.net)
Received: from zircon.staff.flyingcroc.net (zircon.staff.flyingcroc.net [207.246.150.92])
	by gilliam.users.flyingcroc.net (8.9.3/8.9.3) with SMTP id NAA32452
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Feb 2003 13:32:38 -0800 (PST)
Received: (qmail 2005 invoked by uid 1001); 19 Feb 2003 21:32:38 -0000
Message-Id: <20030219213238.2004.qmail@zircon.staff.flyingcroc.net>
Date: 19 Feb 2003 21:32:38 -0000
From: Joe Kelsey <joek@zircon.staff.flyingcroc.net>
Reply-To: Joe Kelsey <joek@zircon.staff.flyingcroc.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH www/flashpluginwrapper] add helper script
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48470
>Category:       ports
>Synopsis:       [PATCH www/flashpluginwrapper] add helper script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    nork
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 19 13:40:09 PST 2003
>Closed-Date:    Wed Mar 17 03:30:37 PST 2004
>Last-Modified:  Wed Mar 17 03:30:37 PST 2004
>Originator:     Joe Kelsey
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD zircon.staff.flyingcroc.net 4.7-STABLE FreeBSD 4.7-STABLE #5: Tue Jan 28 10:02:45 PST 2003 joek@zircon.staff.flyingcroc.net:/usr/obj/usr/src/sys/ZIRCON i386

>Description:
	I am *so* tired of manually editing /usr/X11R6/bin/mozilla every
	time to replace the flashpluginwrapper, that I finally wrote a
	script to do it.
>How-To-Repeat:
	Upgrade mozilla and watch the flash popups come back.
>Fix:

	This adds addflashwrapper to LOCALBASE.

--- Makefile.orig	Thu Feb  6 07:38:21 2003
+++ Makefile	Wed Feb 19 13:22:58 2003
@@ -30,6 +30,12 @@
 		-e 's,%%LOCALBASE%%,${LOCALBASE},' \
 		-e 's,%%X11BASE%%,${X11BASE},' \
 		< ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
+	@${SED} -e 's,%%PREFIX%%,${PREFIX},' \
+		-e 's,%%LOCALBASE%%,${LOCALBASE},' \
+		-e 's,%%X11BASE%%,${X11BASE},' \
+		< $(FILESDIR)/addflashwrapper.sh \
+		> $(PREFIX)/bin/addflashwrapper
+	@chmod 555 $(PREFIX)/bin/addflashwrapper
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>


--- files/pkg-message.in.orig	Fri Jan 10 07:41:48 2003
+++ files/pkg-message.in	Wed Feb 19 13:28:08 2003
@@ -14,3 +14,10 @@
 
 at the top of it (but after #!/bin/sh).  Now start mozilla and go to
 'about:plugins' and the flash plugin is enabled!
+
+The script addflashwrapper has been added to %%PREFIX%%/bin for your
+convenience.  Simply run (for instance)
+
+%%PREFIX%%/bin/addflashwrapper %%X11BASE%%/bin/mozilla
+
+to add it to the standard Mozilla startup script.

And the final piece, addflashwrapper.sh:

#!/bin/sh

if [ -z "$1" ]
then echo "USAGE: $0 browser-startup-shell"
     exit 1
fi

sed -e '1a\
\
LD_PRELOAD=%%PREFIX%%/lib/flashplayer.so.1\
export LD_PRELOAD\
' $1 > $1.new

cp $1 $1.orig
cp $1.new $1
>Release-Note:
>Audit-Trail:

From: Joe Kelsey <joek@mail.flyingcroc.net>
To: freebsd-gnats-submit@FreeBSD.org,
	joek@zircon.staff.flyingcroc.net
Cc:  
Subject: Re: ports/48470: [PATCH www/flashpluginwrapper] add helper script
Date: Thu, 20 Feb 2003 11:23:13 -0800

 The sed command in addflashwrapper is missing the "lib" in front of 
 flashplayer.so.1.  It should be:
 
 sed -e '1a\
 \
 LD_PRELOAD=%%PREFIX%%/lib/libflashplayer.so.1\
 export LD_PRELOAD\
 ' $1 > $1.new
 
 
 
Responsible-Changed-From-To: freebsd-ports-bugs->nork 
Responsible-Changed-By: arved 
Responsible-Changed-When: Mon Feb 24 02:26:30 PST 2003 
Responsible-Changed-Why:  
Over to Maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48470 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Mar 13 20:57:31 PST 2004 
State-Changed-Why:  
Is this still a problem with the latest version of the port? 
This PR is over a year old by now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48470 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 17 03:30:00 PST 2004 
State-Changed-Why:  
Submitter's email now bounces.  If this is still a problem with 
more recent versions of the software, please open up a new problem 
report.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48470 
>Unformatted:
