phoenix / firebird port
Stijn Hoop
stijn at win.tue.nl
Thu May 22 08:32:43 PDT 2003
Hi,
The attached diff produced a working firebird for me, after a
cp -Rp phoenix firebird.
I haven't really looked at the generated plist though, so packaging errors
could have slipped in. Hope this diff is of some help though.
--Stijn
--
"Linux has many different distributions, meaning that you can probably find
one that is exactly what you want (I even found one that looked like a Unix
system)."
-- Mike Meyer, from a posting at questions at freebsd.org
-------------- next part --------------
diff -urN /usr/ports/www/phoenix/Makefile firebird/Makefile
--- /usr/ports/www/phoenix/Makefile Tue Apr 22 09:17:27 2003
+++ firebird/Makefile Thu May 22 17:30:43 2003
@@ -7,15 +7,14 @@
# $FreeBSD: ports/www/phoenix/Makefile,v 1.43 2003/04/20 19:46:57 marcus Exp $
#
-PORTNAME= phoenix
-PORTVERSION= 0.5
-PORTREVISION= 4
-CATEGORIES= www # pita
-MASTER_SITES= ${MASTER_SITE_LOCAL} ${BSD_WEBDIR}
-MASTER_SITE_SUBDIR= alane
+PORTNAME= firebird
+PORTVERSION= 0.6
+CATEGORIES= www
+MASTER_SITES= http://komodo.mozilla.org/pub/firebird/releases/${PORTVERSION}/
+DISTNAME= MozillaFirebird-${PORTVERSION}-source
-MAINTAINER= phoenix at freebsd.org # alane at fbsd and trevor at fbsd
-COMMENT= Phoenix is a fast, low-overhead browser from the Mozilla project
+MAINTAINER= gnome at FreeBSD.org
+COMMENT= Mozilla Firebird is the next generation browser from the mozilla.org project
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
@@ -27,8 +26,6 @@
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
freetype-config:${PORTSDIR}/print/freetype2
-BSD_WEBDIR=http://people.freebsd.org/~${MASTER_SITE_SUBDIR}/
-
USE_X_PREFIX= yes
USE_BZIP2= yes
@@ -44,8 +41,7 @@
LOCAL_SUBDIR= lib/${PORTNAME}
LOCAL_PREFIX= ${PREFIX}/${LOCAL_SUBDIR}
JREDIR= ${LOCALBASE}/jdk1.3.1/jre
-MOZVER= 1.3a
-PLUGINSDIR= ${LOCAL_PREFIX}/lib/mozilla-${MOZVER}/plugins/
+PLUGINSDIR= ${PREFIX}/lib/browser_plugins
.include <bsd.port.pre.mk>
@@ -84,7 +80,7 @@
LDFLAGS+= -L${X11BASE}/lib
LIBS+= ${PTHREAD_LIBS}
-EXTRA_SCRIPTS= phoenix.rb
+EXTRA_SCRIPTS= firebird.rb
pre-extract::
@${ECHO_MSG}
@@ -107,6 +103,7 @@
pre-install:
${RM} -fr ${LOCAL_PREFIX}
+ -${MKDIR} -p ${PLUGINSDIR}
install-extra:
.for i in ${EXTRA_SCRIPTS}
@@ -114,12 +111,15 @@
.endfor # i in ${EXTRA_SCRIPTS}
link-bins:
- ${RM} -f ${PREFIX}/bin/phoenix
- ${LN} -s ${LOCAL_PREFIX}/bin/phoenix \
- ${PREFIX}/bin/phoenix
- ${RM} -f ${PREFIX}/bin/phoenix-config
+ ${RM} -f ${PREFIX}/bin/firebird
+ ${LN} -s ${LOCAL_PREFIX}/bin/MozillaFirebird \
+ ${PREFIX}/bin/firebird
+ ${RM} -f ${PREFIX}/bin/MozillaFirebird
+ ${LN} -s ${LOCAL_PREFIX}/bin/MozillaFirebird \
+ ${PREFIX}/bin/MozillaFirebird
+ ${RM} -f ${PREFIX}/bin/firebird-config
${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
- ${PREFIX}/bin/phoenix-config
+ ${PREFIX}/bin/firebird-config
# not used because of undefined symbol errors
link-java:
@@ -134,8 +134,9 @@
cons-plist:
-${RM} -f ${PLIST}
- ${ECHO_CMD} bin/phoenix >>${PLIST}
- ${ECHO_CMD} bin/phoenix-config >>${PLIST}
+ ${ECHO_CMD} bin/firebird >>${PLIST}
+ ${ECHO_CMD} bin/MozillaFirebird >>${PLIST}
+ ${ECHO_CMD} bin/firebird-config >>${PLIST}
.for i in ${EXTRA_SCRIPTS}
${ECHO_CMD} bin/${i} >>${PLIST}
.endfor # i in ${EXTRA_SCRIPTS}
diff -urN /usr/ports/www/phoenix/distinfo firebird/distinfo
--- /usr/ports/www/phoenix/distinfo Fri Dec 13 10:41:38 2002
+++ firebird/distinfo Thu May 22 16:39:10 2003
@@ -1 +1 @@
-MD5 (phoenix-0.5.tar.bz2) = fb99a5a866a99fbb15269699a1022b47
+MD5 (MozillaFirebird-0.6-source.tar.bz2) = de52dd03f8628724f14f517cd6346755
diff -urN /usr/ports/www/phoenix/files/firebird.rb firebird/files/firebird.rb
--- /usr/ports/www/phoenix/files/firebird.rb Thu Jan 1 01:00:00 1970
+++ firebird/files/firebird.rb Thu May 22 16:47:50 2003
@@ -0,0 +1,95 @@
+#!/usr/bin/env ruby
+=begin -*-mode: ruby-*-
+
+ MoZiLLa.in
+
+ Copyright (c) 2002, Alan Eldridge
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the copyright owner nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+ $Id: MoZiLLa.in,v 1.18 2002/12/18 02:40:58 alane Exp $
+
+ 2002-12-16 Alan Eldridge <alane at geeksrus.net>
+
+=end
+
+X11BIN = "/usr/X11R6/bin"
+NAME = File::basename($0, ".rb")
+APP_PATH = File::join(X11BIN, NAME)
+
+if !File::executable?(APP_PATH)
+ raise "File '#{APP_PATH}' not found. Giving up."
+elsif ($display = ENV["DISPLAY"]) == nil
+ raise "Environment variable DISPLAY not found. Giving up."
+end
+
+if ARGV.size > 0
+ if ARGV[0] == "--debug"
+ ARGV.shift
+ else
+ $stdin.reopen(File::open("/dev/null", "r"))
+ $stdout.reopen(File::open("/dev/null", "w"))
+ $stderr.reopen(File::open("/dev/null", "w"))
+ end
+end
+
+if ARGV.size < 1
+ $url = nil
+else
+ $url = ARGV.pop
+ $url.sub!(/^ghelp:/, "file:")
+end
+
+IO::popen("xwininfo -display #{$display} -root -tree") {
+ |io|
+ if NAME != "firebird"
+ $windows = io.grep(%r<"Mozilla"\s+"navigator:\s*browser">)
+ else
+ $windows = io.grep(%r<Phoenix.*"Mozilla"\s+"navigator:\s*browser">)
+ end
+}
+
+if $windows.size > 0
+ $id = $windows.map {
+ |s| s.strip.split.first
+ }.sort.first
+ $args = [ "-id", $id, "-raise", "-remote" ]
+ $args.push($url ? "\"openURL(#{$url},new-window)\"" :
+ "\"xfeDoCommand(openBrowser)\"")
+else
+ $args = ARGV
+ $args.push("\"#{$url}\"") if $url
+end
+
+fork {
+ exec(([APP_PATH] + $args).join(" "))
+}
+exit!
+
+#EOF
diff -urN /usr/ports/www/phoenix/files/mkdistfile firebird/files/mkdistfile
--- /usr/ports/www/phoenix/files/mkdistfile Tue Dec 10 09:57:05 2002
+++ firebird/files/mkdistfile Thu May 22 16:35:26 2003
@@ -1,7 +1,7 @@
#!/bin/sh
# -*-shell-script-*-
#
-# mkdistfile -- maintainer's utility to make a phoenix distfile
+# mkdistfile -- maintainer's utility to make a firebird distfile
#
# Copyright (c) 2002, Alan Eldridge
# All rights reserved.
@@ -165,7 +165,7 @@
test -d mozilla || die "No mozilla dir here."
find mozilla 2>/dev/null | egrep -f $exfile | xargs rm -fr
rm -f $exfile
-status "making phoenix-$REV.tar.bz2 ..."
-tar -cjpf phoenix-$REV.tar.bz2 mozilla
+status "making firebird-$REV.tar.bz2 ..."
+tar -cjpf firebird-$REV.tar.bz2 mozilla
status "done."
#EOF
diff -urN /usr/ports/www/phoenix/files/mozconfig.in firebird/files/mozconfig.in
--- /usr/ports/www/phoenix/files/mozconfig.in Sat Dec 14 23:49:59 2002
+++ firebird/files/mozconfig.in Thu May 22 16:44:29 2003
@@ -46,6 +46,8 @@
ac_add_options --disable-ldap
ac_add_options --disable-pedantic
ac_add_options --disable-xinerama
+ac_add_options --enable-extensions=default,-inspector,-irc,-venkman,-content-packs,-help
+ac_add_options --enable-plaintext-editor-only
######################################################################
# conditional from port Makefile
if test -n "$WITH_DEBUG"; then
diff -urN /usr/ports/www/phoenix/files/patch-nsprpub-pr-src-misc-prtime.c firebird/files/patch-nsprpub-pr-src-misc-prtime.c
--- /usr/ports/www/phoenix/files/patch-nsprpub-pr-src-misc-prtime.c Wed Dec 18 06:02:34 2002
+++ firebird/files/patch-nsprpub-pr-src-misc-prtime.c Thu May 22 16:47:08 2003
@@ -1,18 +1,11 @@
---- nsprpub/pr/src/misc/prtime.c.orig Sun Mar 31 12:17:46 2002
-+++ nsprpub/pr/src/misc/prtime.c Tue Dec 17 21:30:30 2002
-@@ -1666,12 +1666,13 @@
- * values for these two fields.
+--- nsprpub/pr/src/misc/prtime.c.orig Thu Feb 27 01:01:02 2003
++++ nsprpub/pr/src/misc/prtime.c Thu May 22 16:46:49 2003
+@@ -1666,7 +1666,7 @@
*/
--#if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS)
-+#if defined(__FreeBSD__)|| defined(SUNOS4) \
-+ || (__GLIBC__ >= 2) || defined(XP_BEOS)
- if (mktime(&a) == -1) {
- PR_snprintf(buf, buflen, "can't get timezone");
- return 0;
- }
--#endif
-+#endif /* check for __FreeBSD__, too <alane at freebsd.org> */
-
- return strftime(buf, buflen, fmt, &a);
- }
+ #if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \
+- || defined(NETBSD)
++ || defined(NETBSD) || defined(__FreeBSD__)
+ a.tm_zone = NULL;
+ a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset;
+ #endif
diff -urN /usr/ports/www/phoenix/files/phoenix.rb firebird/files/phoenix.rb
--- /usr/ports/www/phoenix/files/phoenix.rb Wed Dec 18 06:02:34 2002
+++ firebird/files/phoenix.rb Thu Jan 1 01:00:00 1970
@@ -1,95 +0,0 @@
-#!/usr/bin/env ruby
-=begin -*-mode: ruby-*-
-
- MoZiLLa.in
-
- Copyright (c) 2002, Alan Eldridge
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- * Neither the name of the copyright owner nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
- $Id: MoZiLLa.in,v 1.18 2002/12/18 02:40:58 alane Exp $
-
- 2002-12-16 Alan Eldridge <alane at geeksrus.net>
-
-=end
-
-X11BIN = "/usr/X11R6/bin"
-NAME = File::basename($0, ".rb")
-APP_PATH = File::join(X11BIN, NAME)
-
-if !File::executable?(APP_PATH)
- raise "File '#{APP_PATH}' not found. Giving up."
-elsif ($display = ENV["DISPLAY"]) == nil
- raise "Environment variable DISPLAY not found. Giving up."
-end
-
-if ARGV.size > 0
- if ARGV[0] == "--debug"
- ARGV.shift
- else
- $stdin.reopen(File::open("/dev/null", "r"))
- $stdout.reopen(File::open("/dev/null", "w"))
- $stderr.reopen(File::open("/dev/null", "w"))
- end
-end
-
-if ARGV.size < 1
- $url = nil
-else
- $url = ARGV.pop
- $url.sub!(/^ghelp:/, "file:")
-end
-
-IO::popen("xwininfo -display #{$display} -root -tree") {
- |io|
- if NAME != "phoenix"
- $windows = io.grep(%r<"Mozilla"\s+"navigator:\s*browser">)
- else
- $windows = io.grep(%r<Phoenix.*"Mozilla"\s+"navigator:\s*browser">)
- end
-}
-
-if $windows.size > 0
- $id = $windows.map {
- |s| s.strip.split.first
- }.sort.first
- $args = [ "-id", $id, "-raise", "-remote" ]
- $args.push($url ? "\"openURL(#{$url},new-window)\"" :
- "\"xfeDoCommand(openBrowser)\"")
-else
- $args = ARGV
- $args.push("\"#{$url}\"") if $url
-end
-
-fork {
- exec(([APP_PATH] + $args).join(" "))
-}
-exit!
-
-#EOF
diff -urN /usr/ports/www/phoenix/pkg-descr firebird/pkg-descr
--- /usr/ports/www/phoenix/pkg-descr Tue Oct 22 11:26:56 2002
+++ firebird/pkg-descr Thu May 22 17:27:25 2003
@@ -1,6 +1,6 @@
-Phoenix is a fast, low-overhead browser from the Mozilla project. See the
-phoenix project page for more details.
+Mozilla Firebird is the next generation browser from the Mozilla project. See
+the Mozilla Firebird project page for more details.
-WWW: http://www.mozilla.org/projects/phoenix/
+WWW: http://www.mozilla.org/projects/firebird/
-- AlanE <alane at freebsd.org>
diff -urN /usr/ports/www/phoenix/pkg-message firebird/pkg-message
--- /usr/ports/www/phoenix/pkg-message Wed Dec 18 06:02:33 2002
+++ firebird/pkg-message Thu May 22 16:50:13 2003
@@ -8,25 +8,29 @@
version of perl, please do this *first*.
Any bug reports should be addressed to the maintainers at:
- phoenix at freebsd.org
+ firebird at freebsd.org
You may also Cc: freebsd-ports at freebsd.org. Please do not send
bug reports to any other addresses.
Please include the following information with any bug report:
* Output from 'uname -a'.
-* Date/time stamp from www/phoenix/Makefile.
+* Date/time stamp from www/firebird/Makefile.
* Perl version used (/usr/bin/perl --version or
/usr/local/bin/perl --version for -current).
* Where/when did the problem occur: configuring, building, or
- running phoenix?
+ running firebird?
* How can you reproduce the problem?
Thank you for your help in testing and reporting bugs, and we hope you
-enjoy using Phoenix.
+enjoy using Firebird.
The Maintainers (alane@ & trevor@)
Additional notes:
+0.6:
+Update to 0.6 version, rename from phoenix to Mozilla Firebird, all
+internal names updated accordingly.
+
0.4_8:
Add patch to fix network ops on -CURRENT.
@@ -67,6 +71,6 @@
a dependency because I don't want to require ruby + ruby-shim to run the
browser.
--- AlanE <phoenix at freebsd.org>
+-- AlanE <firebird at freebsd.org>
======================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030522/1b5d66ee/attachment.bin
More information about the freebsd-ports
mailing list