# HG changeset patch
# User t_mrc-ct@users.osdn.jp
# Date 1439544417 -32400
#      Fri Aug 14 18:26:57 2015 +0900
# Branch THUNDERBIRD3880_2016050308_RELBRANCH
# Node ID 1c7b0a53d3604adaaa1e9304f06fc7ffd1a7f5c1
# Parent  45de47f9ea2deee3c8388df066d3d8e5e4b45d81
prevent official Lightning update

diff --git a/calendar/lightning/Makefile.in b/calendar/lightning/Makefile.in
--- a/calendar/lightning/Makefile.in
+++ b/calendar/lightning/Makefile.in
@@ -33,20 +33,26 @@
 ifneq (a,$(findstring a,$(SEAMONKEY_VERSION)))
 SEAMONKEY_MAXVERSION := $(shell echo $(SEAMONKEY_VERSION) | sed 's|\(^[0-9]*.[0-9]*\).*|\1|' ).*
 endif
 
 ifneq (,$(findstring a,$(LIGHTNING_VERSION)))
 DEFINES += -DLIGHTNING_PRERELEASE_VERSION=1
 endif
 
+ifeq (Darwin-powerpc,$(OS_TARGET)-$(subst ppc,powerpc,$(TARGET_CPU)))
+DEFINES += -DLIGHTNING_UPDATE_LOCATION=http://tenfourbird.osdn.jp/update/addon/check.php
+DEFINES += -DAPP_TUNED=$(TENFOURBIRD_TUNED)
+DEFINES += -DLIGHTNING_UPDATE_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDkG8gvK7oO8AshftOl4vwsVPZCZNDVWuDuHbVIM5Ab2n57Ilchnbap+2DTVc16pE2nyfh6YZV3LOwLoa2iKC04/MZZa72oQa7S9G6IewFkbn7+KT7MnbsunsXGnMW2CmjcuO7G3/T8lbvZJ/0N1hxvrhupN1aXjGYU6sDYfirLmQIDAQAB
+else
 # Enable nightly updates on aurora and nightly channel
 ifeq (nightly,$(subst aurora,nightly,$(MOZ_UPDATE_CHANNEL)))
 DEFINES += -DLIGHTNING_UPDATE_LOCATION=https://calendar.mozilla.org/update.php
 endif
+endif
 
 # Gecko milestone
 GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
 ifdef GRE_MILESTONE
 DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE)
 endif
 
 # comm-central source repo and stamp
diff --git a/calendar/lightning/install.rdf b/calendar/lightning/install.rdf
--- a/calendar/lightning/install.rdf
+++ b/calendar/lightning/install.rdf
@@ -37,14 +37,15 @@
     <em:developer>Build ID: @GRE_BUILDID@</em:developer>
 #endif
     <em:creator>Mozilla Calendar Project</em:creator>
     <em:homepageURL>https://www.mozilla.org/projects/calendar/</em:homepageURL>
     <em:iconURL>chrome://calendar/skin/cal-icon32.png</em:iconURL>
     <em:optionsURL>chrome://messenger/content/preferences/preferences.xul</em:optionsURL>
     <em:targetPlatform>@TARGET_PLATFORM@</em:targetPlatform>
 #ifdef LIGHTNING_UPDATE_LOCATION
-    <em:updateURL>@LIGHTNING_UPDATE_LOCATION@?buildID=@GRE_BUILDID@&amp;appABI=%APP_ABI%&amp;appOS=%APP_OS%&amp;locale=%APP_LOCALE%&amp;appVersion=%APP_VERSION%&amp;appID=%APP_ID%</em:updateURL>
+    <em:updateURL>@LIGHTNING_UPDATE_LOCATION@?id=@XPI_EM_ID@&amp;buildID=@GRE_BUILDID@&amp;appABI=%APP_ABI%&amp;appOS=%APP_OS%&amp;locale=%APP_LOCALE%&amp;appVersion=%APP_VERSION%&amp;appID=%APP_ID%&amp;appTuned=@APP_TUNED@</em:updateURL>
+    <em:updateKey>@LIGHTNING_UPDATE_KEY@</em:updateKey>
 #endif
     <em:unpack>true</em:unpack>
     <em:strictCompatibility>true</em:strictCompatibility>
   </Description>
 </RDF>
