|
|

楼主 |
发表于 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
|