Changeset 1133 for pbibuild/modules/firefox
- Timestamp:
- 01/10/08 09:00:22 (11 months ago)
- Location:
- pbibuild/modules/firefox
- Files:
-
- 1 added
- 3 modified
-
build.sh (modified) (1 diff)
-
overlay-dir/PBI.SetupScript.sh (modified) (1 diff)
-
overlay-dir/bin/defaultemail (added)
-
pbi.conf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pbibuild/modules/firefox/build.sh
r934 r1133 41 41 tar cvf - -C /usr/local/lib/xpi/ . | tar xvf - -C ${PBIDIR}/autolibs/firefox/extensions/ 42 42 43 # Now append our prefs file with the default email script 44 echo "pref("network.protocol-handler.app.mailto", "/Programs/Firefox${PORTVER}/bin/defaultemail");" >> ${PBIDIR}/autolibs/firefox/greprefs/all.js 43 45 -
pbibuild/modules/firefox/overlay-dir/PBI.SetupScript.sh
r993 r1133 17 17 ln -s /Programs/${PROGDIR}/.sbin/firefox /usr/local/bin/firefox 18 18 ln -s /Programs/${PROGDIR}/autolibs/firefox /usr/local/lib/firefox 19 20 21 if [ ! -z "$DISPLAY" ] 22 then 23 24 USER="$USERNAME" 25 if [ "$USER" != "root" ] 26 then 27 HOMEDIR="/home/${USER}" 28 else 29 HOMEDIR="/root" 30 fi 31 32 # Ask if we should make this the default browser application for our user 33 kdialog --yesno "Do you want to make Firefox the default browser?" --title "Default browser?" 34 if [ "$?" = "0" ] 35 then 36 # Strip out the old BrowserApplication line to make way for the new 37 cat ${HOMEDIR}/.kde/share/config/kdeglobals | grep -v '^BrowserApplication' > ${HOMEDIR}/.kdeglobals.new 38 39 touch ${HOMEDIR}/.kdeglobals.new2 40 while read line 41 do 42 43 if [ "$line" = "[General]" ] 44 then 45 echo "$line" >> ${HOMEDIR}/.kdeglobals.new2 46 echo "BrowserApplication=/usr/local/bin/firefox" >> ${HOMEDIR}/.kdeglobals.new2 47 else 48 echo "$line" >> ${HOMEDIR}/.kdeglobals.new2 49 fi 50 done < ${HOMEDIR}/.kdeglobals.new 51 52 # all finished, now move it back over kdeglobals 53 rm ${HOMEDIR}/.kdeglobals.new 54 chown ${USERNAME}:${USERNAME} ${HOMEDIR}/.kdeglobals.new2 55 mv ${HOMEDIR}/.kdeglobals.new2 ${HOMEDIR}/.kde/share/config/kdeglobals 56 fi 57 58 fi 59 19 60 echo "LAUNCHCLOSE: /usr/local/bin/firefox" -
pbibuild/modules/firefox/pbi.conf
r948 r1133 33 33 # Build Key - Change this to anything else to trigger a rebuild 34 34 # - The rebuild will take place even if port is still the same ver 35 BUILDKEY=" 20"35 BUILDKEY="10" 36 36 37 37 export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY
