summarylogtreecommitdiffstats
path: root/disable_debian.patch
blob: 3d8f10925b30d2779422f78dbabdb4ace50742ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
--- a/makeicecat	2019-05-05 03:44:23.568839764 +0200
+++ b/makeicecat	2019-05-05 15:19:35.058535696 +0200
@@ -112,9 +112,9 @@
 #done
 
 cp $DATA/Changelog.IceCat $DATA/README.IceCat .
-cp $DATA/Changelog.IceCat $DATA/README.IceCat debian
-echo 'debian/README.IceCat
-debian/Changelog.IceCat' >>  debian/docs
+#cp $DATA/Changelog.IceCat $DATA/README.IceCat debian
+#echo 'debian/README.IceCat
+#debian/Changelog.IceCat' >>  debian/docs
 
 ###############################################################################
 # Functions
@@ -182,17 +182,17 @@
 ADDONSURL="www.gnu.org/software/gnuzilla/addons.html"
 LISTURL="lists.gnu.org/mailman/listinfo/bug-gnuzilla"
 
-cat << EOF > debian/distribution.ini
-[Global]
-id=gnu
-version=$ICECATVERSION
-about=GNU IceCat
-
-[Preferences]
-app.distributor = "GNU"
-app.distributor.channel = "GNU"
-app.partner.ubuntu = "GNU"
-EOF
+#cat << EOF > debian/distribution.ini
+#[Global]
+#id=gnu
+#version=$ICECATVERSION
+#about=GNU IceCat
+#
+#[Preferences]
+#app.distributor = "GNU"
+#app.distributor.channel = "GNU"
+#app.partner.ubuntu = "GNU"
+#EOF
 
 ###############################################################################
 # Custom settings and features
@@ -201,7 +201,7 @@
 # Disable EME
 echo "ac_add_options --disable-eme" >> build/mozconfig.common.override
 echo "ac_add_options --disable-eme" >> build/mozconfig.common
-echo "ac_add_options --disable-eme" >> debian/config/mozconfig.in
+#echo "ac_add_options --disable-eme" >> debian/config/mozconfig.in
 
 # Disable healthreport
 sed '/mozilla.org\/legal/d' -i toolkit/components/telemetry/healthreport-prefs.js
@@ -213,7 +213,7 @@
 sed "s%https://www.mozilla.org/legal/privacy/%https://$LEGALINFOURL%" -i ./browser/app/profile/firefox.js ./toolkit/content/aboutRights.xhtml
 
 # Set vendor string
-sed 's/com.ubuntu/org.gnu/' -i debian/config/mozconfig.in
+#sed 's/com.ubuntu/org.gnu/' -i debian/config/mozconfig.in
 
 # Copy custom ddg search plugin
 find |grep -e ddg.xml -e duckduckgo.*.xml | xargs -i cp $DATA/searchplugins/duckduckgo.xml {}
@@ -233,8 +233,8 @@
 
 # contact link
 #sed "s_https://input.mozilla.org/feedback_https://${LISTURL}_" -i browser/base/content/utilityOverlay.js
-sed  "s/^MOZ_APP_NAME\t.*/MOZ_APP_NAME\t\t:= icecat/;" debian/build/config.mk -i
-sed  "s/^MOZ_PKG_NAME\t.*/MOZ_PKG_NAME\t\t:= icecat/;" debian/build/config.mk -i
+#sed  "s/^MOZ_APP_NAME\t.*/MOZ_APP_NAME\t\t:= icecat/;" debian/build/config.mk -i
+#sed  "s/^MOZ_PKG_NAME\t.*/MOZ_PKG_NAME\t\t:= icecat/;" debian/build/config.mk -i
 
 # Disable activity-stream antifeatures.
 # These are not condensed into a single sed script to make it fail on individual commands that didn't change the source
@@ -269,16 +269,16 @@
 cp -a $DATA/branding/icecatmobile/ mobile/android/branding/nightly
 # Disable preprocessor
 sed 's/_PP//' -i browser/branding/branding-common.mozbuild
-cat << EOF > debian/config/branch.mk
-CHANNEL                 = release
-MOZ_WANT_UNIT_TESTS     = 0
-MOZ_BUILD_OFFICIAL      = 0
-MOZ_ENABLE_BREAKPAD     = 0
-MOZ_ENABLE_TELEMETRY    = 0
-
-MOZILLA_REPO = http://hg.mozilla.org/releases/mozilla-release
-L10N_REPO = http://hg.mozilla.org/releases/l10n/mozilla-release
-EOF
+#cat << EOF > debian/config/branch.mk
+#CHANNEL                 = release
+#MOZ_WANT_UNIT_TESTS     = 0
+#MOZ_BUILD_OFFICIAL      = 0
+#MOZ_ENABLE_BREAKPAD     = 0
+#MOZ_ENABLE_TELEMETRY    = 0
+#
+#MOZILLA_REPO = http://hg.mozilla.org/releases/mozilla-release
+#L10N_REPO = http://hg.mozilla.org/releases/l10n/mozilla-release
+#EOF
 
 # Delete stuff we don't use and that may contain trademaked logos
 rm -rf ./browser/metro ./addon-sdk/source/doc/static-files/media ./b2g
