You need to sign in or sign up before continuing.
mixin.mk 8.28 KB
Newer Older
1 2 3
### various mixins with their origin

### desktop.mk
4
mixin/desktop-installer: +vmguest \
5
	use/bootloader/os-prober use/x11-autostart use/fonts/install2 use/sound
6 7 8 9
	@$(call add,BASE_LISTS, \
		$(call tags,(base || desktop) && (l10n || network)))
	@$(call add,INSTALL2_PACKAGES,ntfs-3g)

10 11 12
### e2k.mk
mixin/e2k-base: use/tty/S0 use/net-eth/dhcp; @:

13
mixin/e2k-desktop: use/e2k/x11 use/l10n/default/ru_RU \
14
	use/browser/firefox/esr use/browser/firefox \
15 16 17 18
	use/fonts/otf/adobe use/fonts/otf/mozilla
	@$(call add,THE_PACKAGES,xinit xterm mc)
	@$(call add,THE_PACKAGES,fonts-bitmap-terminus)

19
mixin/e2k-livecd-install: use/e2k/x11
20
	@$(call add,THE_PACKAGES,livecd-install)
21 22 23 24
	@$(call add,THE_PACKAGES,fdisk hdparm rsync openssh vim-console)
	@$(call add,THE_PACKAGES,apt-repo)

mixin/e2k-mate: use/e2k/x11 use/x11/xorg use/fonts/install2 \
25 26
	use/deflogin/live use/deflogin/xgrp \
	use/x11/mate use/x11/lightdm/slick \
27 28 29 30 31 32 33
	use/fonts/otf/adobe use/fonts/otf/mozilla \
	use/fonts/ttf/google use/fonts/ttf/redhat
	@$(call set,INSTALLER,altlinux-desktop)
	@$(call add,THE_BRANDING,mate-settings)
	@$(call add,THE_BRANDING,alterator)
	@$(call add,THE_BRANDING,graphics)
	@$(call add,THE_PACKAGES,setup-mate-terminal)
34
	@$(call add,THE_PACKAGES,setup-mate-nocomposite)
35 36 37 38 39
	@$(call add,THE_PACKAGES,alterator-standalone)
	@$(call add,THE_PACKAGES,terminfo-extra)
	@$(call add,THE_PACKAGES,ethtool net-tools ifplugd)
	@$(call add,THE_PACKAGES,zsh bash-completion)

40 41 42 43
mixin/vm-archdep:: use/auto-resize; @:

ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
mixin/vm-archdep:: +efi
44
ifeq (,$(filter-out p10 p11 c10%,$(BRANCH)))
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
	@$(call set,KFLAVOURS,un-def)
endif
endif

ifeq (,$(filter-out armh aarch64,$(ARCH)))
mixin/vm-archdep:: use/bootloader/uboot use/no-sleep use/arm-rpi4; @:
endif

ifeq (,$(filter-out mipsel,$(ARCH)))
mixin/vm-archdep:: use/tty/S0
	@$(call set,KFLAVOURS,un-malta)
endif

ifeq (,$(filter-out riscv64,$(ARCH)))
mixin/vm-archdep:: use/bootloader/uboot
	@$(call set,KFLAVOURS,un-def)
endif

mixin/vm-archdep-x11: mixin/vm-archdep use/vmguest/kvm/x11; @:

65 66 67 68 69 70 71 72 73
mixin/uboot-extlinux: use/bootloader/uboot
	@$(call set,EFI_BOOTLOADER,)

mixin/uboot-extlinux-efi: use/uboot +efi; @:
ifeq (aarch64,$(ARCH))
	@$(call set,VM_PARTTABLE,msdos)
	@$(call set,VM_BOOTTYPE,EFI)
endif

74 75 76 77 78 79 80 81
mixin/waydroid: ; @:
ifeq (,$(filter-out aarch64 x86_64,$(ARCH)))
	@$(call add,THE_PACKAGES,libgbinder1 waydroid)
	@$(call add,THE_KMODULES,anbox)
	@$(call add,DEFAULT_SYSTEMD_SERVICES_ENABLE,waydroid-container.service)
	@$(call add,BASE_BOOTARGS,psi=1)
endif

82
### regular.mk
83
mixin/regular-x11: use/browser/firefox \
84
	use/branding use/ntp/chrony use/services/lvm2-disable
85
	@$(call add,THE_LISTS,$(call tags,(base || desktop) && regular && !extra))
