-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathdeploy.sh
More file actions
41 lines (39 loc) · 1.15 KB
/
deploy.sh
File metadata and controls
41 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# Linux Deploy Component
# (c) Anton Skshidlevsky <meefik@gmail.com>, GPLv3
do_install()
{
msg ":: Installing ${COMPONENT} ... "
local packages=""
case "${DISTRIB}:${ARCH}:${SUITE}" in
debian:*|ubuntu:*|kalilinux:*)
packages="desktop-base dbus-x11 x11-xserver-utils xfonts-base xfonts-utils xfce4 xfce4-terminal tango-icon-theme hicolor-icon-theme"
apt_install ${packages}
;;
archlinux:*)
packages="xorg-xauth xorg-fonts-misc ttf-dejavu xfce4"
pacman_install ${packages}
;;
fedora:*)
packages="xorg-x11-server-utils xorg-x11-fonts-misc dejavu-* @xfce-desktop-environment"
dnf_install ${packages}
;;
gentoo:*)
packages="x11-apps/xauth xfce-base/xfce4-meta"
emerge_install ${packages}
;;
esac
}
do_configure()
{
msg ":: Configuring ${COMPONENT} ... "
local xsession="${CHROOT_DIR}$(user_home ${USER_NAME})/.xsession"
local command='exec dbus-run-session xfce4-session'
case "${DISTRIB}:${ARCH}:${SUITE}" in
archlinux:*)
command='exec dbus-launch xfce4-session'
;;
esac
echo ${command} > "${xsession}"
return 0
}