[debian-edu-commits] debian-edu/ 01/01: Move from Iceweasel to Firefox ESR: - rename several files containing iceweasel and also the directory share/iceweasel. - replace iceweasel with firefox in various files. - use '/etc/firefox-esr' as place for firefox preference files. - update Makefile.
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Sat Apr 23 13:25:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch master
in repository debian-edu-config.
commit 2f985785caedbc65ae003bd7654c0440f9888a7d
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Sat Apr 23 15:27:05 2016 +0200
Move from Iceweasel to Firefox ESR:
- rename several files containing iceweasel and also the directory share/iceweasel.
- replace iceweasel with firefox in various files.
- use '/etc/firefox-esr' as place for firefox preference files.
- update Makefile.
---
Makefile | 14 +++++++-------
cf/{cf.iceweasel => cf.firefox} | 16 ++++++++--------
cf/cf.squid | 4 ++--
cf/cfengine.conf | 2 +-
debian/changelog | 6 ++++++
...ldapconf => debian-edu-config.firefox-ldapconf} | 10 +++++-----
debian/dirs | 2 +-
debian/rules | 2 +-
...du-iceweasel-ltsp => 06debian-edu-firefox-ltsp} | 0
etc/apt/apt.conf.d/99-edu-prefer-firefox | 7 +++++++
etc/apt/apt.conf.d/99-edu-prefer-iceweasel | 7 -------
sbin/snakeoil-on-ice | 22 +++++++++++-----------
...tworked-prefs.js => firefox-networked-prefs.js} | 6 +++---
...easel-plugin-support => firefox-plugin-support} | 2 +-
...-iceweasel-homepage => update-firefox-homepage} | 6 +++---
.../common/share/apps/kicker/default-apps | 2 +-
share/debian-edu/common/share/config/kickoffrc | 2 +-
.../defaults/preferences/debian-edu.js | 2 +-
.../ltsp-build-client/Debian-custom/032-edu-pkgs | 2 +-
testsuite/ltsp | 2 +-
testsuite/webserver | 2 +-
21 files changed, 62 insertions(+), 56 deletions(-)
diff --git a/Makefile b/Makefile
index d41cbe3..89af64b 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ CFFILES = \
cf.exim \
cf.imap \
cf.homes \
- cf.iceweasel \
+ cf.firefox \
cf.inetd \
cf.kdm \
cf.krb5client \
@@ -81,7 +81,7 @@ CFBINFILES = \
SYSCONFFILES = \
asound.conf \
apt/apt.conf.d/90squid \
- apt/apt.conf.d/99-edu-prefer-iceweasel \
+ apt/apt.conf.d/99-edu-prefer-firefox \
bind/named.conf.ldap2zone \
bind/db.intern \
bind/db.10.in-addr.arpa. \
@@ -90,7 +90,7 @@ SYSCONFFILES = \
bind/db.0.168.192.in-addr.arpa. \
bind/db.1.168.192.in-addr.arpa. \
X11/Xsession.d/05debian-edu-truncate-xerrorlog \
- X11/Xsession.d/06debian-edu-iceweasel-ltsp \
+ X11/Xsession.d/06debian-edu-firefox-ltsp \
X11/Xsession.d/09debian-edu-missing-home \
X11/Xsession.d/10debian-edu-one-login-per-host \
desktop-profiles/debian-edu-config.listing \
@@ -364,7 +364,7 @@ install: install-testsuite
share/debian-edu-config/tools/gosa-sync \
share/debian-edu-config/tools/gosa-sync-dns-nfs \
share/debian-edu-config/tools/gosa-unlock-user \
- share/debian-edu-config/tools/iceweasel-plugin-support \
+ share/debian-edu-config/tools/firefox-plugin-support \
share/debian-edu-config/tools/kerberos-kdc-init \
share/debian-edu-config/tools/ldap2bind-updatezonelist \
share/debian-edu-config/tools/ldap-user-clean-attic.sh \
@@ -392,7 +392,7 @@ install: install-testsuite
share/debian-edu-config/tools/sssd-generate-config \
share/debian-edu-config/tools/squid-update-cachedir \
share/debian-edu-config/tools/subnet-change \
- share/debian-edu-config/tools/update-iceweasel-homepage \
+ share/debian-edu-config/tools/update-firefox-homepage \
share/debian-edu-config/tools/update-proxy-from-wpad \
share/debian-edu-config/tools/workaround-udev-bug-765577 \
share/debian-edu-config/tools/wpad-extract \
@@ -452,9 +452,9 @@ install: install-testsuite
set -e ; for f in \
share/debian-edu-config/rsyslog-collector \
- share/debian-edu-config/iceweacel-networked-prefs.js \
+ share/debian-edu-config/firefox-networked-prefs.js \
share/debian-edu-config/squid.conf \
- share/iceweasel/defaults/preferences/debian-edu.js \
+ share/firefox/defaults/preferences/debian-edu.js \
share/pam-configs/edu-group \
share/pam-configs/edu-umask \
share/perl5/Debian/Edu.pm \
diff --git a/cf/cf.iceweasel b/cf/cf.firefox
similarity index 72%
rename from cf/cf.iceweasel
rename to cf/cf.firefox
index 7eb7084..4ecd35c 100644
--- a/cf/cf.iceweasel
+++ b/cf/cf.firefox
@@ -1,16 +1,16 @@
#
-# Set up Iceweasel to accept the default ssl certificate created through cf.apache2.
+# Set up firefox to accept the default ssl certificate created through cf.apache2.
#
-# Should create cert_override.txt in /etc/iceweasel/profile/ that will be included
-# in new Iceweasel profiles created on local host.
+# Should create cert_override.txt in /etc/firefox/profile/ that will be included
+# in new firefox profiles created on local host.
# On main server use /etc/skel/ to create a default profile for new
-# users in case they start Iceweasel the first time on non configured
+# users in case they start firefox the first time on non configured
# hosts.
#
directories:
- # Check file system is prepared for the local Iceweasel default profile.
+ # Check file system is prepared for the local firefox default profile.
debian.installation.!standalone::
- /etc/iceweasel/profile mode=755 owner=root group=root
+ /etc/firefox/profile mode=755 owner=root group=root
# Check file system is prepared for inclusion in new users home directories.
debian.installation.server::
@@ -37,9 +37,9 @@ shellcommands:
# while school machines get the school start page from LDAP.
# The clients using LDAP also update the pages at boot.
debian.installation.standalone::
- "/usr/share/debian-edu-config/tools/update-iceweasel-homepage http\://www.skolelinux.org/"
+ "/usr/share/debian-edu-config/tools/update-firefox-homepage http\://www.skolelinux.org/"
debian.installation.!standalone::
- "/usr/share/debian-edu-config/tools/update-iceweasel-homepage ldap\:homepage"
+ "/usr/share/debian-edu-config/tools/update-firefox-homepage ldap\:homepage"
files:
# Ensure file file is readable by everyone
diff --git a/cf/cf.squid b/cf/cf.squid
index d2a6ba7..a292b2a 100644
--- a/cf/cf.squid
+++ b/cf/cf.squid
@@ -1,8 +1,8 @@
links:
# Enforce proxy on networked installs
debian.!standalone::
- /etc/iceweasel/pref/debian-edu-networked.js ->
- /usr/share/debian-edu-config/iceweacel-networked-prefs.js nofile=force
+ /etc/firefox-esr/debian-edu-networked.js ->
+ /usr/share/debian-edu-config/firefox-networked-prefs.js nofile=force
# Configure squid, copy our setup to /etc/squid/ (instead of
# including it in the package as a conffile), to ensure package
diff --git a/cf/cfengine.conf b/cf/cfengine.conf
index af679e6..2b96199 100644
--- a/cf/cfengine.conf
+++ b/cf/cfengine.conf
@@ -101,7 +101,7 @@ import:
cf.dhcpserver
cf.exim
cf.fstab
- cf.iceweasel
+ cf.firefox
cf.imap
cf.inetd
cf.kdm
diff --git a/debian/changelog b/debian/changelog
index 1874535..ffe313c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,12 @@ debian-edu-config (1.901) UNRELEASED; urgency=medium
- replace share-/d-e-c/squid3.conf with share-/d-e-c/squid.conf.
- adjust share-/d-e-c/tools/webcache/squid-update-cachedir.
- adjust Makefile.
+ * Move from Iceweasel to Firefox ESR:
+ - rename several files containing iceweasel and also the directory
+ share/iceweasel.
+ - replace iceweasel with firefox in various files.
+ - use '/etc/firefox-esr' as place for firefox preference files.
+ - update Makefile.
-- Wolfgang Schweer <wschweer at arcor.de> Thu, 14 Apr 2016 23:32:10 +0200
diff --git a/debian/debian-edu-config.iceweasel-ldapconf b/debian/debian-edu-config.firefox-ldapconf
similarity index 80%
rename from debian/debian-edu-config.iceweasel-ldapconf
rename to debian/debian-edu-config.firefox-ldapconf
index e60fba2..49bcf88 100755
--- a/debian/debian-edu-config.iceweasel-ldapconf
+++ b/debian/debian-edu-config.firefox-ldapconf
@@ -1,14 +1,14 @@
#!/bin/sh
### BEGIN INIT INFO
-# Provides: iceweasel-ldapconf
+# Provides: firefox-ldapconf
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $network $syslog $named slapd fetch-ldap-cert
# Default-Start: 2 3 4 5
# Default-Stop:
-# Short-Description: Update iceweasel configuration from LDAP
+# Short-Description: Update firefox configuration from LDAP
# Description:
-# Update default iceweasel default setup (currently only start page)
+# Update default firefox default setup (currently only start page)
# from LDAP. Check LDAP every boot to see if the default start page
# should be changed or not.
### END INIT INFO
@@ -32,12 +32,12 @@ do_start() {
# Only networked profiles use LDAP
if echo "$PROFILE" | egrep -q 'Main-Server|Workstation|Roaming-Workstation|Thin-Client-Server|Minimal' ; then
- /usr/share/debian-edu-config/tools/update-iceweasel-homepage ldap:homepage
+ /usr/share/debian-edu-config/tools/update-firefox-homepage ldap:homepage
fi
if echo "$PROFILE" | grep -q Thin-Client-Server && [ -d /opt/ltsp ] ; then
for ltsp_chroot in `find /opt/ltsp/ -mindepth 1 -maxdepth 1 -type d`; do
- chroot $ltsp_chroot /usr/share/debian-edu-config/tools/update-iceweasel-homepage ldap:homepage
+ chroot $ltsp_chroot /usr/share/debian-edu-config/tools/update-firefox-homepage ldap:homepage
done
fi
}
diff --git a/debian/dirs b/debian/dirs
index a29294c..bd97b70 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -8,7 +8,7 @@ etc/cron.d
etc/cups
etc/debian-edu
etc/default
-etc/iceweasel/profile
+etc/firefox
etc/init.d
etc/ldap/schema
etc/ldap/ssl
diff --git a/debian/rules b/debian/rules
index ed60b20..4341a08 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ override_dh_installinit:
# Start it after 15bind9 and 19slapd
dh_installinit --init-script fetch-ldap-cert -r --no-start -u"start 95 2 3 4 5 ."
# Start it after 15bind9, 19slapd and 95fetch-ldap-cert, and add some to be sure
- dh_installinit --init-script iceweasel-ldapconf -r --no-start -u"start 96 2 3 4 5 ."
+ dh_installinit --init-script firefox-ldapconf -r --no-start -u"start 96 2 3 4 5 ."
dh_installinit --init-script enable-nat --no-start
override_dh_gconf:
diff --git a/etc/X11/Xsession.d/06debian-edu-iceweasel-ltsp b/etc/X11/Xsession.d/06debian-edu-firefox-ltsp
similarity index 100%
rename from etc/X11/Xsession.d/06debian-edu-iceweasel-ltsp
rename to etc/X11/Xsession.d/06debian-edu-firefox-ltsp
diff --git a/etc/apt/apt.conf.d/99-edu-prefer-firefox b/etc/apt/apt.conf.d/99-edu-prefer-firefox
new file mode 100644
index 0000000..a114777
--- /dev/null
+++ b/etc/apt/apt.conf.d/99-edu-prefer-firefox
@@ -0,0 +1,7 @@
+// We prefer firefox over other alternatives
+DPkg
+{
+Post-Invoke {
+"x=/usr/bin/firefox;[ -x $x ] && update-alternatives --set x-www-browser $x||true";
+};
+};
diff --git a/etc/apt/apt.conf.d/99-edu-prefer-iceweasel b/etc/apt/apt.conf.d/99-edu-prefer-iceweasel
deleted file mode 100644
index 7ec903e..0000000
--- a/etc/apt/apt.conf.d/99-edu-prefer-iceweasel
+++ /dev/null
@@ -1,7 +0,0 @@
-// We prefer iceweasel over other alternatives
-DPkg
-{
-Post-Invoke {
-"x=/usr/bin/iceweasel;[ -x $x ] && update-alternatives --set x-www-browser $x||true";
-};
-};
diff --git a/sbin/snakeoil-on-ice b/sbin/snakeoil-on-ice
index 6ed08d7..2112be0 100644
--- a/sbin/snakeoil-on-ice
+++ b/sbin/snakeoil-on-ice
@@ -1,7 +1,7 @@
#!/bin/bash
#
-# Set up Iceweasel to accept the default ssl certificate created by debian-edu-config
-# for new users and new Iceweasel profiles.
+# Set up Firefox to accept the default ssl certificate created by debian-edu-config
+# for new users and new Firefox profiles.
#
# Author: Oded Naveh
# Date: 03-06-2009
@@ -66,9 +66,9 @@ fi
# Write the override entries in the default profile.
-# These will be copied to new Iceweasel profiles.
+# These will be copied to new Firefox profiles.
-OVERRIDE_FILE=/etc/iceweasel/profile/cert_override.txt
+OVERRIDE_FILE=/etc/firefox/profile/cert_override.txt
SED_SERVERS=$(echo $SERVERS | sed 's/ /\\|/g')
FINGERPRINT=$(openssl x509 -in $CERT -noout -sha256 -fingerprint | sed 's/SHA256 Fingerprint=//')
OVERRIDE_STRING="OID.2.16.840.1.101.3.4.2.1 $FINGERPRINT MU AAAAAAAAAAAAAAAJAAAAGgDgwHd5q3rzhTAYMRYwFAYDVQQDEw10amVuZXIuaW50 ZXJu" # Bogus database key (A.*Ju)
@@ -88,7 +88,7 @@ if [ -f $OVERRIDE_FILE ]; then
"\n\tcreated versioned backup in /var/backups/cert_override.x."
fi
else
- [ -d /etc/iceweasel/profile ] || mkdir -p /etc/iceweasel/profile
+ [ -d /etc/firefox/profile ] || mkdir -p /etc/firefox/profile
echo -e '# PSM Certificate Override Settings file\n# This is a generated file! Do not edit.\n' > $OVERRIDE_FILE.temp;
fi
@@ -139,25 +139,25 @@ if [[ $PROFILE =~ Main-Server ]]; then
fi
for ROOT in `find /opt/ltsp/ -mindepth 1 -maxdepth 1 -type d`; do
- if [ ! -d $ROOT/etc/iceweasel/profile ] ; then
- continue # Only process LTSP chroots with iceweasel installed
+ if [ ! -d $ROOT/etc/firefox/profile ] ; then
+ continue # Only process LTSP chroots with firefox installed
fi
# Make sure self signed SSL certificate for internal web site also
# work on diskless workstations.
- OVERRIDE_FILE=/etc/iceweasel/profile/cert_override.txt
+ OVERRIDE_FILE=/etc/firefox/profile/cert_override.txt
if [ -f $OVERRIDE_FILE ] ; then
mkdir -p $(dirname $ROOT$OVERRIDE_FILE)
if cp $OVERRIDE_FILE $ROOT$OVERRIDE_FILE ; then
chmod a+r $ROOT$OVERRIDE_FILE
else
cat 1>&2 <<EOF
-error: Can't copy the new Iceweasel override settings to LTSP.
-error: Iceweasel profiles created on a thin client will not accept
+error: Can't copy the new Firefox override settings to LTSP.
+error: Firefox profiles created on a thin client will not accept
error: the new certificate
EOF
fi
else
- error "Fail to find Iceweasel certificate override file."
+ error "Fail to find Firefox certificate override file."
fi
ls -l $ROOT$OVERRIDE_FILE |sed "s%^%info: $0: snakeoil-on-ice: %"
done
diff --git a/share/debian-edu-config/iceweacel-networked-prefs.js b/share/debian-edu-config/firefox-networked-prefs.js
similarity index 55%
rename from share/debian-edu-config/iceweacel-networked-prefs.js
rename to share/debian-edu-config/firefox-networked-prefs.js
index 9f169a8..521f389 100644
--- a/share/debian-edu-config/iceweacel-networked-prefs.js
+++ b/share/debian-edu-config/firefox-networked-prefs.js
@@ -1,9 +1,9 @@
// Force proxy usage. Only for networked clients. Enabled using cfengine
-// by symlinking this file to /etc/iceweasel/pref/debian-edu-networked.js
+// by symlinking this file to /etc/firefox/debian-edu-networked.js
-// Enable automatic proxy setting Configure Proxy settings in iceweasel,
+// Enable automatic proxy setting Configure Proxy settings in firefox,
// using "Web Access Protocol Discovery" (WAPD). See
// /etc/debian-edu/www/wpad.dat for the WAPD files. The location of
-// The WPAD file is handed out using DHCP and Iceweasel should look for
+// The WPAD file is handed out using DHCP and firefox should look for
// http://wpad/wpad.dat automatically.
lockPref("network.proxy.type", 4);
diff --git a/share/debian-edu-config/tools/iceweasel-plugin-support b/share/debian-edu-config/tools/firefox-plugin-support
similarity index 92%
rename from share/debian-edu-config/tools/iceweasel-plugin-support
rename to share/debian-edu-config/tools/firefox-plugin-support
index adbe42c..7b93962 100755
--- a/share/debian-edu-config/tools/iceweasel-plugin-support
+++ b/share/debian-edu-config/tools/firefox-plugin-support
@@ -1,7 +1,7 @@
#!/bin/sh
#
# List the supported MIME types of the available
-# mozilla/firefox/iceweasel plugins.
+# mozilla/firefox plugins.
#
# See also http://wiki.debian.org/DebianEdu/BrowserMultimedia
diff --git a/share/debian-edu-config/tools/update-iceweasel-homepage b/share/debian-edu-config/tools/update-firefox-homepage
similarity index 79%
rename from share/debian-edu-config/tools/update-iceweasel-homepage
rename to share/debian-edu-config/tools/update-firefox-homepage
index dbef5d6..5f3bfc6 100755
--- a/share/debian-edu-config/tools/update-iceweasel-homepage
+++ b/share/debian-edu-config/tools/update-firefox-homepage
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# Set default Iceweasel/firefox start page based on URL fetched from
+# Set default Firefox start page based on URL fetched from
# command line or LDAP.
set -e
-etcfile=/etc/iceweasel/pref/debian-edu-homepage-ldap.js
+etcfile=/etc/firefox-esr/debian-edu-homepage-ldap.js
if [ ldap:homepage = "$1" ] ; then
# Allow lookup script to be replaced using /etc/debian-edu/config
@@ -33,6 +33,6 @@ EOF
rm $etcfile.new
else
mv $etcfile.new $etcfile
- logger -t update-iceweasel-homepage "Updated Iceweasel default start page to $url."
+ logger -t update-firefox-homepage "Updated Firefox default start page to $url."
fi
fi
diff --git a/share/debian-edu/common/share/apps/kicker/default-apps b/share/debian-edu/common/share/apps/kicker/default-apps
index 321fdf5..78c9bbd 100644
--- a/share/debian-edu/common/share/apps/kicker/default-apps
+++ b/share/debian-edu/common/share/apps/kicker/default-apps
@@ -1,3 +1,3 @@
Home.desktop
-iceweasel.desktop
+firefox.desktop
ooo-writer.desktop
diff --git a/share/debian-edu/common/share/config/kickoffrc b/share/debian-edu/common/share/config/kickoffrc
index b0129ba..1efa5df 100644
--- a/share/debian-edu/common/share/config/kickoffrc
+++ b/share/debian-edu/common/share/config/kickoffrc
@@ -1,2 +1,2 @@
[Favorites]
-FavoriteURLs=/usr/share/applications/iceweasel.desktop,/usr/lib/libreoffice/share/xdg/writer.desktop,/usr/share/applications/gcompris.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop
+FavoriteURLs=/usr/share/applications/firefox.desktop,/usr/lib/libreoffice/share/xdg/writer.desktop,/usr/share/applications/gcompris.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop
diff --git a/share/iceweasel/defaults/preferences/debian-edu.js b/share/firefox/defaults/preferences/debian-edu.js
similarity index 96%
rename from share/iceweasel/defaults/preferences/debian-edu.js
rename to share/firefox/defaults/preferences/debian-edu.js
index 82b8655..65d6e52 100644
--- a/share/iceweasel/defaults/preferences/debian-edu.js
+++ b/share/firefox/defaults/preferences/debian-edu.js
@@ -34,7 +34,7 @@ pref("browser.safebrowsing.enabled", false);
// thin-clients.
pref("browser.urlbar.maxRichResults", 0);
-// Tell Iceweasel to not look for upgrades. Use apt to upgrade.
+// Tell Firefox to not look for upgrades. Use apt to upgrade.
pref("app.update.enabled", false);
// But it is allowed to look for new extentions.
diff --git a/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs b/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
index 0caf3e0..43f6c7f 100644
--- a/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
+++ b/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
@@ -292,7 +292,7 @@ finalization_diskless_workstation() {
stop-readahead stop-readahead-fedora \
exim4 openvpn \
resize_lvm hdparm rsync hddtemp fam resolvconf fetch-ldap-cert \
- iceweasel-ldapconf
+ firefox-ldapconf
# check which network the install is on, and start either as
# diskless workstation or thin client. Make sure to insert these
diff --git a/testsuite/ltsp b/testsuite/ltsp
index fe19f76..de7dfbe 100755
--- a/testsuite/ltsp
+++ b/testsuite/ltsp
@@ -59,7 +59,7 @@ if echo "$PROFILE" | grep -q Thin-Client-Server ; then
fi
for path in /etc/ldap/ssl/ldap-server-pubkey.pem \
- /etc/iceweasel/profile/cert_override.txt ; do
+ /etc/firefox/profile/cert_override.txt ; do
if cmp -s $path $chroot$path ; then
success "$path is identical inside and outside LTSP"
else
diff --git a/testsuite/webserver b/testsuite/webserver
index a772376..1504c59 100755
--- a/testsuite/webserver
+++ b/testsuite/webserver
@@ -20,7 +20,7 @@ if [ -e "$skeloverride" ] && [ -h "$skeloverride" ] ; then
echo "error: $0: Found symlink in $skeloverride."
fi
-overridefile=/etc/iceweasel/profile/cert_override.txt
+overridefile=/etc/firefox/profile/cert_override.txt
if [ ! -f "$overridefile" ] ; then
echo "error: $0: Missing $overridefile."
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list