@@ -286,8 +286,8 @@
 # Custom bookmarks
 cp $DATA/bookmarks.html.in browser/locales/generic/profile/bookmarks.html.in
 
-[ -d $DATA/searchplugins ] && cp $DATA/searchplugins debian/search -a
-[ -d $DATA/searchplugins ] && echo "debian/search/* /usr/lib/icecat-addons/searchplugins" >> debian/firefox.install.in
+#[ -d $DATA/searchplugins ] && cp $DATA/searchplugins debian/search -a
+#[ -d $DATA/searchplugins ] && echo "debian/search/* /usr/lib/icecat-addons/searchplugins" >> debian/firefox.install.in
 
 # Custom legal about pages
 
@@ -633,8 +633,8 @@
 #sed '/972ce4c6/  s%$%\n/extensions.gnu/* @MOZ_ADDONDIR@/extensions%' -i debian/icecat.install.in
 
 
-sed '/972ce4c6/d;' -i debian/icecat.install.in
-echo "@MOZ_LIBDIR@/browser/extensions @MOZ_ADDONDIR@" >> debian/icecat.install.in
+#sed '/972ce4c6/d;' -i debian/icecat.install.in
+#echo "@MOZ_LIBDIR@/browser/extensions @MOZ_ADDONDIR@" >> debian/icecat.install.in
 
 # Add extensions to allowed-dupes.mn
 cat << EOF >> ./browser/installer/allowed-dupes.mn
@@ -658,70 +658,70 @@
 ###############################################################################
 # Deb generation specifics
 ###############################################################################
