From cdf3ed657194f357e2a293a201ff297525f6aac0 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Tue, 11 Feb 2020 13:15:05 +0300 Subject: [PATCH] www-apps/octoprint: Add octoprint Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Alexey Shvetsov --- www-apps/octoprint/Manifest | 1 + www-apps/octoprint/files/octoprint.confd | 5 + www-apps/octoprint/files/octoprint.initd | 39 ++++++++ www-apps/octoprint/metadata.xml | 12 +++ www-apps/octoprint/octoprint-1.4.0_rc4.ebuild | 95 +++++++++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 www-apps/octoprint/Manifest create mode 100644 www-apps/octoprint/files/octoprint.confd create mode 100644 www-apps/octoprint/files/octoprint.initd create mode 100644 www-apps/octoprint/metadata.xml create mode 100644 www-apps/octoprint/octoprint-1.4.0_rc4.ebuild diff --git a/www-apps/octoprint/Manifest b/www-apps/octoprint/Manifest new file mode 100644 index 000000000000..b267e0553901 --- /dev/null +++ b/www-apps/octoprint/Manifest @@ -0,0 +1 @@ +DIST octoprint-1.4.0_rc4.tar.gz 5117426 BLAKE2B 0149b3ec053c0d671c0998cd05e885366ab889c582d232d8c477e52bb1a48c3bdab1b0df4acb1fdc8720a06f02b5b9767d3d58c461536906dcf810bdbdbbdfe2 SHA512 adaf598ed080807c66146040bcd8467a9b612f9c5bf5b36f020560b9e95d40053997cc60dfe1b370bc7a134beaeaaecdb78e961ae38de35d2588cd2b64d15e7a diff --git a/www-apps/octoprint/files/octoprint.confd b/www-apps/octoprint/files/octoprint.confd new file mode 100644 index 000000000000..007b97f930f0 --- /dev/null +++ b/www-apps/octoprint/files/octoprint.confd @@ -0,0 +1,5 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +OCTOPRINT_USER="octoprint" +OCTOPRINT_GROUP="octoprint" diff --git a/www-apps/octoprint/files/octoprint.initd b/www-apps/octoprint/files/octoprint.initd new file mode 100644 index 000000000000..6a4e648e29fc --- /dev/null +++ b/www-apps/octoprint/files/octoprint.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE="/run/octoprint/octoprint.pid" + +depend() { + need net +} + +start() { + ebegin "Starting OctoPrint" + + checkpath -q -d -o ${OCTOPRINT_USER}:${OCTOPRINT_GROUP} -m 0770 "$(dirname "${PIDFILE}")" + + start-stop-daemon \ + --quiet \ + --start \ + --user ${OCTOPRINT_USER} \ + --group ${OCTOPRINT_GROUP} \ + --background --make-pidfile \ + --pidfile "${PIDFILE}" \ + --wait 1000 \ + --nicelevel -2 \ + --ionice 1 \ + --exec /usr/bin/octoprint serve + + eend $? +} + +stop() { + ebegin "Stopping OctoPrint" + + start-stop-daemon \ + --stop \ + --pidfile "${PIDFILE}" + + eend $? +} diff --git a/www-apps/octoprint/metadata.xml b/www-apps/octoprint/metadata.xml new file mode 100644 index 000000000000..92ab71cade92 --- /dev/null +++ b/www-apps/octoprint/metadata.xml @@ -0,0 +1,12 @@ + + + + + alexxy@gentoo.org + Alexey Shvetsov + + + 3dprint@gentoo.org + Packages for 3d printing + + diff --git a/www-apps/octoprint/octoprint-1.4.0_rc4.ebuild b/www-apps/octoprint/octoprint-1.4.0_rc4.ebuild new file mode 100644 index 000000000000..9e00b40aef97 --- /dev/null +++ b/www-apps/octoprint/octoprint-1.4.0_rc4.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=(python3_{6,7}) + +inherit distutils-r1 + +MY_PN=OctoPrint +MY_PV=${PV/_/} +S=${WORKDIR}/${MY_PN}-${MY_PV} + +DESCRIPTION="the snappy web interface for your 3D printer" +HOMEPAGE="https://octoprint.org/" +LICENSE="AGPL-3" +SRC_URI="https://github.com/foosel/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" + +BDEPEND="" +RDEPEND=" + acct-user/octoprint + acct-group/octoprint + dev-python/pip + >=dev-python/flask-0.12 + =dev-python/jinja-2.8.1 + =dev-python/flask-login-0.4.1 + =dev-python/flask-babel-0.12 + =dev-python/flask-assets-0.12 + =dev-python/blinker-1.4 + =dev-python/werkzeug-0.16 + =dev-python/cachelib-0.1 + =dev-python/pyyaml-5.1 + =dev-python/markdown-3.1 + =dev-python/pyserial-3.4 + =dev-python/netaddr-0.7.19 + =dev-python/watchdog-0.9.0 + =dev-python/netifaces-0.10.9 + =dev-python/pylru-1.2 + =dev-python/rsa-4.0 + =dev-python/pkginfo-1.5.0.1 + =dev-python/requests-2.22.0 + =dev-python/semantic_version-2.8 + =dev-python/psutil-5.6.5 + =dev-python/click-7 + =dev-python/awesome-slugify-1.6.5 + =dev-python/feedparser-5.2.1 + =dev-python/future-0.18.2 + =dev-python/websocket-client-0.56 + =dev-python/wrapt-1.11.2 + =dev-python/emoji-0.5.4 + =dev-python/frozendict-1.2 + =dev-python/filetype-1.0.5 +