From nobody@FreeBSD.org  Thu Jul 15 20:08:21 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3C5A516A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Jul 2004 20:08:21 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 20EA943D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Jul 2004 20:08:21 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6FK8KjG074805
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Jul 2004 20:08:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i6FK8Kg2074804;
	Thu, 15 Jul 2004 20:08:20 GMT
	(envelope-from nobody)
Message-Id: <200407152008.i6FK8Kg2074804@www.freebsd.org>
Date: Thu, 15 Jul 2004 20:08:20 GMT
From: "Roman Y. Bogdanov" <sam@brj.pp.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: new port: flash plugin for mozilla firefox browser
X-Send-Pr-Version: www-2.3

>Number:         69126
>Category:       ports
>Synopsis:       new port: flash plugin for mozilla firefox browser
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sem
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 20:10:20 GMT 2004
>Closed-Date:    Wed Jul 21 05:58:16 GMT 2004
>Last-Modified:  Wed Jul 21 05:58:16 GMT 2004
>Originator:     Roman Y. Bogdanov
>Release:        5.2.1 and current on my panicbox
>Organization:
>Environment:
FreeBSD brj.pp.ru 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Thu Jul 15 01:04:50 KRAST 2004     root@brj.pp.ru:/usr/src/sys/i386/compile/brj-5x  i386
>Description:
Today I have decided to install flash plugin for a browser firefox, but have not found such in ports. For a browser mozilla plugin is present in port's tree, therefore I have decided to correct it and have made plugin for firefox.
>How-To-Repeat:
      
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	flashplugin-firefox
#	flashplugin-firefox/files
#	flashplugin-firefox/files/patch-aa
#	flashplugin-firefox/files/patch-plugin.c
#	flashplugin-firefox/Makefile
#	flashplugin-firefox/distinfo
#	flashplugin-firefox/pkg-descr
#	flashplugin-firefox/pkg-plist
#
echo c - flashplugin-firefox
mkdir -p flashplugin-firefox > /dev/null 2>&1
echo c - flashplugin-firefox/files
mkdir -p flashplugin-firefox/files > /dev/null 2>&1
echo x - flashplugin-firefox/files/patch-aa
sed 's/^X//' >flashplugin-firefox/files/patch-aa << 'END-of-flashplugin-firefox/files/patch-aa'
X--- Makefile.orig	Tue Sep 28 05:13:38 1999
X+++ Makefile	Sat Mar 13 20:06:26 2004
X@@ -35,8 +35,8 @@
X # Linux
X SHARED=-shared
X 
X-CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I/usr/X11R6/include
X-LDFLAGS= $(FLASH)/libflash.a $(LIBCXX) ../Jpeg/libjpeg.a ../Zlib/libz.a
X+CFLAGS+=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I/usr/X11R6/include -fPIC
X+LDFLAGS= -L${LOCALBASE}/lib -lflash -ljpeg -lz -L$(X11BASE)/lib -lXt
X 
X SRC= plugin.c npunix.c
X OBJ= plugin.o npunix.o
X@@ -45,7 +45,7 @@
X 
X default all: $(SHAREDTARGET)
X 
X-$(SHAREDTARGET): $(OBJ) $(FLASH)/libflash.a
X+$(SHAREDTARGET): $(OBJ)
X 	$(LD) $(SHARED) -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
X 
X plugin.o: $(FLASH)/flash.h
END-of-flashplugin-firefox/files/patch-aa
echo x - flashplugin-firefox/files/patch-plugin.c
sed 's/^X//' >flashplugin-firefox/files/patch-plugin.c << 'END-of-flashplugin-firefox/files/patch-plugin.c'
X*** plugin.c.old	Mon Jun 12 10:24:09 2000
X--- plugin.c	Mon Sep 30 00:48:40 2002
X***************
X*** 193,198 ****
X--- 193,207 ----
X  			XSync(This->dpy,False);
X  			XFreePixmap(This->dpy, This->canvas);
X  			shmdt(This->segInfo.shmaddr);
X+ #ifndef linux
X+ 			{
X+ 				struct shmid_ds buf;
X+ 
X+ 			if (shmctl(This->segInfo.shmid, IPC_RMID, &buf) < 0) {
X+ 				perror("shmctl");
X+ 				}
X+ 			}
X+ #endif
X  
X  			FlashClose(This->fh);
X  			This->fh = 0;
END-of-flashplugin-firefox/files/patch-plugin.c
echo x - flashplugin-firefox/Makefile
sed 's/^X//' >flashplugin-firefox/Makefile << 'END-of-flashplugin-firefox/Makefile'
X# New ports collection makefile for:	flashplugin-firefox
X# Date created:				16.07.2004
X# Whom:					Roman Y. Bogdanov <sam@brj.pp.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	flashplugin-firefox
XPORTVERSION=	0.4.10
XPORTREVISION=	1
XCATEGORIES=	www
XMASTER_SITES=	http://www.swift-tools.net/Flash/
XDISTNAME=	flash-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	sam@brj.pp.ru
XCOMMENT=	A GPL standalone Flash (TM) plugin for FireFox web browser
X
XLIB_DEPENDS=	flash.0:${PORTSDIR}/graphics/libflash
XRUN_DEPENDS?=   firefox:${PORTSDIR}/www/firefox
X
XUSE_X_PREFIX=	yes
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/Plugin
XPLUGIN_DIR?=	lib/firefox/lib/firefox-0.9.1/plugins
XPLIST_SUB+=	PLUGIN_DIR=${PLUGIN_DIR}
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/${PLUGIN_DIR}
X	@${INSTALL_PROGRAM} ${WRKSRC}/npflash.so ${PREFIX}/${PLUGIN_DIR}
X
X.include <bsd.port.mk>
END-of-flashplugin-firefox/Makefile
echo x - flashplugin-firefox/distinfo
sed 's/^X//' >flashplugin-firefox/distinfo << 'END-of-flashplugin-firefox/distinfo'
XMD5 (flash-0.4.10.tgz) = 1473f085c599d8076fa866cd91e11598
XSIZE (flash-0.4.10.tgz) = 358995
END-of-flashplugin-firefox/distinfo
echo x - flashplugin-firefox/pkg-descr
sed 's/^X//' >flashplugin-firefox/pkg-descr << 'END-of-flashplugin-firefox/pkg-descr'
XThis is GPL standalone Flash (TM) Plugin, that comes with FlashLib
X(libflash) distribution.
X
XAuthor:	Olivier Debon <olivier@debon.net>
XWWW:	http://www.swift-tools.net/Flash/
END-of-flashplugin-firefox/pkg-descr
echo x - flashplugin-firefox/pkg-plist
sed 's/^X//' >flashplugin-firefox/pkg-plist << 'END-of-flashplugin-firefox/pkg-plist'
X%%PLUGIN_DIR%%/npflash.so
X@unexec rmdir %%PLUGIN_DIR%% 2>/dev/null || true
END-of-flashplugin-firefox/pkg-plist
exit
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sem 
Responsible-Changed-By: sem 
Responsible-Changed-When: Fri Jul 16 19:45:42 GMT 2004 
Responsible-Changed-Why:  
I'll handle it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69126 
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Wed Jul 21 05:58:05 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

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