86 87 88 89
	@$(call add,THE_PACKAGES,disable-usb-autosuspend)
	@$(call add,THE_PACKAGES,btrfs-progs)
	@$(call add,THE_PACKAGES,gpm)
	@$(call add,DEFAULT_SERVICES_DISABLE,gpm powertop)
90
ifneq (sisyphus,$(BRANCH))
91 92
	@$(call set,FX_FLAVOUR,-esr)
endif
93

94
# common WM live/installer bits
95
mixin/regular-desktop: +alsa +nm-native \
96 97
	use/x11/xorg use/xdg-user-dirs use/l10n \
	use/fonts/otf/adobe use/fonts/otf/mozilla use/branding/notes
98
	@$(call set,LOCALES,en_US ru_RU pt_BR)
99
	@$(call add,THE_PACKAGES,pam-limits-desktop beesu polkit dvd+rw-tools)
100
	@$(call add,THE_PACKAGES,eepm)
101
	@$(call add,THE_PACKAGES,sudo)
102
	@$(call add,THE_BRANDING,alterator graphics indexhtml)
103 104 105
ifneq (,$(filter-out e2k%,$(ARCH)))
	@$(call add,THE_BRANDING,notes)
endif
106
	@$(call add,THE_PACKAGES,$$(THE_IMAGEWRITER))
107
	@$(call set,THE_IMAGEWRITER,altmediawriter)
108
	@$(call add,THE_PACKAGES,upower udev-rules-rfkill-uaccess)
109
	@$(call add,THE_PACKAGES,hunspell-ru-lebedev hunspell-en_US)
110
	@$(call add,THE_PACKAGES,glmark2 glmark2-es2)
111
	@$(call add,DEFAULT_SERVICES_DISABLE,gssd idmapd krb5kdc rpcbind)
112
	@$(call add,DEFAULT_SERVICES_ENABLE,cups)
113
	@$(call add,DEFAULT_SERVICES_ENABLE,alteratord)
114
	@$(call add,CONTROL,fusermount:public)
115
	@$(call add,CONTROL,libnss-role:disabled)
116

117 118 119
mixin/desktop-extra:
	@$(call add,BASE_LISTS,$(call tags,(archive || base) && extra))

120
mixin/regular-wmaker: use/fonts/ttf/redhat use/x11/wmaker +nm-gtk
121
	@$(call add,LIVE_PACKAGES,installer-feature-no-xconsole-stage3)
122
	@$(call add,MAIN_PACKAGES,wmgtemp wmhdaps wmxkbru xxkb)
123

124
mixin/regular-icewm: use/fonts/ttf/redhat +icewm +nm-gtk
125
	@$(call add,THE_LISTS,$(call tags,regular icewm))
126
	@$(call add,THE_PACKAGES,icewm-startup-networkmanager)
127
	@$(call add,THE_PACKAGES,mnt)
128

129
# gdm2.20 can reboot/halt with both sysvinit and systemd, and is slim
130
mixin/regular-gnustep: use/x11/gnustep use/mediacheck
131 132
	@$(call add,THE_BRANDING,graphics)

133
mixin/regular-cinnamon: use/x11/cinnamon use/x11/lightdm/slick +nm-gtk \
134
	use/fonts/ttf/google use/im use/domain-client
135
	@$(call add,THE_PACKAGES,xdg-user-dirs-gtk)
136
	@$(call add,THE_PACKAGES,gnome-disk-utility gnome-system-monitor)
137

138
mixin/regular-deepin: use/x11/deepin use/browser/chromium +nm; @:
139

140 141
mixin/regular-gnome: use/x11/gnome use/fonts/ttf/redhat +nm-gtk4 \
	use/domain-client
142
	@$(call add,THE_PACKAGES,power-profiles-daemon)
143
	@$(call add,THE_PACKAGES,gnome-terminal)
144
	@$(call add,THE_PACKAGES,gnome-software)
145
	@$(call add,THE_PACKAGES,gnome-tour)
146 147 148
ifeq (,$(filter-out sisyphus,$(BRANCH)))
	@$(call add,THE_PACKAGES,gnome-extensions-app)
endif
149
	@$(call add,THE_PACKAGES,evince)
150
	@$(call add,PINNED_PACKAGES,gnome-terminal:Required)
151
	@$(call add,THE_PACKAGES,chrome-gnome-shell)
152
	@$(call add,THE_PACKAGES,qt5-wayland qt6-wayland)
153
	@$(call add,THE_PACKAGES,cups-pk-helper cups)
154
	@$(call add,THE_PACKAGES,fonts-ttf-lxgw-wenkai)
155
	@$(call add,THE_PACKAGES,xdg-user-dirs-gtk)
156

