Repo moved to specific fct

This commit is contained in:
Francois B 2018-03-19 05:36:58 +01:00
parent 27953a2232
commit c7130b29b5
2 changed files with 180 additions and 76 deletions

View file

@ -363,7 +363,7 @@ function addSpecificRepoFct () {
for i in $AppsRepo; do for i in $AppsRepo; do
appRepo=(${i//;/ }) appRepo=(${i//;/ })
if [ "${appRepo[0]}" == "$1" ]; then if [ "${appRepo[0]}" == "$1" ]; then
printf "[ADD_REPO_FCT] for package : $1, " printf "[ADD_REPO] for package : $1, "
printf "add repo by function : ${appRepo[1]} \n" printf "add repo by function : ${appRepo[1]} \n"
eval "${appRepo[1]}" eval "${appRepo[1]}"
repoAdded=$(($repoAdded+1)) repoAdded=$(($repoAdded+1))
@ -384,7 +384,7 @@ function processAppTrtFct () {
for i in $AppsTrtFct; do for i in $AppsTrtFct; do
appTrtFct=(${i//;/ }) appTrtFct=(${i//;/ })
if [ "${appTrtFct[0]}" == "$1" ]; then if [ "${appTrtFct[0]}" == "$1" ]; then
printf "[APP_TRT_FCT] for package : $1, " printf "[TRT_FCT] for package : $1, "
printf "processing function : ${appTrtFct[1]} \n" printf "processing function : ${appTrtFct[1]} \n"
eval "${appTrtFct[1]}" eval "${appTrtFct[1]}"
fi fi

View file

@ -414,20 +414,168 @@ intellij-idea-community;snap;idea;idea"
# list of specific repositories # list of specific repositories
# fields : unique ID, function to add repo # fields : unique ID, function to add repo
# #
AppsRepo="kodi-beta;addSpecificRepo_KodiBeta AppsRepo="kodi-beta;addRepo_KodiBeta
kodi-nightly;addSpecificRepo_KodiNightly kodi-nightly;addRepo_KodiNightly
libreoffice6;addSpecificRepo_Libreoffice6 libreoffice6;addRepo_Libreoffice6
winehq-devel;addSpecificRepo_Wine winehq-devel;addRepo_Wine
mongodb;addSpecificRepo_MongoDB3CE mongodb;addRepo_MongoDB3CE
gyazo;addSpecificRepo_Gyazo gyazo;addRepo_Gyazo
code;addSpecificRepo_VSCode code;addRepo_VSCode
android-studio;addSpecificRepo_AndroidStudio android-studio;addRepo_AndroidStudio
docker-ce;addSpecificRepo_DockerCE" docker-ce;addRepo_DockerCE
ansible;addRepo_Ansible
etcher-electron;addRepo_Etcher
sublime-text;addRepo_SublimeText
vivaldi-stable;addRepo_Vivaldi
virtualbox-5.1;addRepo_VirtualBox
owncloud-client;addRepo_OwnCloud
syncthing-gtk;addRepo_Syncthing
opera-stable;addRepo_Opera
insync;addRepo_Insync
google-chrome-stable;addRepo_ChromeStable
atom;addRepo_Atom
nextcloud-client;addRepo_NextCloud
wireshark;addRepo_WireShark
darktable;addRepo_DarkTable
brackets;addRepo_Brackets
kicad;addRepo_Kicad"
#
# Kicad 4
#
function addRepo_Kicad () {
addPPA "ppa:js-reynaud/kicad-4"
}
#
# Brackets IDE
#
function addRepo_Brackets () {
addPPA "ppa:webupd8team/brackets"
}
#
# Darktable RAW Editor
#
function addRepo_DarkTable () {
addPPA "ppa:pmjdebruijn/darktable-release"
}
#
# WireShark
#
function addRepo_WireShark () {
addPPA "ppa:wireshark-dev/stable"
}
#
# NextCloud
#
function addRepo_NextCloud () {
addPPA "ppa:nextcloud-devs/client"
}
#
# Atom IDE
#
function addRepo_Atom () {
addPPA "ppa:webupd8team/atom"
}
#
# Google Chrome (stable)
#
function addRepo_ChromeStable () {
addKey "https://dl.google.com/linux/linux_signing_key.pub"
addRepo google-chrome.list \
"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
}
#
# Insync
#
function addRepo_Insync () {
addKey "https://d2t3ff60b2tol4.cloudfront.net/services@insynchq.com.gpg.key"
addRepo insync.list \
"deb http://apt.insynchq.com/ubuntu xenial non-free contrib"
}
#
# Opera (stable)
#
function addRepo_Opera () {
addKey "http://deb.opera.com/archive.key"
addRepo opera.list \
"deb http://deb.opera.com/opera-stable/ stable non-free"
}
#
# Syncthing
#
function addRepo_Syncthing () {
addKey "https://syncthing.net/release-key.txt"
addRepo syncthing.list \
"deb http://apt.syncthing.net/ syncthing release"
}
#
# OwnCloud
#
function addRepo_OwnCloud () {
addKey "http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_16.04/Release.key"
addRepo owncloud-client.list \
"deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /"
}
#
# VirtualBox
#
function addRepo_VirtualBox () {
addKey "http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc"
addKey "http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc"
addRepo virtualbox.list \
"deb http://download.virtualbox.org/virtualbox/debian xenial contrib"
}
#
# Vivaldi
#
function addRepo_Vivaldi () {
addKey "http://repo.vivaldi.com/stable/linux_signing_key.pub"
addRepo vivaldi.list \
"deb http://repo.vivaldi.com/stable/deb/ stable main "
}
#
# SublimeText
#
function addRepo_SublimeText () {
addKey "https://download.sublimetext.com/sublimehq-pub.gpg"
addRepo sublime-text.list \
"deb https://download.sublimetext.com/ apt/dev/"
}
#
# Etcher
#
function addRepo_Etcher () {
addKey "hkp://pgp.mit.edu:80" \
"379CE192D401AB61"
addRepo "etcher.list" \
"deb https://dl.bintray.com/resin-io/debian stable etcher"
}
#
# Ansible
#
function addRepo_Ansible () {
addPPA "ppa:ansible/ansible"
}
# #
# Docker CE # Docker CE
# #
function addSpecificRepo_DockerCE () { function addRepo_DockerCE () {
addKey "https://download.docker.com/linux/ubuntu/gpg" addKey "https://download.docker.com/linux/ubuntu/gpg"
addRepo "docker.list" \ addRepo "docker.list" \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
@ -436,7 +584,7 @@ function addSpecificRepo_DockerCE () {
# #
# Gyazo # Gyazo
# #
function addSpecificRepo_Gyazo () { function addRepo_Gyazo () {
addKey "https://packagecloud.io/gyazo/gyazo-for-linux/gpgkey" addKey "https://packagecloud.io/gyazo/gyazo-for-linux/gpgkey"
addRepo "gyazo_gyazo-for-linux.list" \ addRepo "gyazo_gyazo-for-linux.list" \
"deb https://packagecloud.io/gyazo/gyazo-for-linux/ubuntu/ xenial main" \ "deb https://packagecloud.io/gyazo/gyazo-for-linux/ubuntu/ xenial main" \
@ -446,7 +594,7 @@ function addSpecificRepo_Gyazo () {
# #
# MongoDB 3 CE # MongoDB 3 CE
# #
function addSpecificRepo_MongoDB3CE () { function addRepo_MongoDB3CE () {
addKey "https://www.mongodb.org/static/pgp/server-3.6.asc" addKey "https://www.mongodb.org/static/pgp/server-3.6.asc"
addRepo "mongodb-org-3.6.list" \ addRepo "mongodb-org-3.6.list" \
"deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse"
@ -455,7 +603,7 @@ function addSpecificRepo_MongoDB3CE () {
# #
# Wine Build # Wine Build
# #
function addSpecificRepo_Wine () { function addRepo_Wine () {
addKey "https://dl.winehq.org/wine-builds/Release.key" addKey "https://dl.winehq.org/wine-builds/Release.key"
addPPA "https://dl.winehq.org/wine-builds/ubuntu/" addPPA "https://dl.winehq.org/wine-builds/ubuntu/"
} }
@ -463,37 +611,37 @@ function addSpecificRepo_Wine () {
# #
# LibreOffice 6 # LibreOffice 6
# #
function addSpecificRepo_Libreoffice6 () { function addRepo_Libreoffice6 () {
addPPA "ppa:libreoffice/ppa" addPPA "ppa:libreoffice/ppa"
} }
# #
# Kodi Beta, repo # Kodi (Beta)
# #
function addSpecificRepo_KodiBeta () { function addRepo_KodiBeta () {
addPPA "ppa:team-xbmc/unstable" addPPA "ppa:team-xbmc/unstable"
} }
# #
# Kodi Nightly repo # Kodi (Nightly)
# #
function addSpecificRepo_KodiNightly () { function addRepo_KodiNightly () {
addPPA "ppa:team-xbmc/xbmc-nightly" addPPA "ppa:team-xbmc/xbmc-nightly"
} }
# #
# Visual Studio Code repo # Visual Studio Code
# #
function addSpecificRepo_VSCode () { function addRepo_VSCode () {
addKey "https://packages.microsoft.com/keys/microsoft.asc" addKey "https://packages.microsoft.com/keys/microsoft.asc"
addRepo "vscode.list" \ addRepo "vscode.list" \
"deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
} }
# #
# Android-Studio repo # Android-Studio
# #
function addSpecificRepo_AndroidStudio () { function addRepo_AndroidStudio () {
addPPA "ppa:maarten-fonville/android-studio" addPPA "ppa:maarten-fonville/android-studio"
} }
@ -505,14 +653,14 @@ function addSpecificRepo_AndroidStudio () {
# list of post install functions # list of post install functions
# fields : unique ID, function to process after install # fields : unique ID, function to process after install
# #
AppsTrtFct="nitrogen;nitrogenTrtFct AppsTrtFct="nitrogen;nitrogen_TrtFct
mongodb-org;mongodbTrtFct mongodb-org;mongodb_TrtFct
qttools5-dev-tools;qtTrtFct" qttools5-dev-tools;qt_TrtFct"
# #
# QT5 Dev Tools # QT5 Dev Tools
# #
function qtTrtFct () { function qt_TrtFct () {
runCmd "sudo ln -s /usr/share/qtchooser/qt5-x86_64-linux-gnu.conf /usr/lib/x86_64-linux-gnu/qtchooser/default.conf" runCmd "sudo ln -s /usr/share/qtchooser/qt5-x86_64-linux-gnu.conf /usr/lib/x86_64-linux-gnu/qtchooser/default.conf"
createAppShortcut "/usr/bin/designer" \ createAppShortcut "/usr/bin/designer" \
@ -526,7 +674,7 @@ function qtTrtFct () {
# #
# MongoDB 3 CE # MongoDB 3 CE
# #
function mongodbTrtFct () { function mongodb_TrtFct () {
runCmd "sudo systemctl unmask mongodb.service" runCmd "sudo systemctl unmask mongodb.service"
runCmd "sudo systemctl enable mongodb" runCmd "sudo systemctl enable mongodb"
runCmd "sudo systemctl start mongodb" runCmd "sudo systemctl start mongodb"
@ -535,7 +683,7 @@ function mongodbTrtFct () {
# #
# nitrogen post install function # nitrogen post install function
# #
function nitrogenTrtFct () { function nitrogen_TrtFct () {
if isMate; then if isMate; then
runCmd "gsettings set org.mate.background draw-background false" runCmd "gsettings set org.mate.background draw-background false"
runCmd "gsettings set org.mate.background show-desktop-icons false" runCmd "gsettings set org.mate.background show-desktop-icons false"
@ -552,6 +700,8 @@ function nitrogenTrtFct () {
fi fi
} }
#-----------------------------------------------------------------------------#
# #
# install required ppa and settings # install required ppa and settings
# #
@ -571,7 +721,6 @@ function addRequiredPPA () {
addPPA "ppa:teejee2008/ppa" # Aptik - Conky-Manage addPPA "ppa:teejee2008/ppa" # Aptik - Conky-Manage
addPPA "ppa:yktooo/ppa" # indicator-sound-switcher addPPA "ppa:yktooo/ppa" # indicator-sound-switcher
addPPA "ppa:webupd8team/y-ppa-manager" # y-ppa-manager addPPA "ppa:webupd8team/y-ppa-manager" # y-ppa-manager
addPPA "ppa:webupd8team/atom" # IDE
addPPA "ppa:videolan/stable-daily" # video player addPPA "ppa:videolan/stable-daily" # video player
addPPA "ppa:ubuntu-desktop/ubuntu-make" # ubuntu-make addPPA "ppa:ubuntu-desktop/ubuntu-make" # ubuntu-make
addPPA "ppa:nowrep/qupzilla" # web browser addPPA "ppa:nowrep/qupzilla" # web browser
@ -590,10 +739,7 @@ function addRequiredPPA () {
addPPA "ppa:haraldhv/shotcut" # video editor addPPA "ppa:haraldhv/shotcut" # video editor
addPPA "ppa:flacon/ppa" # audio extraction addPPA "ppa:flacon/ppa" # audio extraction
addPPA "ppa:jaap.karssenberg/zim" # local wiki addPPA "ppa:jaap.karssenberg/zim" # local wiki
addPPA "ppa:pmjdebruijn/darktable-release" # raw editor
addPPA "ppa:js-reynaud/kicad-4" # CAD
addPPA "ppa:stebbins/handbrake-releases" # video transcoder addPPA "ppa:stebbins/handbrake-releases" # video transcoder
addPPA "ppa:webupd8team/brackets" # IDE
addPPA "ppa:graphics-drivers/ppa" # non-free nvidia drivers addPPA "ppa:graphics-drivers/ppa" # non-free nvidia drivers
addPPA "ppa:djcj/hybrid" # FFMpeg, MKVToolnix addPPA "ppa:djcj/hybrid" # FFMpeg, MKVToolnix
addPPA "ppa:diodon-team/stable" # clipboard manager addPPA "ppa:diodon-team/stable" # clipboard manager
@ -607,7 +753,6 @@ function addRequiredPPA () {
addPPA "ppa:maarten-baert/simplescreenrecorder" # simplescreenrecorder addPPA "ppa:maarten-baert/simplescreenrecorder" # simplescreenrecorder
addPPA "ppa:dhor/myway" # rawtherapee (newer version) addPPA "ppa:dhor/myway" # rawtherapee (newer version)
addPPA "ppa:zeal-developers/ppa" # Zeal (newer version) addPPA "ppa:zeal-developers/ppa" # Zeal (newer version)
addPPA "ppa:nextcloud-devs/client" # NextCloud client
addPPA "ppa:deluge-team/ppa" # Deluge P2P client addPPA "ppa:deluge-team/ppa" # Deluge P2P client
addPPA "ppa:kritalime/ppa" # Krita addPPA "ppa:kritalime/ppa" # Krita
addPPA "ppa:otto-kesselgulasch/gimp" # Gmic2 addPPA "ppa:otto-kesselgulasch/gimp" # Gmic2
@ -615,28 +760,6 @@ function addRequiredPPA () {
addPPA "ppa:fossproject/ppa" # green-recorder addPPA "ppa:fossproject/ppa" # green-recorder
addPPA "ppa:quiterss/quiterss" # quiterss addPPA "ppa:quiterss/quiterss" # quiterss
addPPA "ppa:tmsu/ppa" # tmsu addPPA "ppa:tmsu/ppa" # tmsu
addPPA "ppa:ansible/ansible" # ansible
addPPA "ppa:wireshark-dev/stable" # wireshark
addKey "http://deb.opera.com/archive.key"
addRepo opera.list \
"deb http://deb.opera.com/opera-stable/ stable non-free"
addKey "https://dl.google.com/linux/linux_signing_key.pub"
addRepo google-chrome.list \
"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
addKey "https://d2t3ff60b2tol4.cloudfront.net/services@insynchq.com.gpg.key"
addRepo insync.list \
"deb http://apt.insynchq.com/ubuntu xenial non-free contrib"
addKey "https://syncthing.net/release-key.txt"
addRepo syncthing.list \
"deb http://apt.syncthing.net/ syncthing release"
addKey "http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_16.04/Release.key"
addRepo owncloud-client.list \
"deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /"
addKey "https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt" addKey "https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt"
addRepo mkv.list \ addRepo mkv.list \
@ -647,28 +770,9 @@ function addRequiredPPA () {
addRepo jgeboski.list \ addRepo jgeboski.list \
"deb http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_16.04/ ./" "deb http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_16.04/ ./"
addKey "http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc"
addKey "http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc"
addRepo virtualbox.list \
"deb http://download.virtualbox.org/virtualbox/debian xenial contrib"
addKey "http://archive.getdeb.net/getdeb-archive.key" addKey "http://archive.getdeb.net/getdeb-archive.key"
addRepo getdeb.list \ addRepo getdeb.list \
"deb http://archive.getdeb.net/ubuntu xenial-getdeb apps games" "deb http://archive.getdeb.net/ubuntu xenial-getdeb apps games"
addKey "http://repo.vivaldi.com/stable/linux_signing_key.pub"
addRepo vivaldi.list \
"deb http://repo.vivaldi.com/stable/deb/ stable main "
addKey "https://download.sublimetext.com/sublimehq-pub.gpg"
addRepo sublime-text.list \
"deb https://download.sublimetext.com/ apt/dev/"
addKey "hkp://pgp.mit.edu:80" \
"379CE192D401AB61"
#"https://dl.bintray.com/resin-io/debian/Release.gpg"
addRepo "etcher.list" \
"deb https://dl.bintray.com/resin-io/debian stable etcher"
updateSystem updateSystem
} }