make-firejail 2.32 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/bash
#
#    Copyright (C) 2015 Francisco Javier Parra <franparpe@openmailbox.org>
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
#

EXTERNAL='deb-src http://ftp.es.debian.org/debian testing main'
SIGNKEY="7638D0442B90D010"
22 23 24
PROFILES_TO_BE_DELETED="chromium-browser.profile chromium.profile \
dropbox.profile google-chrome.profile opera.profile skype.profile \
spotify.profile steam.profile"
25 26 27 28 29 30 31 32 33

VERSION=1

. ./config

# Modify profile for abrowser
mv etc/iceweasel.profile etc/abrowser.profile

# Delete any trace of proprietary software configuration
34 35 36
for PROFILE in $PROFILES_TO_BE_DELETED; do
rm etc/$PROFILE
done
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

# Delete proprietary software instances in the control file
sed 's/Chromium/Icecat/' platform/debian/control -i
sed 's/Opera,//' platform/debian/control -i

# Modify the conffiles to include modifications
sed '/chromium/d' platform/debian/conffiles -i
sed '/google/d' platform/debian/conffiles -i
sed '/opera/d' platform/debian/conffiles -i
sed '/skype/d' platform/debian/conffiles -i
sed '/spotify/d' platform/debian/conffiles -i
sed '/steam/d' platform/debian/conffiles -i
sed '/dropbox/d' platform/debian/conffiles -i

# Substitute Iceweasel for Abrowser in the conffiles
sed 's/iceweasel/abrowser/' platform/debian/conffiles -i

# Modify the makefile to cover the changes made to the source package
sed '/chromium/d' Makefile.in -i
sed '/google/d' Makefile.in -i
sed '/opera/d' Makefile.in -i
sed '/skype/d' Makefile.in -i
sed '/spotify/d' Makefile.in -i
sed '/steam/d' Makefile.in -i
sed '/dropbox/d' Makefile.in -i
sed 's/iceweasel/abrowser/' Makefile.in -i

# Changelog
65
changelog "Bringing firejail to Trisquel purging proprietary software references"
66 67 68

compile