Date: Tuesday, April 20, 2010 @ 17:20:09
Author: ibiru
Revision: 78324
cleaner way of setting default agent to Firefox
Added:
firefox/trunk/firefox-agent.patch
Modified:
firefox/trunk/PKGBUILD
---------------------+
PKGBUILD | 10 +++++-----
firefox-agent.patch | 12 ++++++++++++
2 files changed, 17 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-04-20 21:00:28 UTC (rev 78323)
+++ PKGBUILD 2010-04-20 21:20:09 UTC (rev 78324)
@@ -19,20 +19,23 @@
firefox-safe.desktop
mozilla-firefox-1.0-lang.patch
browser-defaulturls.patch
- firefox-version.patch)
+ firefox-version.patch
+ firefox-agent.patch)
md5sums=('5e4541ab23084b7b14ba228291ce2688'
'1e4283a24953f8d0c6a5c00a36ae0981'
'ba96924ece1d77453e462429037a2ce5'
'5e68cabfcf3c021806b326f664ac505e'
'bd5db57c23c72a02a489592644f18995'
'1807651225b021e043154f8bba715a19'
- '92c11c66dd69b03f214002fededd1fc8')
+ '92c11c66dd69b03f214002fededd1fc8'
+ 'f437e94acff8f810991271ef4677d859')
build() {
cd "${srcdir}/mozilla-1.9.2"
patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch" || return 1
patch -Np1 -i "${srcdir}/browser-defaulturls.patch" || return 1
patch -Np1 -i "${srcdir}/firefox-version.patch" || return 1
+ patch -Np1 -i "${srcdir}/firefox-agent.patch" || return 1
cp "${srcdir}/mozconfig" .mozconfig
unset CFLAGS
@@ -49,7 +52,4 @@
install -m644
${srcdir}/mozilla-1.9.2/browser/branding/unofficial/default48.png
${pkgdir}/usr/share/pixmaps/firefox.png || return 1
install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/ ||
return 1
install -m644 ${srcdir}/firefox-safe.desktop
${pkgdir}/usr/share/applications/ || return 1
-
- #set agent to firefox
- sed -i 's|Namoroka|Firefox|'
${pkgdir}/usr/lib/firefox-3.6/defaults/preferences/firefox.js || return 1
}
Added: firefox-agent.patch
===================================================================
--- firefox-agent.patch (rev 0)
+++ firefox-agent.patch 2010-04-20 21:20:09 UTC (rev 78324)
@@ -0,0 +1,12 @@
+diff -Nur mozilla-1.9.2.orig/browser/app/profile/firefox.js
mozilla-1.9.2/browser/app/profile/firefox.js
+--- mozilla-1.9.2.orig/browser/app/profile/firefox.js 2010-04-14
01:21:35.000000000 +0300
++++ mozilla-1.9.2/browser/app/profile/firefox.js 2010-04-21
00:16:59.673528609 +0300
+@@ -183,7 +183,7 @@
+
+ pref("general.useragent.locale", "@AB_CD@");
+ pref("general.skins.selectedSkin", "classic/1.0");
+-pref("general.useragent.extra.firefox", "@APP_UA_NAME@/@APP_VERSION@");
++pref("general.useragent.extra.firefox", "Firefox/@APP_VERSION@");
+
+ pref("general.smoothScroll", false);
+ #ifdef UNIX_BUT_NOT_MAC