157
mixin/regular-kde: use/x11/kde use/browser/falkon \
158
	use/x11/kde-display-manager-lightdm \
159 160
	use/fonts/ttf/google use/fonts/ttf/redhat use/fonts/zerg \
	use/domain-client
161 162 163
ifeq (,$(filter-out sisyphus,$(BRANCH)))
	@$(call add,THE_PACKAGES,xdg-desktop-portal-kde)
	@$(call add,THE_PACKAGES,plasma-discover)
164
	@$(call add,THE_PACKAGES,kf5-kirigami)
165 166 167
ifeq (,$(filter-out aarch64,$(ARCH)))
	@$(call set,DEFAULT_SESSION,plasma)
endif
168
else
169
	@$(call add,THE_PACKAGES,plasma5-xdg-desktop-portal-kde)
170
	@$(call add,THE_PACKAGES,plasma5-discover)
171
endif
172
	@$(call add,THE_PACKAGES,xdg-desktop-portal-gtk)
173
	@$(call add,THE_PACKAGES,qt6-wayland)
174
	@$(call add,THE_PACKAGES,accountsservice)
175
	@$(call add,THE_PACKAGES,gtk-theme-breeze)
176

177
mixin/xfce-base: use/x11/xfce +nm-gtk \
178
	use/fonts/ttf/redhat use/fonts/ttf/google/extra
179
	@$(call add,THE_PACKAGES,xfce4-regular)
180
	@$(call add,THE_PACKAGES,xreader)
181
	@$(call add,THE_PACKAGES,xdg-user-dirs-gtk)
182
	@$(call add,THE_PACKAGES,xkill)
183

184
mixin/regular-xfce: mixin/xfce-base use/domain-client +pipewire
185
	@$(call add,THE_PACKAGES,pavucontrol xscreensaver-frontend)
186
	@$(call add,THE_PACKAGES,xfce4-pulseaudio-plugin xfce-polkit)
187

188
mixin/regular-lxde: use/x11/lxde use/im +nm-gtk
189
	@$(call add,THE_PACKAGES,qasmixer qpdfview)
190

191
mixin/regular-lxqt: use/x11/lxqt +nm-gtk use/domain-client; @:
192

193
mixin/mate-base: use/x11/mate use/fonts/ttf/google +nm-gtk
194
	@$(call add,THE_LISTS,$(call tags,mobile mate))
195

196 197
mixin/regular-mate: mixin/mate-base use/domain-client; @:
ifneq (,$(filter-out riscv64,$(ARCH)))
198
	@$(call add,THE_LISTS,$(call tags,base smartcard))
199
endif
200

201 202 203 204
mixin/office: use/fonts/ttf/google use/fonts/ttf/xo
	@$(call add,THE_LISTS,$(call tags,desktop && (cups || office)))
	@$(call add,THE_PACKAGES,apt-indicator)

205 206 207 208 209 210 211
# NB: never ever use/syslinux/ui/gfxboot here as gfxboot mangles
#     kernel cmdline resulting in method:disk instead of method:cdrom
#     which will change propagator's behaviour to probe additional
#     filesystems (ro but no loop) thus potentially writing to
#     an unrecovered filesystem's journal
mixin/regular-rescue: use/rescue use/isohybrid use/luks use/branding \
	use/syslinux/ui/menu use/syslinux/timeout/600 \
212
	use/rescue/.base use/syslinux/sdab.cfg use/grub/sdab_bios.cfg \
213 214
	use/firmware/qlogic test/rescue/no-x11 +sysvinit; @:

215
mixin/regular-builder: use/dev/builder/base use/net/dhcp use/ntp/chrony
216 217
	@$(call add,THE_PACKAGES,bash-completion elinks gpm lftp openssh)
	@$(call add,THE_PACKAGES,rpm-utils screen tmux wget zsh)
218
	@$(call add,THE_PACKAGES,apt-repo eepm)
219

220 221 222 223 224
### vm.mk
mixin/cloud-init:
	@$(call add,BASE_PACKAGES,cloud-init)
	@$(call add,DEFAULT_SERVICES_ENABLE,cloud-config cloud-final)
	@$(call add,DEFAULT_SERVICES_ENABLE,cloud-init cloud-init-local)
225
	@$(call set,GLOBAL_NET_ETH,)
226

227 228 229 230
mixin/opennebula-context:
	@$(call add,BASE_PACKAGES,opennebula-context)
	@$(call add,DEFAULT_SERVICES_ENABLE,one-context-local one-context)

231
mixin/icewm: use/x11/lightdm/gtk +icewm; @: