2018-03-27 22:38:34 +00:00
|
|
|
DESCRIPTION = ""
|
|
|
|
HOMEPAGE = ""
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SECTION = ""
|
|
|
|
DEPENDS = ""
|
|
|
|
|
2018-03-28 00:38:01 +00:00
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
|
|
|
DEFAULT_REALM_UNITS = "\
|
2024-05-21 16:57:11 +00:00
|
|
|
file://systemd/citadel-launch-default-realm.path \
|
|
|
|
file://systemd/citadel-launch-default-realm.service \
|
2018-03-28 00:38:01 +00:00
|
|
|
"
|
|
|
|
|
2018-03-28 14:33:27 +00:00
|
|
|
MODPROBE_CONFIG = "\
|
|
|
|
file://modprobe.d/audio_powersave.conf \
|
|
|
|
"
|
|
|
|
|
|
|
|
SYSCTL_CONFIG = "\
|
|
|
|
file://sysctl/90-citadel-sysctl.conf \
|
|
|
|
"
|
|
|
|
|
|
|
|
UDEV_RULES = "\
|
|
|
|
file://udev/citadel-network.rules \
|
|
|
|
file://udev/pci-pm.rules \
|
2021-11-30 20:50:37 +00:00
|
|
|
file://udev/udisks2-hide.rules \
|
2018-03-28 14:33:27 +00:00
|
|
|
"
|
2021-02-12 15:10:39 +00:00
|
|
|
DEFAULT_PASSWORD = "\
|
|
|
|
file://citadel-setpassword.sh \
|
|
|
|
file://systemd/citadel-setpassword.service \
|
|
|
|
"
|
2018-03-28 14:33:27 +00:00
|
|
|
|
2018-03-27 22:38:34 +00:00
|
|
|
SRC_URI = "\
|
|
|
|
file://locale.conf \
|
|
|
|
file://environment.sh \
|
|
|
|
file://fstab \
|
2019-06-08 03:36:57 +00:00
|
|
|
file://sudo-citadel \
|
2018-03-27 22:38:34 +00:00
|
|
|
file://citadel-ifconfig.sh \
|
|
|
|
file://00-storage-tmpfiles.conf \
|
2018-03-28 01:48:00 +00:00
|
|
|
file://share/dot.bashrc \
|
|
|
|
file://share/dot.profile \
|
2018-03-27 22:38:34 +00:00
|
|
|
file://share/dot.vimrc \
|
|
|
|
file://polkit/citadel.rules \
|
2020-10-09 13:02:46 +00:00
|
|
|
file://citadel-installer.session \
|
|
|
|
file://citadel-installer.json \
|
|
|
|
file://citadel-installer.desktop \
|
|
|
|
file://citadel-installer-ui.desktop \
|
2018-03-28 00:38:01 +00:00
|
|
|
file://systemd/zram-swap.service \
|
2020-07-08 14:42:25 +00:00
|
|
|
file://systemd/x11-session-switcher.service \
|
2020-10-09 13:02:46 +00:00
|
|
|
file://systemd/citadel-installer-backend.service \
|
|
|
|
file://systemd/installer-session-switcher.service \
|
2020-10-30 18:55:28 +00:00
|
|
|
file://systemd/user/gnome-session@citadel-installer.target.d/session.conf \
|
2019-04-02 19:43:00 +00:00
|
|
|
file://skel/profile \
|
|
|
|
file://skel/bashrc \
|
|
|
|
file://skel/vimrc \
|
2021-02-12 15:10:39 +00:00
|
|
|
file://skel/init.vim \
|
2019-04-02 19:43:00 +00:00
|
|
|
file://apt-cacher-ng/acng.conf \
|
|
|
|
file://apt-cacher-ng/security.conf \
|
2020-11-04 17:45:11 +00:00
|
|
|
file://iwd/main.conf \
|
2021-05-05 12:45:55 +00:00
|
|
|
file://pulse/cookie \
|
2018-03-28 00:38:01 +00:00
|
|
|
${DEFAULT_REALM_UNITS} \
|
2018-03-28 14:33:27 +00:00
|
|
|
${MODPROBE_CONFIG} \
|
|
|
|
${SYSCTL_CONFIG} \
|
|
|
|
${UDEV_RULES} \
|
2021-02-12 15:10:39 +00:00
|
|
|
${DEFAULT_PASSWORD} \
|
2018-03-27 22:38:34 +00:00
|
|
|
"
|
|
|
|
|
2018-03-28 00:38:01 +00:00
|
|
|
USERADD_PACKAGES = "${PN}"
|
2022-05-28 15:20:07 +00:00
|
|
|
USERADD_PARAM:${PN} = "-m -u 1000 -s /bin/bash citadel"
|
2018-03-28 00:38:01 +00:00
|
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
|
|
|
2020-11-29 23:19:32 +00:00
|
|
|
# for citadel-ifconfig.sh
|
2022-05-28 15:20:07 +00:00
|
|
|
RDEPENDS:${PN} = "bash"
|
2018-03-27 22:38:34 +00:00
|
|
|
|
2018-03-28 00:38:01 +00:00
|
|
|
inherit allarch systemd useradd
|
|
|
|
|
2024-05-21 16:57:11 +00:00
|
|
|
SYSTEMD_SERVICE:${PN} = "zram-swap.service citadel-launch-default-realm.path x11-session-switcher.service citadel-installer-backend.service installer-session-switcher.service citadel-setpassword.service"
|
2018-03-27 22:38:34 +00:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -m 0755 -d ${D}/storage
|
|
|
|
install -m 0755 -d ${D}/realms
|
|
|
|
install -d ${D}${libdir}/sysctl.d
|
|
|
|
install -m 0755 -d ${D}${libexecdir}
|
|
|
|
install -m 0755 -d ${D}${sysconfdir}/profile.d
|
2021-02-12 15:10:39 +00:00
|
|
|
install -m 0755 -d ${d}${sysconfdir}/skel
|
|
|
|
install -m 0755 -d ${D}${sysconfdir}/skel/.config
|
|
|
|
install -m 0755 -d ${D}${sysconfdir}/skel/.config/nvim
|
2018-03-27 22:38:34 +00:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/tmpfiles.d
|
|
|
|
install -m 0755 -d ${D}${sysconfdir}/udev/rules.d
|
|
|
|
install -m 0755 -d ${D}${sysconfdir}/polkit-1/rules.d
|
2018-03-28 14:33:27 +00:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/modprobe.d
|
2019-06-08 03:36:57 +00:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/sudoers.d
|
2020-11-04 17:45:11 +00:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/iwd
|
2021-05-05 12:45:55 +00:00
|
|
|
install -m 0755 -d ${D}${datadir}/factory/home/root
|
|
|
|
install -m 0755 -d ${D}${datadir}/factory/home/citadel
|
|
|
|
install -m 0755 -d ${D}${datadir}/factory/home/citadel/.local/share/applications
|
|
|
|
install -m 0755 -d ${D}${datadir}/factory/home/citadel/.config/pulse
|
2018-03-27 22:38:34 +00:00
|
|
|
install -m 0700 -d ${D}${localstatedir}/lib/NetworkManager
|
|
|
|
install -m 0700 -d ${D}${localstatedir}/lib/NetworkManager/system-connections
|
2019-06-08 03:36:57 +00:00
|
|
|
install -m 0755 -d ${D}${datadir}/citadel
|
2020-10-09 13:02:46 +00:00
|
|
|
install -m 0755 -d ${D}${datadir}/gnome-session/sessions
|
|
|
|
install -m 0755 -d ${D}${datadir}/gnome-shell/modes
|
|
|
|
install -m 0755 -d ${D}${datadir}/applications
|
|
|
|
install -m 0755 -d ${D}${datadir}/wayland-sessions
|
2018-03-27 22:38:34 +00:00
|
|
|
|
|
|
|
install -m 0644 ${WORKDIR}/locale.conf ${D}${sysconfdir}/locale.conf
|
|
|
|
install -m 0644 ${WORKDIR}/environment.sh ${D}${sysconfdir}/profile.d/environment.sh
|
|
|
|
install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab
|
2019-06-08 03:36:57 +00:00
|
|
|
install -m 0440 ${WORKDIR}/sudo-citadel ${D}${sysconfdir}/sudoers.d/citadel
|
2018-03-27 22:38:34 +00:00
|
|
|
install -m 0644 ${WORKDIR}/00-storage-tmpfiles.conf ${D}${sysconfdir}/tmpfiles.d
|
2020-10-30 18:55:28 +00:00
|
|
|
#install -m 0644 ${WORKDIR}/NetworkManager.conf ${D}${sysconfdir}/NetworkManager
|
2018-03-27 22:38:34 +00:00
|
|
|
|
|
|
|
install -d ${D}${systemd_system_unitdir}
|
2020-10-30 18:55:28 +00:00
|
|
|
|
2018-03-28 00:38:01 +00:00
|
|
|
install -m 644 ${WORKDIR}/systemd/zram-swap.service ${D}${systemd_system_unitdir}
|
|
|
|
|
2020-07-08 14:42:25 +00:00
|
|
|
install -m 644 ${WORKDIR}/systemd/x11-session-switcher.service ${D}${systemd_system_unitdir}
|
2020-10-09 13:02:46 +00:00
|
|
|
install -m 644 ${WORKDIR}/systemd/citadel-installer-backend.service ${D}${systemd_system_unitdir}
|
|
|
|
install -m 644 ${WORKDIR}/systemd/installer-session-switcher.service ${D}${systemd_system_unitdir}
|
2019-04-11 13:27:22 +00:00
|
|
|
|
2021-02-12 15:10:39 +00:00
|
|
|
install -m 644 ${WORKDIR}/systemd/citadel-setpassword.service ${D}${systemd_system_unitdir}
|
|
|
|
install -m 0754 ${WORKDIR}/citadel-setpassword.sh ${D}${libexecdir}
|
2020-10-30 18:55:28 +00:00
|
|
|
install -d ${D}${systemd_user_unitdir}/gnome-session@citadel-installer.target.d
|
|
|
|
install -m 644 ${WORKDIR}/systemd/user/gnome-session@citadel-installer.target.d/session.conf ${D}${systemd_user_unitdir}/gnome-session@citadel-installer.target.d
|
|
|
|
|
2024-05-21 16:57:11 +00:00
|
|
|
install -m 644 ${WORKDIR}/systemd/citadel-launch-default-realm.path ${D}${systemd_system_unitdir}
|
|
|
|
install -m 644 ${WORKDIR}/systemd/citadel-launch-default-realm.service ${D}${systemd_system_unitdir}
|
2018-03-27 22:38:34 +00:00
|
|
|
|
2019-04-02 19:43:00 +00:00
|
|
|
# skel files for new realms
|
|
|
|
install -m 644 -T ${WORKDIR}/skel/profile ${D}${sysconfdir}/skel/.profile
|
|
|
|
install -m 644 -T ${WORKDIR}/skel/bashrc ${D}${sysconfdir}/skel/.bashrc
|
|
|
|
install -m 644 -T ${WORKDIR}/skel/vimrc ${D}${sysconfdir}/skel/.vimrc
|
2021-02-12 15:10:39 +00:00
|
|
|
install -m 644 -T ${WORKDIR}/skel/init.vim ${D}${sysconfdir}/skel/.config/nvim/init.vim
|
2019-04-02 19:43:00 +00:00
|
|
|
|
2018-03-28 14:33:27 +00:00
|
|
|
install -m 0644 ${WORKDIR}/sysctl/90-citadel-sysctl.conf ${D}${libdir}/sysctl.d/
|
2018-03-27 22:38:34 +00:00
|
|
|
|
2018-03-28 14:33:27 +00:00
|
|
|
install -m 0644 ${WORKDIR}/udev/citadel-network.rules ${D}${sysconfdir}/udev/rules.d/
|
2018-03-27 22:38:34 +00:00
|
|
|
install -m 0755 ${WORKDIR}/citadel-ifconfig.sh ${D}${libexecdir}
|
|
|
|
|
2018-03-28 14:33:27 +00:00
|
|
|
install -m 0644 ${WORKDIR}/udev/pci-pm.rules ${D}${sysconfdir}/udev/rules.d/
|
2021-11-30 20:50:37 +00:00
|
|
|
install -m 0644 ${WORKDIR}/udev/udisks2-hide.rules ${D}${sysconfdir}/udev/rules.d/
|
2018-03-28 14:33:27 +00:00
|
|
|
|
2020-10-09 13:02:46 +00:00
|
|
|
install -m 0644 ${WORKDIR}/citadel-installer.session ${D}${datadir}/gnome-session/sessions/
|
|
|
|
install -m 0644 ${WORKDIR}/citadel-installer.json ${D}${datadir}/gnome-shell/modes/
|
|
|
|
install -m 0644 ${WORKDIR}/citadel-installer-ui.desktop ${D}${datadir}/applications/
|
|
|
|
install -m 0644 ${WORKDIR}/citadel-installer.desktop ${D}${datadir}/wayland-sessions/
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
install -m 0644 ${WORKDIR}/share/dot.bashrc ${D}${datadir}/factory/home/root/.bashrc
|
|
|
|
install -m 0644 ${WORKDIR}/share/dot.profile ${D}${datadir}/factory/home/root/.profile
|
|
|
|
install -m 0644 ${WORKDIR}/share/dot.vimrc ${D}${datadir}/factory/home/root/.vimrc
|
|
|
|
|
|
|
|
install -m 0644 ${WORKDIR}/share/dot.bashrc ${D}${datadir}/factory/home/citadel/.bashrc
|
|
|
|
install -m 0644 ${WORKDIR}/share/dot.profile ${D}${datadir}/factory/home/citadel/.profile
|
|
|
|
install -m 0644 ${WORKDIR}/share/dot.vimrc ${D}${datadir}/factory/home/citadel/.vimrc
|
|
|
|
|
|
|
|
|
|
|
|
# To avoid these warnings:
|
|
|
|
#
|
|
|
|
# [pulseaudio] authkey.c: Failed to open cookie file '/home/citadel/.config/pulse/cookie': No such file or directory
|
|
|
|
#
|
|
|
|
|
|
|
|
install -m 0600 ${WORKDIR}/pulse/cookie ${D}${datadir}/factory/home/citadel/.config/pulse/cookie
|
|
|
|
|
2018-03-28 14:33:27 +00:00
|
|
|
|
|
|
|
install -m 0644 ${WORKDIR}/polkit/citadel.rules ${D}${sysconfdir}/polkit-1/rules.d/
|
2018-03-27 22:38:34 +00:00
|
|
|
|
2018-03-28 14:33:27 +00:00
|
|
|
install -m 0644 ${WORKDIR}/modprobe.d/audio_powersave.conf ${D}${sysconfdir}/modprobe.d/
|
2018-03-27 22:38:34 +00:00
|
|
|
|
2020-11-04 17:45:11 +00:00
|
|
|
install -m 0644 ${WORKDIR}/iwd/main.conf ${D}${sysconfdir}/iwd/
|
|
|
|
|
2019-04-02 19:43:00 +00:00
|
|
|
install -d ${D}${datadir}/apt-cacher-ng/conf
|
|
|
|
install -m 0644 ${WORKDIR}/apt-cacher-ng/acng.conf ${D}${datadir}/apt-cacher-ng/conf/
|
|
|
|
install -m 0644 ${WORKDIR}/apt-cacher-ng/security.conf ${D}${datadir}/apt-cacher-ng/conf/
|
|
|
|
|
2018-12-31 23:39:55 +00:00
|
|
|
# This probably belongs in lvm2 recipe
|
|
|
|
install -d ${D}${systemd_system_unitdir}/sysinit.target.wants
|
|
|
|
ln -s ../lvm2-lvmetad.socket ${D}${systemd_system_unitdir}/sysinit.target.wants/lvm2-lvmetad.socket
|
|
|
|
|
2018-03-27 22:38:34 +00:00
|
|
|
ln -s /storage/citadel-state/resolv.conf ${D}${sysconfdir}/resolv.conf
|
|
|
|
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf
|
|
|
|
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
|
2018-12-31 23:39:55 +00:00
|
|
|
|
|
|
|
install -d ${D}${datadir}/themes
|
|
|
|
install -d ${D}${datadir}/icons
|
|
|
|
install -d ${D}${libdir}/modules
|
|
|
|
install -d ${D}${libdir}/firmware
|
|
|
|
install -d ${D}${datadir}/backgrounds
|
|
|
|
install -d ${D}/opt/share
|
2018-03-27 22:38:34 +00:00
|
|
|
}
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
FILES:${PN} = "/"
|