blob: d16a0b6d38e49c163a6a167a6069ca3b25f58ac8 (
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
|
SUMMARY = "Nginx helper for octoprint and mjpg-streamer"
LICENSE = "AGPL-3.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=73f1eb20517c55bf9493b7dd6e480788"
PV = "1.0"
SRC_URI = "file://nginx.conf \
file://LICENSE \
"
do_unpack2() {
cp ${WORKDIR}/LICENSE ${S}
}
addtask unpack2 before do_populate_lic after do_unpack
do_install() {
install -d ${D}${sysconfdir}/nginx/
install -m 0644 ${WORKDIR}/nginx.conf ${D}${sysconfdir}/nginx/nginx.conf.octoprint
}
pkg_postinst_${PN} () {
mv $D${sysconfdir}/nginx/nginx.conf $D${sysconfdir}/nginx/nginx.conf.pre-octoprint
cp $D${sysconfdir}/nginx/nginx.conf.octoprint $D${sysconfdir}/nginx/nginx.conf
}
RDEPENDS_${PN} = "octoprint mjpg-streamer nginx"
|