-cat << EOF >> debian/abrowser.postinst.in
-
-if [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ] ; then
-
-[ -f /usr/bin/mozilla ] || ln -s /usr/bin/icecat /usr/bin/mozilla && true
-
-for USER in \$(grep -v /bin/false /etc/passwd|grep :/home|cut -d: -f1)
-do
-    [ -d /home/\$USER/.mozilla/ ] || continue
-    [ -d /home/\$USER/.mozilla/icecat ] && continue
-    [ -d /home/\$USER/.mozilla/firefox ] && DIR=/home/\$USER/.mozilla/firefox
-    [ -d /home/\$USER/.mozilla/abrowser ] && DIR=/home/\$USER/.mozilla/abrowser
-    [ \$DIR ] || continue
-    echo Copying \$DIR into /home/\$USER/.mozilla/icecat
-    cp -a \$DIR /home/\$USER/.mozilla/icecat
-done
-fi
-EOF
-
-cat << EOF >> debian/icecat.preinst.in
-
-EOF
-
-cat << EOF >> debian/icecat.postrm.in
-
-[ -L /usr/bin/mozilla ] && rm /usr/bin/mozilla -f || true
-EOF
-
-echo "This package generated from Mozilla Firefox by $DEBFULLNAME <$DEBEMAIL> on
-$(date)
-More info at http://www.gnu.org/software/gnuzilla/
-
-===
-
-$(cat debian/copyright)" > debian/copyright
-
-# Remove icecat-globalmenu package
-sed '/Package:.*globalmenu/,/^$/d' -i debian/control.in
-
-# Don't recommend ubufox
-sed 's/xul-ext-ubufox//' -i debian/control.in
-
-# Provide iceweasel, firefox
-sed 's/iceweasel,/iceweasel, firefox,/' -i debian/control.in
-
-# Locale packages should provide firefox-locale-$LANG
-sed "s/Provides.*/Provides: firefox-locale-@LANGCODE@, abrowser-locale-@LANGCODE@/" -i debian/control.langpacks
-
-# icecat-dev should provide firefox-dev
-sed '/Package: @MOZ_PKG_NAME@-dev/ s/$/\nProvides: firefox-dev/' debian/control.in -i
-# icacat should provide and replace abrowser and firefox
-sed '/Package: @MOZ_PKG_NAME@$/,/Description:/ s/Provides:/Provides:firefox, abrowser, /' debian/control.in -i
-sed '/Package: @MOZ_PKG_NAME@$/,/Description:/ s/Replaces:/Replaces:firefox, abrowser, /' debian/control.in -i
-
-sed '/Vcs-Bzr/d; s/from Mozilla/from GNU/' debian/control.in -i
-
-sed "s_^Maintainer.*_Maintainer: $DEBFULLNAME <$DEBEMAIL>_g" -i debian/control.in
-rm debian/control
-debian/rules debian/control
-touch -d "yesterday" debian/control
-debian/rules debian/control
-
-echo | dch -b -D stable -v "$ICECATVERSION"  "Converted into IceCat (http://www.gnu.org/software/gnuzilla/)"
-sed "1s/firefox/icecat/" -i debian/changelog
+#cat << EOF >> debian/abrowser.postinst.in
+#
+#if [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ] ; then
+#
+#[ -f /usr/bin/mozilla ] || ln -s /usr/bin/icecat /usr/bin/mozilla && true
+#
+#for USER in \$(grep -v /bin/false /etc/passwd|grep :/home|cut -d: -f1)
+#do
+#    [ -d /home/\$USER/.mozilla/ ] || continue
+#    [ -d /home/\$USER/.mozilla/icecat ] && continue
+#    [ -d /home/\$USER/.mozilla/firefox ] && DIR=/home/\$USER/.mozilla/firefox
+#    [ -d /home/\$USER/.mozilla/abrowser ] && DIR=/home/\$USER/.mozilla/abrowser
+#    [ \$DIR ] || continue
+#    echo Copying \$DIR into /home/\$USER/.mozilla/icecat
+#    cp -a \$DIR /home/\$USER/.mozilla/icecat
+#done
+#fi
+#EOF
+#
+#cat << EOF >> debian/icecat.preinst.in
+#
+#EOF
+#
+#cat << EOF >> debian/icecat.postrm.in
+#
+#[ -L /usr/bin/mozilla ] && rm /usr/bin/mozilla -f || true
+#EOF
+#
+#echo "This package generated from Mozilla Firefox by $DEBFULLNAME <$DEBEMAIL> on
+#$(date)
+#More info at http://www.gnu.org/software/gnuzilla/
+#
+#===
+#
+#$(cat debian/copyright)" > debian/copyright
+#
+## Remove icecat-globalmenu package
+#sed '/Package:.*globalmenu/,/^$/d' -i debian/control.in
+#
+## Don't recommend ubufox
+#sed 's/xul-ext-ubufox//' -i debian/control.in
+#
+## Provide iceweasel, firefox
+#sed 's/iceweasel,/iceweasel, firefox,/' -i debian/control.in
+#
+## Locale packages should provide firefox-locale-$LANG
+#sed "s/Provides.*/Provides: firefox-locale-@LANGCODE@, abrowser-locale-@LANGCODE@/" -i debian/control.langpacks
+#
+## icecat-dev should provide firefox-dev
+#sed '/Package: @MOZ_PKG_NAME@-dev/ s/$/\nProvides: firefox-dev/' debian/control.in -i
+## icacat should provide and replace abrowser and firefox
+#sed '/Package: @MOZ_PKG_NAME@$/,/Description:/ s/Provides:/Provides:firefox, abrowser, /' debian/control.in -i
+#sed '/Package: @MOZ_PKG_NAME@$/,/Description:/ s/Replaces:/Replaces:firefox, abrowser, /' debian/control.in -i
+#
+#sed '/Vcs-Bzr/d; s/from Mozilla/from GNU/' debian/control.in -i
+#
+#sed "s_^Maintainer.*_Maintainer: $DEBFULLNAME <$DEBEMAIL>_g" -i debian/control.in
+#rm debian/control
+#debian/rules debian/control
+#touch -d "yesterday" debian/control
+#debian/rules debian/control
+#
+#echo | dch -b -D stable -v "$ICECATVERSION"  "Converted into IceCat (http://www.gnu.org/software/gnuzilla/)"
+#sed "1s/firefox/icecat/" -i debian/changelog
 
 touch configure js/src/configure
 
@@ -734,6 +734,6 @@
 /bin/sed 's/chmod a+w/chmod u+w/' -i ./js/src/ctypes/libffi/Makefile.in ./toolkit/crashreporter/google-breakpad/Makefile.in ./toolkit/crashreporter/google-breakpad/src/third_party/glog/Makefile.in || true
 
 
-cd ..
-echo Packaging tarball
-tar cfj icecat-$ICECATVERSION.tar.bz2 $SOURCEDIR
+#cd ..
+#echo Packaging tarball
+#tar cfj icecat-$ICECATVERSION.tar.bz2 $SOURCEDIR