LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 580|回复: 4

mozilla firefox 1.0rc1 Arch包

[复制链接]
发表于 2004-10-31 10:54:04 | 显示全部楼层 |阅读模式
我新写了firefox 1.0rc1的ABS PKGBUILD,使用ArchLinux的fans可以直接使用。
New revised PKGBUILD,
1. Simply it. The mozilla-firefox.run file is no longer needed, because the . firefox own start script of new version has been improved and doesn't have such problem. Put firefox under /opt/mozilla again with reference to openoffice package(it is under /opt/openoffice instaed of /opt/openoffice.org).
2. Automatically install menu entry(firefox.desktop) for gnome and kde.
3. Still not solve extension permission problem, anyone has any clue please help!!
# $Id: PKGBUILD,v 1.14 2004/10/04 17:11:13 judd Exp $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributer: Nick Penwarden <toth64@yahoo.com>
pkgname=firefox
pkgver=1.0rc1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip')
depends=('gtk2' 'libidl2' 'gcc' 'mozilla-common')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
license=GPL
source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/$pkgname-$pkgver-source.tar.bz2 \
firefox.desktop \
mozconfig)
#md5sums=('ff9eae3b90b8573bf44293ea44bf3c50' \
# 'aea53b054e38b177043474670b4472ef' \
# 'c28385288eb9a9cefba21d62d7870cfd' \
# '9d6f28de23b0603cafdfea95a6d00c28')

build() {
cd $startdir/src/mozilla
sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig
export MOZ_PHOENIX=1

make -f client.mk build || return 1
make DESTDIR=$startdir/pkg install || return 1

install -D -m755 $startdir/pkg/opt/mozilla/firefox/bin/firefox $startdir/pkg/usr/bin/firefox
install -D -m644 ../firefox.desktop $startdir/pkg/usr/share/applications/firefox.desktop
}


Mozconfig:
# load defaults from src tarball
. $topsrcdir/browser/config/mozconfig
# add our own options
ac_add_options --prefix=/opt/mozilla/firefox
ac_add_options --with-default-mozilla-five-home=/opt/mozilla/firefox/lib/firefoxac_add_options --enable-crypto
ac_add_options --enable-optimize="#CFLAGS#"
ac_add_options --enable-official-branding
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-logging
ac_add_options --disable-installer
ac_add_options --disable-mathml
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --enable-strip
ac_add_options --enable-xft
ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-gtk
ac_add_options --disable-freetype2
ac_add_options --disable-pedantic
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng
ac_add_options --with-pthreads
ac_add_options --disable-mailnews
ac_add_options --disable-calendar
ac_add_options --disable-composer
ac_add_options --disable-svg
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing


and the firefox.desktop:
[Desktop Entry]
Encoding=UTF-8
Name=Firefox Web Browser
GenericName=Browser
GenericName=
Comment=Standalone browser that is Better than Internet Explorer by leaps and bounds
Comment=
Exec=firefox
Icon=/opt/mozilla/firefox/lib/firefox-1.0/icons/default.xpm
Terminal=false
Type=Application
Categories=Application;Network;
StartupNotify=true        
发表于 2004-10-31 14:08:49 | 显示全部楼层
firefox编译也太大了,建议提供个包。
 楼主| 发表于 2004-10-31 19:22:47 | 显示全部楼层
我已经解决了当用非root帐户运行firefox,firefox会抱怨没有写权限的问题。现在一切都没有问题了,如果firefox无法安装extension,这不是我的错。firefox的开发者为了最终的1.0版本修改了extension部分。
The problem that firefox complains when you run as a non root user has been solved. I runed firefox as root, then remove the firefox package by pacman -R, I found there are some data left. I compressed such data as firefox-nonroot.tar.gz (kept root permission of these data for security reason), and solved the problem the same way as original Nick Penwarden and Dale Blount solution.  For details look at the PKGBUILD and firefox-nonroot.tar.gz and original mozilla-firefox-nonroot.tar.gz. Please run 'makepkg' as root, or you can't compile the package. Not my fault anyway.
NOW, everything just works.

# $Id: PKGBUILD,v 1.14 2004/10/04 17:11:13 judd Exp $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributer: Nick Penwarden <toth64@yahoo.com> Rhythm Gan <rhythm_gan@yahoo.com.cn>
pkgname=firefox
pkgver=1.0rc1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip')
depends=('gtk2' 'libidl2' 'gcc' 'mozilla-common')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
license=GPL
source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/$pkgname-$pkgver-source.tar.bz2 \
        firefox.desktop \
        mozconfig \
        firefox-nonroot.tar.gz)
md5sums=('7a0411859fc5d5f647e211c24beaf94b' \
         '09c16feac1c62a838258e0d9a382f9dc' \
         'a47ba3707ccac23b646627742722208e' \
         '8b0f9050e5eac329199f6b9d6ed380fc')

build() {
        cd $startdir/src/mozilla
        sed "s@#CFLAGS#@$CFLAGS@g" $startdir/
src/mozconfig >.mozconfig
        export MOZ_PHOENIX=1

        make -f client.mk build || return 1
        make DESTDIR=$startdir/pkg install || return 1

        # create shortcut
        install -D -m755 $startdir/pkg/opt/mozilla/firefox/bin/firefox $startdir/pkg/usr/bin/firefox
        install -D -m644 ../firefox.desktop $startdir/pkg/usr/share/applications/firefox.desktop

        # initialize some data so that firefox doesn't complain to run as a non-root user
        cd $startdir/pkg/opt/mozilla/$pkgname/lib/$pkgname-1.0/
        tar zxf $startdir/src/firefox-nonroot.tar.gz || return 1

}
      

firefox.desktop和mozconfig是一样的。firefox-nonroot.tar.gz见附件。
Have fun!

kite:
如果你有空间,我可以上传。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-10-31 20:41:56 | 显示全部楼层
现在用着还行,我打算等官方的了。
发表于 2004-10-31 21:45:41 | 显示全部楼层
不错不错,否则我就要自己搞了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表