2019-06-19 19:40:32 +02:00
|
|
|
Summary: Install LALIS packages and configuration
|
2018-11-01 21:13:42 +01:00
|
|
|
Name: task-lalis
|
2020-06-26 14:06:11 +02:00
|
|
|
Version: 5.4
|
|
|
|
Release: %mkrel 1
|
2018-11-01 21:13:42 +01:00
|
|
|
License: GPLv3
|
|
|
|
Group: Tools
|
2019-06-19 19:40:32 +02:00
|
|
|
Url: http://lalis.fr
|
|
|
|
BuildArch: noarch
|
|
|
|
Source1: journald.conf
|
|
|
|
Source2: lalistunnel
|
|
|
|
Source3: Lalis.desktop
|
|
|
|
Source4: identMM.pl
|
|
|
|
Source5: test.desktop
|
|
|
|
Source6: checklist.txt
|
2020-04-12 10:08:00 +02:00
|
|
|
Source8: ssh_id_rsa
|
2020-04-14 17:29:00 +02:00
|
|
|
Source9: RPM-GPG-KEY-Lalis
|
|
|
|
Source10: lalis-i586.repo
|
|
|
|
Source11: lalis-i586-source.repo
|
|
|
|
Source12: lalis-x86_64.repo
|
|
|
|
Source13: lalis-x86_64-source.repo
|
2020-04-01 17:12:52 +02:00
|
|
|
|
2020-04-07 20:20:22 +02:00
|
|
|
Requires: task-lalis-minimal
|
2019-06-19 19:40:32 +02:00
|
|
|
Requires: celestia
|
|
|
|
Requires: kstars
|
|
|
|
Requires: stellarium
|
|
|
|
Requires: tuxpaint
|
|
|
|
Requires: avidemux-qt-plugins
|
|
|
|
Requires: gcompris-qt
|
|
|
|
Requires: kgpg
|
|
|
|
Requires: xsane
|
|
|
|
Requires: celestia
|
|
|
|
Requires: kstars
|
|
|
|
Requires: stellarium
|
|
|
|
Requires: gnuplot
|
|
|
|
Requires: drgeo
|
|
|
|
Requires: kaudiocreator
|
|
|
|
Requires: gimp-resynthesizer
|
|
|
|
Requires: gimp-data-extras
|
|
|
|
Requires: gimp-plugin-gmic
|
|
|
|
Requires: pidgin
|
|
|
|
Requires: empathy
|
2020-04-01 17:12:52 +02:00
|
|
|
Requires: kpat
|
|
|
|
Requires: audiokonverter
|
|
|
|
Requires: tintii
|
|
|
|
Requires: ffmulticonverter
|
2020-06-26 14:06:11 +02:00
|
|
|
|
2020-04-01 17:12:52 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package installs LALIS choosen packages and some configurations.
|
|
|
|
|
|
|
|
%package minimal
|
|
|
|
Summary: Install minimal LALIS packages and configuration
|
|
|
|
Group: Tools
|
|
|
|
BuildArch: noarch
|
2020-04-07 20:20:22 +02:00
|
|
|
|
2020-06-26 14:06:11 +02:00
|
|
|
Requires: msttcore-fonts-installer
|
2020-04-01 17:12:52 +02:00
|
|
|
Requires: sweeper
|
2020-06-26 14:06:11 +02:00
|
|
|
Requires: iotop
|
|
|
|
Requires: htop
|
2019-06-19 19:40:32 +02:00
|
|
|
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
|
2020-04-01 17:12:52 +02:00
|
|
|
Requires: kate
|
|
|
|
Requires: openssh-server
|
|
|
|
Requires: sshfs-fuse
|
|
|
|
Requires: lsb-release
|
2020-04-01 17:39:20 +02:00
|
|
|
Requires: lsb-lib64
|
2020-04-01 17:12:52 +02:00
|
|
|
Requires: wpa_supplicant
|
|
|
|
Requires: lshw
|
|
|
|
Requires: x11-driver-input-synaptics
|
|
|
|
Requires: bsdiff
|
|
|
|
Requires: mageia-theme-extra
|
|
|
|
Requires: gvfs-mtp
|
|
|
|
Requires: mtpfs
|
|
|
|
Requires: libmtp-utils
|
|
|
|
Requires: simple-mtpfs
|
|
|
|
Requires: gmtp
|
|
|
|
Requires: qtbluetooth5
|
|
|
|
Requires: pulseaudio-module-bluetooth
|
|
|
|
Requires: clementine
|
|
|
|
Requires: aspell-fr
|
|
|
|
Requires: transcode
|
|
|
|
Requires: plasma-applet-systemloadviewer
|
2019-06-19 19:40:32 +02:00
|
|
|
Requires: gnubg
|
|
|
|
Requires: v4l-utils
|
|
|
|
Requires: gutenprint-gimp2
|
|
|
|
Requires: printer-utils
|
|
|
|
Requires: task-codec-audio
|
|
|
|
Requires: task-codec-video
|
|
|
|
Requires: x11vnc
|
|
|
|
Requires: kamoso
|
|
|
|
Requires: simple-scan
|
|
|
|
Requires: kipi-plugins
|
2020-04-01 17:12:52 +02:00
|
|
|
Requires: gimp-plugin-bimp
|
|
|
|
Requires: flash-player-plugin
|
|
|
|
Requires: system-config-printer
|
|
|
|
Requires: task-printing-scanning
|
|
|
|
Requires: gsmartcontrol
|
|
|
|
Requires: bind-utils
|
|
|
|
Requires: k3b
|
|
|
|
Requires: luckybackup
|
|
|
|
Requires: lame
|
2019-06-19 19:40:32 +02:00
|
|
|
Requires: print-manager
|
2020-04-01 17:12:52 +02:00
|
|
|
Requires: ark
|
|
|
|
Requires: kim4
|
|
|
|
Requires: krename
|
|
|
|
Requires: evince
|
|
|
|
Requires: audacity
|
|
|
|
Requires: kdenlive
|
|
|
|
Requires: spamassassin
|
|
|
|
Requires: p7zip
|
|
|
|
Requires: unrar
|
|
|
|
Requires: ssmtp
|
|
|
|
Requires: kwallet-pam
|
|
|
|
Requires: kpdftool
|
|
|
|
Requires: ktorrent
|
2019-06-19 19:40:32 +02:00
|
|
|
Requires: kdeconnect-kde
|
2020-04-20 19:31:44 +02:00
|
|
|
Requires: chromium-browser-stable
|
|
|
|
Requires: nextcloud-client
|
2020-06-26 14:06:11 +02:00
|
|
|
Requires: nextcloud-client-dolphin
|
2020-04-14 17:29:00 +02:00
|
|
|
Obsoletes: task-lalis < 4
|
2018-11-01 21:13:42 +01:00
|
|
|
|
2020-04-01 17:12:52 +02:00
|
|
|
%description minimal
|
|
|
|
This package installs LALIS minimal choosen packages and some configurations.
|
|
|
|
|
2018-11-01 21:13:42 +01:00
|
|
|
|
|
|
|
%install
|
2020-04-14 17:29:00 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/lalis
|
|
|
|
mkdir %{buildroot}%{_datadir}/kio_desktop
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/dist/desktop-files/default
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
|
mkdir %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
|
|
cp %{SOURCE2} %{buildroot}%{_bindir}
|
|
|
|
cp %{SOURCE4} %{buildroot}%{_bindir}
|
|
|
|
cp %{SOURCE3} %{buildroot}%{_datadir}/kio_desktop/
|
|
|
|
cp %{SOURCE3} %{buildroot}%{_datadir}/dist/desktop-files/default/
|
|
|
|
cp %{SOURCE5} %{buildroot}%{_datadir}/dist/desktop-files/default/
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_datadir}/lalis/
|
|
|
|
cp %{SOURCE6} %{buildroot}%{_datadir}/lalis/
|
|
|
|
cp %{SOURCE8} %{buildroot}%{_datadir}/lalis/
|
|
|
|
cp %{SOURCE9} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
|
|
|
|
cp %{SOURCE10} %{buildroot}%{_sysconfdir}/yum.repos.d/
|
|
|
|
cp %{SOURCE11} %{buildroot}%{_sysconfdir}/yum.repos.d/
|
|
|
|
cp %{SOURCE12} %{buildroot}%{_sysconfdir}/yum.repos.d/
|
|
|
|
cp %{SOURCE13} %{buildroot}%{_sysconfdir}/yum.repos.d/
|
2018-11-01 21:13:42 +01:00
|
|
|
|
2020-04-05 01:18:07 +02:00
|
|
|
%files
|
|
|
|
|
|
|
|
|
2020-04-01 17:12:52 +02:00
|
|
|
%files minimal
|
2019-06-10 11:53:09 +02:00
|
|
|
|
2020-04-14 17:29:00 +02:00
|
|
|
%{_bindir}/lalistunnel
|
|
|
|
%{_bindir}/identMM.pl
|
|
|
|
%{_datadir}/lalis/ssh_id_rsa
|
|
|
|
%{_datadir}/lalis/journald.conf
|
|
|
|
%{_datadir}/kio_desktop/Lalis.desktop
|
|
|
|
%{_datadir}/lalis/*
|
|
|
|
%{_datadir}/dist/desktop-files/default/*
|
|
|
|
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-Lalis
|
|
|
|
%{_sysconfdir}/yum.repos.d/*
|
2018-11-01 21:13:42 +01:00
|
|
|
|
2020-04-01 17:12:52 +02:00
|
|
|
%post minimal
|
2019-06-10 12:32:37 +02:00
|
|
|
|
|
|
|
# configuration de l'assistance à distance
|
2020-04-01 17:12:52 +02:00
|
|
|
# crée un utilisateur Lalis et enlève les droits de lecture/écriture/visibilité/exécution à others
|
2019-03-26 21:45:06 +01:00
|
|
|
desktop()
|
|
|
|
{
|
2020-04-14 17:29:00 +02:00
|
|
|
if [ -f "$1/.config/user-dirs.dirs" ]; then
|
|
|
|
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
|
2020-04-17 15:45:59 +02:00
|
|
|
DESKTOP=`echo ${DESKTOP##*/} | sed -e s/\"//g`
|
2020-04-14 17:29:00 +02:00
|
|
|
else
|
|
|
|
DESKTOP=""
|
|
|
|
fi
|
2019-03-26 21:45:06 +01:00
|
|
|
}
|
2019-03-22 18:19:38 +01:00
|
|
|
|
2020-04-14 17:29:00 +02:00
|
|
|
cp -f /usr/share/lalis/journald.conf /etc/systemd/
|
2019-03-22 18:19:38 +01:00
|
|
|
getent passwd lalis
|
2020-04-11 10:41:39 +02:00
|
|
|
if [ ${?} -ne 0 ]; then
|
2019-03-22 18:19:38 +01:00
|
|
|
adduser lalis
|
|
|
|
chmod -R o-rwX /home/lalis
|
2019-06-03 15:16:53 +02:00
|
|
|
passwd lalis << EOF
|
|
|
|
Lalis
|
2019-06-10 11:53:09 +02:00
|
|
|
Lalis
|
2019-06-03 15:16:53 +02:00
|
|
|
EOF
|
2019-03-22 18:19:38 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Ajoute l'utilisateur lalis à la liste des utilisateurs autorisés à se connecter en ssh
|
|
|
|
if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then
|
2020-04-20 19:31:44 +02:00
|
|
|
if [ -z "`grep -i allowusers /etc/ssh/sshd_config`"]; then
|
|
|
|
echo "Allowusers lalis" >>/etc/ssh/sshd_config
|
|
|
|
else
|
|
|
|
sed -i -e 's/^Allowusers.*$/& lalis/g' /etc/ssh/sshd_config
|
|
|
|
fi
|
2018-11-01 21:13:42 +01:00
|
|
|
fi
|
2020-04-17 15:45:59 +02:00
|
|
|
/usr/bin/systemctl restart sshd
|
2020-06-26 14:06:11 +02:00
|
|
|
|
2019-06-05 19:45:25 +02:00
|
|
|
# Ajoute le fichier test.desktop sur le bureau de l'utilisateur lalis
|
2019-03-26 21:51:10 +01:00
|
|
|
desktop /home/lalis
|
2019-03-26 22:18:37 +01:00
|
|
|
echo $DESKTOP
|
2020-04-20 19:31:44 +02:00
|
|
|
if [ "$DESKTOP" = "" ]; then
|
2019-03-22 18:19:38 +01:00
|
|
|
/usr/bin/mkdir "/home/lalis/$DESKTOP"
|
2019-03-25 22:04:27 +01:00
|
|
|
|
2019-03-22 18:19:38 +01:00
|
|
|
fi
|
|
|
|
|
2019-06-05 19:45:25 +02:00
|
|
|
chmod a+rw /usr/share/lalis/checklist.txt
|
2019-03-25 22:04:27 +01:00
|
|
|
cp /usr/share/dist/desktop-files/default/test.desktop /home/lalis/$DESKTOP/
|
2019-06-05 19:49:58 +02:00
|
|
|
chown lalis:lalis -R /home/lalis/$DESKTOP/test.desktop
|
2019-06-05 19:45:25 +02:00
|
|
|
# Copie le fichier Lalis.desktop dans le dossier /etc/skel
|
2020-04-20 19:31:44 +02:00
|
|
|
cp -f /usr/share/kio_desktop/Lalis.desktop /etc/skel/$DESKTOP
|
2019-03-22 18:19:38 +01:00
|
|
|
|
2020-06-26 14:06:11 +02:00
|
|
|
# Copie le fichier Lalis.desktop sur le bureau des 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
|
2019-03-22 18:19:38 +01:00
|
|
|
USER=`basename "$i"`
|
|
|
|
getent passwd "$USER"
|
2020-04-11 10:41:39 +02:00
|
|
|
if [ ${?} -eq 0 ]; then
|
2018-11-01 21:26:52 +01:00
|
|
|
if [ -d $i ]; then
|
2019-03-26 21:48:38 +01:00
|
|
|
desktop "/$i"
|
2019-03-26 22:18:37 +01:00
|
|
|
echo $DESKTOP
|
2019-03-22 18:19:38 +01:00
|
|
|
if ! [ -d "$i/$DESKTOP" ]; then
|
2019-07-17 06:19:36 +02:00
|
|
|
su -c "mkdir $i/$DESKTOP" - "$USER"
|
|
|
|
echo "su -c mkdir $i/$DESKTOP - $USER"
|
2018-11-01 21:26:52 +01:00
|
|
|
fi
|
2020-04-17 15:45:59 +02:00
|
|
|
cp -fa /usr/share/kio_desktop/Lalis.desktop "$i/$DESKTOP/"
|
|
|
|
chown $USER:$USER "$i/$DESKTOP"
|
2018-11-01 21:26:52 +01:00
|
|
|
fi
|
|
|
|
fi
|
2018-11-01 21:13:42 +01:00
|
|
|
done
|
2020-04-01 17:12:52 +02:00
|
|
|
|
|
|
|
#disabling mdadm when no raid detected
|
|
|
|
MD=`grep -c active /proc/mdstat`
|
|
|
|
if [ $MD > 0 ]; then
|
|
|
|
systemctl disable mdadm.service
|
|
|
|
fi
|
|
|
|
|
|
|
|
#disabling network-up if nfs not used
|
|
|
|
if [ ! -e /etc/nfs.conf ]; then
|
|
|
|
systemctl disable network-up
|
|
|
|
fi
|
2020-04-11 10:41:39 +02:00
|
|
|
ARCH=`uname -i`
|
|
|
|
U=`uname -r`
|
|
|
|
MGAVERSION=${U##*.mga}
|
2020-06-26 14:06:11 +02:00
|
|
|
|
2020-04-11 10:41:39 +02:00
|
|
|
#adding lalis mirror
|
|
|
|
grep -q 'lalis rsync://lalis69.ddns.net:10073/mageia/lalis/' /etc/urpmi/urpmi.cfg
|
|
|
|
if [ ${?} -ne 0 ]; then
|
2020-04-17 15:45:59 +02:00
|
|
|
echo -e "\nlalis rsync://lalis69.ddns.net:10073/mageia/lalis/$MGAVERSION/x86_64/media/core {\n}" >>/etc/urpmi/urpmi.cfg
|
2020-04-14 17:29:00 +02:00
|
|
|
echo "urpmi.update lalis;urpmi msttcore-fonts-installer" | at now +2 minutes
|
2020-04-11 10:41:39 +02:00
|
|
|
fi
|