2018-11-01 21:13:42 +01:00
|
|
|
Summary: Install LALIS packages and configuration
|
|
|
|
Name: task-lalis
|
|
|
|
Version: 1
|
2019-03-07 18:24:33 +01:00
|
|
|
Release: %mkrel 3
|
2018-11-01 21:13:42 +01:00
|
|
|
License: GPLv3
|
|
|
|
Group: Tools
|
2019-03-07 18:24:33 +01:00
|
|
|
Url: http://lalis.fr
|
|
|
|
|
2018-11-01 21:13:42 +01:00
|
|
|
Source1: journald.conf
|
2018-12-07 23:21:38 +01:00
|
|
|
Source2: lalistunnel
|
2018-11-01 21:26:52 +01:00
|
|
|
Source3: Lalis.desktop
|
2019-03-21 19:58:35 +01:00
|
|
|
Source4: identPC.sh
|
2019-03-21 21:57:27 +01:00
|
|
|
Source5: sync_check.sh
|
|
|
|
Source6: checklist.txt
|
2018-11-01 21:13:42 +01:00
|
|
|
Requires: openssh-server
|
|
|
|
Requires: sshfs-fuse
|
|
|
|
Requires: celestia
|
|
|
|
Requires: kstars
|
|
|
|
Requires: stellarium
|
|
|
|
Requires: ssmtp
|
|
|
|
Requires: kwallet-pam
|
|
|
|
Requires: tuxpaint
|
|
|
|
Requires: avidemux-qt-plugins
|
|
|
|
Requires: kpdftool
|
2019-02-20 11:18:39 +01:00
|
|
|
Requires: gcompris-qt
|
2018-11-01 21:13:42 +01:00
|
|
|
Requires: kgpg
|
|
|
|
Requires: xsane
|
|
|
|
Requires: celestia
|
|
|
|
Requires: kstars
|
|
|
|
Requires: stellarium
|
|
|
|
Requires: gnuplot
|
|
|
|
Requires: drgeo
|
|
|
|
Requires: %{_lib}dvdcss2
|
|
|
|
Requires: evince
|
|
|
|
Requires: audacity
|
|
|
|
Requires: kdenlive
|
|
|
|
Requires: spamassassin
|
|
|
|
Requires: p7zip
|
|
|
|
Requires: unrar
|
|
|
|
Requires: kaudiocreator
|
|
|
|
Requires: ark
|
|
|
|
Requires: kim4
|
|
|
|
Requires: krename
|
|
|
|
Requires: gimp-resynthesizer
|
|
|
|
Requires: gimp-data-extras
|
|
|
|
Requires: gimp-plugin-gmic
|
|
|
|
Requires: ktorrent
|
|
|
|
Requires: lame
|
|
|
|
Requires: pidgin
|
|
|
|
Requires: empathy
|
|
|
|
Requires: vlc-plugin-opengl
|
|
|
|
Requires: vlc-plugin-pulse
|
|
|
|
Requires: vlc-plugin-vdpau
|
|
|
|
Requires: vlc-plugin-lua
|
|
|
|
Requires: vlc-plugin-common
|
|
|
|
Requires: vlc-plugin-flac
|
|
|
|
Requires: vlc-plugin-fluidsynth
|
|
|
|
Requires: phonon-vlc
|
|
|
|
Requires: vlc-plugin-gnutls
|
|
|
|
Requires: vlc-plugin-kate
|
|
|
|
Requires: vlc-plugin-libass
|
|
|
|
Requires: vlc-plugin-libnotify
|
|
|
|
Requires: vlc-plugin-mod
|
|
|
|
Requires: vlc-plugin-mpc
|
|
|
|
Requires: vlc-plugin-projectm
|
|
|
|
Requires: vlc-plugin-schroedinger
|
|
|
|
Requires: vlc-plugin-sdl
|
|
|
|
Requires: vlc-plugin-shout
|
|
|
|
Requires: vlc-plugin-speex
|
|
|
|
Requires: vlc-plugin-twolame
|
|
|
|
Requires: vlc-plugin-upnp
|
|
|
|
Requires: vlc-plugin-zvbi
|
|
|
|
Requires: vlc-qt
|
|
|
|
Requires: flash-player-plugin
|
|
|
|
Requires: system-config-printer
|
|
|
|
Requires: task-printing-scanning
|
|
|
|
Requires: gsmartcontrol
|
|
|
|
Requires: bind-utils
|
|
|
|
Requires: k3b
|
|
|
|
Requires: luckybackup
|
|
|
|
Requires: kpat
|
|
|
|
Requires: gimp-plugin-bimp
|
|
|
|
Requires: audiokonverter
|
|
|
|
Requires: %{_lib}canberra-gtk0
|
|
|
|
Requires: %{_lib}canberra-gtk3_0
|
|
|
|
Requires: v4l-utils
|
|
|
|
Requires: gutenprint-gimp2
|
|
|
|
Requires: printer-utils
|
|
|
|
Requires: task-codec-audio
|
|
|
|
Requires: task-codec-video
|
|
|
|
Requires: x11vnc
|
|
|
|
Requires: kamoso
|
|
|
|
Requires: fuse-exfat
|
|
|
|
Requires: exfat-utils
|
|
|
|
Requires: simple-scan
|
|
|
|
Requires: kipi-plugins
|
|
|
|
Requires: tintii
|
|
|
|
Requires: krfb
|
|
|
|
Requires: clementine
|
|
|
|
Requires: aspell-fr
|
|
|
|
Requires: transcode
|
|
|
|
Requires: plasma-applet-systemloadviewer
|
|
|
|
Requires: ffmulticonverter
|
|
|
|
Requires: print-manager
|
|
|
|
Requires: sweeper
|
|
|
|
Requires: gvfs-mtp
|
|
|
|
Requires: mtpfs
|
|
|
|
Requires: libmtp-utils
|
|
|
|
Requires: simple-mtpfs
|
|
|
|
Requires: gmtp
|
|
|
|
Requires: qtbluetooth5
|
|
|
|
Requires: pulseaudio-module-bluetooth
|
|
|
|
Requires: kdeconnect-kde
|
|
|
|
Requires: chromium-browser
|
2019-02-19 16:49:53 +01:00
|
|
|
Requires: fuse-exfat
|
|
|
|
Requires: mageia-theme-extra
|
|
|
|
Requires: chromium-browser
|
2019-03-21 21:57:27 +01:00
|
|
|
Requires: lshw
|
2018-11-01 21:13:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This task package installs LALIS choosen packages in mageia and some configurations.
|
|
|
|
|
|
|
|
%install
|
2018-12-07 20:20:05 +01:00
|
|
|
mkdir -p %{buildroot}/tmp/
|
2018-11-01 21:13:42 +01:00
|
|
|
mkdir -p %{buildroot}/usr/local/bin/
|
|
|
|
mkdir -p %{buildroot}/usr/share/kio_desktop/
|
2018-12-13 23:56:00 +01:00
|
|
|
mkdir -p %{buildroot}/usr/share/dist/desktop-files/default/
|
2018-12-07 20:20:05 +01:00
|
|
|
cp -af %{SOURCE1} %{buildroot}/tmp/
|
2018-11-01 21:13:42 +01:00
|
|
|
cp -f %{SOURCE2} %{buildroot}/usr/local/bin/
|
2019-03-21 19:58:35 +01:00
|
|
|
cp -f %{SOURCE4} %{buildroot}/usr/local/bin/
|
2019-03-21 21:57:27 +01:00
|
|
|
cp -f %{SOURCE5} %{buildroot}/usr/local/bin/
|
|
|
|
cp -f %{SOURCE6} %{buildroot}/usr/local/bin/
|
2018-11-01 21:13:42 +01:00
|
|
|
cp -f %{SOURCE3} %{buildroot}/usr/share/kio_desktop/
|
2018-12-13 23:56:00 +01:00
|
|
|
cp -f %{SOURCE3} %{buildroot}/usr/share/dist/desktop-files/default/
|
2018-11-01 21:13:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
# configuration de l'assistance à distance
|
|
|
|
# créer un utilisateur Lalis enlève les droits de lecture/écriture/visibilité/exécution à others
|
2018-12-07 20:20:05 +01:00
|
|
|
/tmp/journald.conf
|
2018-12-07 23:21:38 +01:00
|
|
|
/usr/local/bin/lalistunnel
|
2019-03-21 21:57:27 +01:00
|
|
|
/usr/local/bin/identPC.sh
|
|
|
|
/usr/local/bin/sync_check.sh
|
|
|
|
/usr/local/bin/checklist.txt
|
2018-11-01 21:26:52 +01:00
|
|
|
/usr/share/kio_desktop/Lalis.desktop
|
2018-12-13 23:51:32 +01:00
|
|
|
/usr/share/dist/desktop-files/default
|
2018-11-01 21:13:42 +01:00
|
|
|
|
|
|
|
%post
|
2018-12-07 20:20:05 +01:00
|
|
|
mv -f /tmp/journald.conf /etc/systemd/
|
2018-11-01 21:13:42 +01:00
|
|
|
adduser lalis
|
|
|
|
chmod -R o-rwX /home/lalis
|
|
|
|
# Ajoute l'utilisateur lalis à ka liste des utilisateurs autorisés à se connecter en ssh
|
|
|
|
if [ -z "`grep cyberbaladeur /etc/ssh/sshd_config`" ]; then
|
|
|
|
echo "Allowusers lalis" >>/etc/ssh/sshd_config
|
|
|
|
fi
|
2018-12-07 23:21:38 +01:00
|
|
|
# met en exécution pour tout le monde
|
|
|
|
chmod a+x /usr/local/bin/lalistunnel
|
2018-11-01 21:26:52 +01:00
|
|
|
# Copie le fichier Lalis.desktop dans les dossier utilisateurs existant
|
2018-12-07 20:20:05 +01:00
|
|
|
cp -f /usr/share/kio_desktop/Lalis.desktop /usr/share/dist/desktop-files/default/
|
2018-11-01 21:13:42 +01:00
|
|
|
for i in /home/*
|
|
|
|
do
|
2018-11-01 21:26:52 +01:00
|
|
|
if [ "$i" != "/home/lost+found" ]; then
|
|
|
|
echo "$i"
|
|
|
|
if [ -d $i ]; then
|
|
|
|
if [ -d "$i/Bureau" ]; then
|
|
|
|
D="$i/Bureau"
|
|
|
|
elif [ -d "$i/Desktop" ]; then
|
|
|
|
D="$i/Desktop"
|
|
|
|
fi
|
|
|
|
cp -fa /usr/share/kio_desktop/Lalis.desktop "$D/"
|
|
|
|
OWNER=`basename $i`
|
|
|
|
chown $OWNER:$OWNER "$D/Lalis.desktop"
|
|
|
|
fi
|
|
|
|
fi
|
2018-11-01 21:13:42 +01:00
|
|
|
done
|