2017-12-12 15:20:36 -05:00
|
|
|
|
2018-02-12 22:11:33 -05:00
|
|
|
hostname="subgraph"
|
2017-12-12 15:20:36 -05:00
|
|
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
2018-01-18 18:11:46 -05:00
|
|
|
SRC_URI += "\
|
|
|
|
file://locale.conf \
|
|
|
|
file://environment.sh \
|
|
|
|
file://fstab \
|
2018-01-22 22:04:36 -05:00
|
|
|
file://99-grsec-debootstrap.conf \
|
2018-03-06 13:52:07 -05:00
|
|
|
file://90-citadel-sysctl.conf \
|
|
|
|
file://citadel-network.rules \
|
|
|
|
file://citadel-ifconfig.sh \
|
2018-02-17 17:44:33 -05:00
|
|
|
file://00-storage-tmpfiles.conf \
|
|
|
|
file://NetworkManager.conf \
|
2018-02-18 12:58:09 -05:00
|
|
|
file://zram-swap.service \
|
2018-03-18 19:24:30 -04:00
|
|
|
file://share/dot.vimrc \
|
2018-01-18 18:11:46 -05:00
|
|
|
"
|
2017-12-12 15:20:36 -05:00
|
|
|
|
2018-02-17 17:44:33 -05:00
|
|
|
dirs1777_remove = "${localstatedir}/volatile/tmp"
|
|
|
|
dirs755="/boot /dev /usr/bin /usr/sbin /usr/lib /etc /etc/default /etc/skel /usr/lib /mnt /proc /home/root /run /usr /usr/bin /usr/share/doc/base-files-3.0.14 /usr/include /usr/lib /usr/sbin /usr/share /usr/share/common-licenses /usr/share/info /usr/share/man /usr/share/misc /var /sys /home /media"
|
|
|
|
|
|
|
|
volatiles = ""
|
|
|
|
|
2018-02-18 12:58:09 -05:00
|
|
|
inherit systemd
|
|
|
|
SYSTEMD_SERVICE_${PN} = "zram-swap.service"
|
|
|
|
|
2018-03-06 13:52:07 -05:00
|
|
|
# for citadel-ifconfig.sh
|
|
|
|
RDEPENDS_${PN} = "bash"
|
|
|
|
|
2017-12-12 15:20:36 -05:00
|
|
|
do_install_append () {
|
|
|
|
install -m 0755 -d ${D}/storage
|
2018-03-18 19:24:30 -04:00
|
|
|
install -m 0755 -d ${D}/realms
|
2018-02-17 17:44:33 -05:00
|
|
|
install -d ${D}${libdir}/sysctl.d
|
2018-03-06 13:52:07 -05:00
|
|
|
install -m 0755 -d ${D}${libexecdir}
|
2018-01-18 18:11:46 -05:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/profile.d
|
2018-02-17 17:44:33 -05:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/tmpfiles.d
|
2018-03-06 13:52:07 -05:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/udev/rules.d
|
2018-02-17 17:44:33 -05:00
|
|
|
install -m 0755 -d ${D}${sysconfdir}/NetworkManager
|
|
|
|
install -m 0700 -d ${D}${localstatedir}/lib/NetworkManager
|
|
|
|
install -m 0700 -d ${D}${localstatedir}/lib/NetworkManager/system-connections
|
|
|
|
|
2018-01-18 18:11:46 -05: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
|
2018-02-17 17:44:33 -05:00
|
|
|
install -m 0644 ${WORKDIR}/00-storage-tmpfiles.conf ${D}${sysconfdir}/tmpfiles.d
|
|
|
|
install -m 0644 ${WORKDIR}/NetworkManager.conf ${D}${sysconfdir}/NetworkManager
|
2018-01-22 22:04:36 -05:00
|
|
|
|
2018-02-18 12:58:09 -05:00
|
|
|
install -d ${D}${systemd_system_unitdir}
|
|
|
|
install -m 644 ${WORKDIR}/zram-swap.service ${D}${systemd_system_unitdir}
|
|
|
|
|
2018-01-22 22:04:36 -05:00
|
|
|
# disable some pax and grsecurity features so that debootstrap will work
|
|
|
|
# this should be removed later
|
|
|
|
install -m 0644 ${WORKDIR}/99-grsec-debootstrap.conf ${D}${libdir}/sysctl.d/
|
2018-02-17 17:44:33 -05:00
|
|
|
|
2018-03-06 13:52:07 -05:00
|
|
|
install -m 0644 ${WORKDIR}/90-citadel-sysctl.conf ${D}${libdir}/sysctl.d/
|
|
|
|
|
|
|
|
install -m 0644 ${WORKDIR}/citadel-network.rules ${D}${sysconfdir}/udev/rules.d/
|
|
|
|
install -m 0755 ${WORKDIR}/citadel-ifconfig.sh ${D}${libexecdir}
|
|
|
|
|
2018-03-18 19:24:30 -04:00
|
|
|
install -m 0755 ${WORKDIR}/share/dot.vimrc ${D}${sysconfdir}/skel/.vimrc
|
|
|
|
|
2018-02-17 17:44:33 -05: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
|
2017-12-12 15:20:36 -05:00
|
|
|
}
|