1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__task-lalis/SPECS/task-lalis.spec

201 lines
5.6 KiB
RPMSpec
Raw Normal View History

Summary: Install LALIS packages and configuration
Name: task-lalis
2019-05-23 18:53:34 +02:00
Version: 2.3
2019-03-22 18:19:38 +01:00
Release: %mkrel 1
License: GPLv3
Group: Tools
2019-03-07 18:24:33 +01:00
Url: http://lalis.fr
2019-03-26 17:43:42 +01:00
BuildArch: noarch
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-05-23 18:53:34 +02:00
Source4: identMM.pl
#Source5: sync_check.sh
2019-03-21 21:57:27 +01:00
Source6: checklist.txt
2019-03-22 18:19:38 +01:00
Source7: test.desktop
2019-03-26 21:35:16 +01:00
Requires: kate
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
Requires: gcompris-qt
Requires: kgpg
Requires: xsane
Requires: celestia
Requires: kstars
Requires: stellarium
Requires: gnuplot
Requires: drgeo
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
2019-03-26 17:43:42 +01: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: 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
Requires: fuse-exfat
Requires: mageia-theme-extra
Requires: chromium-browser
2019-03-21 21:57:27 +01:00
Requires: lshw
%description
2019-03-25 22:04:27 +01:00
This package installs LALIS choosen packages and some configurations.
%install
mkdir -p %{buildroot}/tmp/
mkdir -p %{buildroot}/usr/local/bin/
2019-05-23 18:11:02 +02:00
mkdir -p %{buildroot}/usr/share/lalis/
mkdir -p %{buildroot}/usr/share/kio_desktop/
mkdir -p %{buildroot}/usr/share/dist/desktop-files/default/
cp -af %{SOURCE1} %{buildroot}/tmp/
cp -f %{SOURCE2} %{buildroot}/usr/local/bin/
cp -f %{SOURCE4} %{buildroot}/usr/local/bin/
2019-03-21 21:57:27 +01:00
cp -f %{SOURCE5} %{buildroot}/usr/local/bin/
cp -f %{SOURCE3} %{buildroot}/usr/share/kio_desktop/
cp -f %{SOURCE3} %{buildroot}/usr/share/dist/desktop-files/default/
2019-05-23 18:11:02 +02:00
cp -f %{SOURCE6} %{buildroot}/usr/share/lalis/
2019-03-25 22:04:27 +01:00
cp -f %{SOURCE7} %{buildroot}/usr/share/dist/desktop-files/default/
%files
# configuration de l'assistance à distance
# créer un utilisateur Lalis enlève les droits de lecture/écriture/visibilité/exécution à others
/tmp/journald.conf
2018-12-07 23:21:38 +01:00
/usr/local/bin/lalistunnel
2019-05-23 18:53:34 +02:00
/usr/local/bin/identMM.pl
2019-03-21 21:57:27 +01:00
/usr/local/bin/sync_check.sh
2018-11-01 21:26:52 +01:00
/usr/share/kio_desktop/Lalis.desktop
2019-05-23 18:11:02 +02:00
/usr/share/lalis/*
2019-03-25 22:04:27 +01:00
/usr/share/dist/desktop-files/default/*
%post
desktop()
{
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
DESKTOP=${DESKTOP##*}
}
2019-03-26 22:10:25 +01:00
#DESKTOP="Bureau"
2019-03-22 18:19:38 +01:00
mv -f /tmp/journald.conf /etc/systemd/
2019-03-22 18:19:38 +01:00
getent passwd lalis
if [ $? -ne 0 ]; then
adduser lalis
chmod -R o-rwX /home/lalis
fi
# Ajoute l'utilisateur lalis à la liste des utilisateurs autorisés à se connecter en ssh
if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then
echo "Allowusers lalis" >>/etc/ssh/sshd_config
fi
2019-03-22 18:19:38 +01:00
# Ajoute le fichier checklist.txt et 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
2019-03-22 18:19:38 +01:00
if ! [ -d "/home/lalis/$DESKTOP" ]; then
/usr/bin/mkdir "/home/lalis/$DESKTOP"
2019-03-25 22:04:27 +01:00
2019-03-22 18:19:38 +01:00
fi
2019-05-23 18:11:02 +02:00
cp /usr/share/lalis/checklist.txt /home/lalis/$DESKTOP/
2019-03-25 22:04:27 +01:00
cp /usr/share/dist/desktop-files/default/test.desktop /home/lalis/$DESKTOP/
2019-03-22 18:19:38 +01:00
chown lalis:lalis -R /home/lalis
2018-11-01 21:26:52 +01:00
# Copie le fichier Lalis.desktop dans les dossier utilisateurs existant
cp -f /usr/share/kio_desktop/Lalis.desktop /usr/share/dist/desktop-files/default/
for i in /home/*
do
2019-03-22 18:19:38 +01:00
USER=`basename "$i"`
getent passwd "$USER"
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
su -c "mkdir $i/Bureau" - "$USER"
2019-03-25 22:04:27 +01:00
echo "su -c mkdir $i/Bureau - $USER"
2018-11-01 21:26:52 +01:00
fi
2019-03-22 18:19:38 +01:00
cp -fa /usr/share/kio_desktop/Lalis.desktop "$i/$DESKTOP/"
2019-03-26 17:43:42 +01:00
chown $USER:$USER "$i/$DESKTOP"
2018-11-01 21:26:52 +01:00
fi
fi
done