blob: ca2ad88d53e7ab23e5f53f70951d18a1d60aeeec (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
SUMMARY = "Start Jupyter at system boot"
SRC_URI = " file://start-jupyter.sh \
file://jupyter-setup.sh \
file://jupyter_notebook_config.py \
file://jupyter-setup.service \
"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://start-jupyter.sh;beginline=2;endline=24;md5=f29b6e59838b939312f578e77087ada3"
JUPYTER_STARTUP_PACKAGES += " \
python3-jupyter-core \
bash \
"
inherit update-rc.d systemd
PROVIDES = "start-jupyter"
RPROVIDES:${PN} = "start-jupyter"
RDEPENDS:${PN} = " ${JUPYTER_STARTUP_PACKAGES}"
INITSCRIPT_NAME = "jupyter-setup.sh"
INITSCRIPT_PARAMS = "start 99 S ."
SYSTEMD_PACKAGES="${PN}"
SYSTEMD_SERVICE:${PN}="jupyter-setup.service"
SYSTEMD_AUTO_ENABLE:${PN}="disable"
S = "${UNPACKDIR}"
FILES:${PN} += "${base_sbindir} ${systemd_user_unitdir} ${datadir}"
do_install() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${S}/jupyter-setup.sh ${D}${sysconfdir}/init.d/jupyter-setup.sh
fi
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/jupyter-setup.service ${D}${systemd_system_unitdir}
install -d ${D}${systemd_user_unitdir}
install -m 0644 ${S}/jupyter-setup.service ${D}${systemd_user_unitdir}
install -d ${D}${base_sbindir}
install -m 0755 ${S}/start-jupyter.sh ${D}${base_sbindir}/start-jupyter.sh
install -d ${D}${sysconfdir}/jupyter/
install -m 0644 ${S}/jupyter_notebook_config.py ${D}${sysconfdir}/jupyter
install -d ${D}${datadir}/example-notebooks
}
|