# $HeadURL$ $LastChangedRevision$ ifndef FACILITY_XFCE_MK FACILITY_XFCE_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-copy.mk include method-install.mk # Variables mentioned both in pass#1 and pass#0. XFCE_DESKTOP_PACKAGES = lightdm lightdm-gtk-greeter xserver-xorg xfce4-goodies xfce4-pulseaudio-plugin xfce4-appfinder xfce4-session xfdesktop4 pulseaudio xfce4-power-manager-plugins xfce4-power-manager xscreensaver parole tumbler thunar-volman gvfs gigolo gvfs-backends xserver-xorg-video-all xfwm4 libnotify-bin xfce4-notifyd # xscreensaver needs these fonts on damson, but we install them everywhere for simplicity. However, # only damson has a file in /etc/X11/xorg.conf.d/ that references them. XFCE_DESKTOP_PACKAGES += xfonts-100dpi xfonts-75dpi xfonts-scalable dbus-x11 elementary-xfce-icon-theme accountsservice bluebird-gtk-theme blackbird-gtk-theme XFCE_LAPTOP_PACKAGES = # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.copy: $(shell encode /etc/lightdm/lightdm.conf).copy $(shell encode /etc/lightdm/background.png).copy $(shell encode /etc/lightdm/lightdm.conf.d/50-no-guest.conf).copy $(shell encode /etc/lightdm/lightdm-gtk-greeter.conf).copy $(shell encode /usr/share/xsessions/xsession.desktop).copy $(shell encode /etc/X11/xorg.conf.d/x11-fonts.conf).copy all.install: $(patsubst %,%.install,$(XFCE_DESKTOP_PACKAGES) $(XFCE_LAPTOP_PACKAGES)) all.uninstall: $(patsubst %,%.uninstall,$(XFCE_DESKTOP_PACKAGES) $(XFCE_LAPTOP_PACKAGES)) # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) ifeq ($(XFCE_ENABLED_FLAG),true) all.facility: xfce.facility endif xfce.facility: lightdm.fix xsession.fix xfwm4-themes.fix x11-fonts.fix touch $@ ifeq ($(HOST_PROFILE),server) xfce.facility: $(patsubst %,%.uninstall,$(XFCE_DESKTOP_PACKAGES)) $(patsubst %,%.uninstall,$(XFCE_LAPTOP_PACKAGES)) else ifeq ($(HOST_PROFILE),desktop) xfce.facility: $(patsubst %,%.install,$(XFCE_DESKTOP_PACKAGES)) $(patsubst %,%.uninstall,$(XFCE_LAPTOP_PACKAGES)) else ifeq ($(HOST_PROFILE),laptop) xfce.facility: $(patsubst %,%.install,$(XFCE_DESKTOP_PACKAGES)) $(patsubst %,%.install,$(XFCE_LAPTOP_PACKAGES)) endif endif lightdm.fix: lightdm.install lightdm-gtk-greeter.install $(shell encode /etc/lightdm/lightdm.conf).copy $(shell encode /etc/lightdm/background.png).copy $(shell encode /etc/lightdm/lightdm.conf.d/50-no-guest.conf).copy $(shell encode /etc/lightdm/lightdm-gtk-greeter.conf).copy xserver-xorg-video-all.install if [[ $$(tty) =~ ^/dev/tty(.*) ]]; then :; else msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) warning "can't determine VT so can't switch back to it after lightdm has been started; you'll have to do that yourself in a moment"; sleep 10; fi systemctl restart lightdm @# With Debian 10, lightdm can be very slow to start; so give user a chance to see it start before @# flipping back to tty1 to continue with the installation. sleep 30 if [[ $$(tty) =~ ^/dev/tty(.*) ]]; then chvt $${BASH_REMATCH[1]}; sleep 5; else :; fi touch $@ # I can't remember why we do this: xfwm4-themes.fix: xfwm4.install cd /tmp && wget -q http://ftp.de.debian.org/debian/pool/main/x/xfwm4-themes/xfwm4-themes_4.10.0-2_all.deb dpkg -i /tmp/xfwm4-themes_4.10.0-2_all.deb touch $@ xsession.fix: $(shell encode /usr/share/xsessions/xsession.desktop).copy touch $@ # Ordering - don't reference fonts before they're installed. x11-fonts.fix: $(shell encode /etc/X11/xorg.conf.d/x11-fonts.conf).copy touch $@ $(shell encode /etc/X11/xorg.conf.d/x11-fonts.conf).copy: xfonts-100dpi.install xfonts-75dpi.install xfonts-scalable.install # Amazingly lightdm-gtk-greeter does not depend on lightdm. lightdm-gtk-greeter.install: lightdm.install lightdm.install: xserver-xorg.install # Prevent our config file being moved to .dpkg-old. $(shell encode /etc/lightdm/lightdm-gtk-greeter.conf).copy: lightdm-gtk-greeter.install endif # PCMS_PASS_NUM endif # FACILITY_XFCE_MK