summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apps/octoprint/Manifest1
-rw-r--r--www-apps/octoprint/files/octoprint.confd5
-rw-r--r--www-apps/octoprint/files/octoprint.initd39
-rw-r--r--www-apps/octoprint/metadata.xml8
-rw-r--r--www-apps/octoprint/octoprint-1.3.11_rc3.ebuild109
5 files changed, 162 insertions, 0 deletions
diff --git a/www-apps/octoprint/Manifest b/www-apps/octoprint/Manifest
new file mode 100644
index 0000000..565d33d
--- /dev/null
+++ b/www-apps/octoprint/Manifest
@@ -0,0 +1 @@
+DIST octoprint-1.3.11_rc3.tar.gz 5058328 SHA256 0a60ea456782ca0e5fd401032fd357621f582916cec5303fe942c1e41e40e350 SHA512 a9ed4a724a06e6b0167e34d0cd9abc665da186784233718611f025c4b6e01d9686c76f4678e819f50bc664eedf88974316b3f1e3492dca05b2f0b7137026590a WHIRLPOOL fa182e2c22f174d7afcd630860578a40af79f5665eb287d316be59743ccbf19bec7220b0ea9cdc7483035488c3387400f2facd663ecbb5c5930a8056edf5a353
diff --git a/www-apps/octoprint/files/octoprint.confd b/www-apps/octoprint/files/octoprint.confd
new file mode 100644
index 0000000..2f5caad
--- /dev/null
+++ b/www-apps/octoprint/files/octoprint.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2019 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 0000000..69256c1
--- /dev/null
+++ b/www-apps/octoprint/files/octoprint.initd
@@ -0,0 +1,39 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 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 0000000..086586c
--- /dev/null
+++ b/www-apps/octoprint/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apps/octoprint/octoprint-1.3.11_rc3.ebuild b/www-apps/octoprint/octoprint-1.3.11_rc3.ebuild
new file mode 100644
index 0000000..b4126b5
--- /dev/null
+++ b/www-apps/octoprint/octoprint-1.3.11_rc3.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=(python2_7 pypy)
+
+inherit distutils-r1 user
+
+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="
+ >=dev-python/awesome-slugify-1.6.5
+ <dev-python/awesome-slugify-1.7
+ >=dev-python/cachelib-0.1
+ <dev-python/cachelib-0.2
+ >=dev-python/chainmap-1.0.3
+ <dev-python/chainmap-1.1
+ >=dev-python/click-7
+ <dev-python/click-8
+ >=dev-python/emoji-0.5.1
+ <dev-python/emoji-0.6
+ >=dev-python/feedparser-5.2.1
+ <dev-python/feedparser-5.3
+ >=dev-python/flask-0.10.1
+ <dev-python/flask-0.11
+ >=dev-python/flask-assets-0.12
+ <dev-python/flask-assets-0.13
+ >=dev-python/flask-babel-0.12
+ <dev-python/flask-babel-0.13
+ >=dev-python/flask-login-0.2.11
+ <dev-python/flask-login-0.3
+ >=dev-python/flask-principal-0.4
+ <dev-python/flask-principal-0.5
+ >=dev-python/frozendict-1.2
+ <dev-python/frozendict-1.3
+ >=dev-python/future-0.17.1
+ <dev-python/future-0.18
+ >=dev-python/futures-3.2
+ <dev-python/futures-3.3
+ >=dev-python/jinja-2.8.1
+ <dev-python/jinja-2.9
+ >=dev-python/markdown-3.0
+ <dev-python/markdown-3.1
+ >=dev-python/monotonic-1.5
+ <dev-python/monotonic-1.6
+ >=dev-python/netaddr-0.7.19
+ <dev-python/netaddr-0.8
+ >=dev-python/netifaces-0.10.9
+ <dev-python/netifaces-0.11
+ dev-python/pip
+ >=dev-python/pkginfo-1.5.0.1
+ <dev-python/pkginfo-1.6
+ >=dev-python/psutil-5.6.1
+ <dev-python/psutil-5.7
+ >=dev-python/pylru-1.2
+ <dev-python/pylru-1.3
+ >=dev-python/pyserial-3.4
+ <dev-python/pyserial-3.5
+ >=dev-python/pyyaml-5.1
+ <dev-python/pyyaml-6
+ dev-python/regex
+ !~dev-python/regex-2018.11.6
+ >=dev-python/requests-2.21.0
+ <dev-python/requests-3
+ >=dev-python/rsa-4.0
+ <dev-python/rsa-5
+ ~dev-python/sarge-0.1.5
+ >=dev-python/scandir-1.10
+ <dev-python/scandir-1.11
+ >=dev-python/semantic_version-2.6
+ <dev-python/semantic_version-2.7
+ ~dev-python/sentry-sdk-0.7.7
+ >=dev-python/typing-3.6.6
+ <dev-python/typing-4
+ <dev-python/watchdog-0.10
+ >=dev-python/watchdog-0.9.0
+ >=dev-python/websocket-client-0.56
+ <dev-python/websocket-client-0.57
+ >=dev-python/werkzeug-0.15.1
+ <dev-python/werkzeug-0.16
+ >=dev-python/wrapt-1.11.1
+ <dev-python/wrapt-1.12
+ ~www-servers/tornado-4.5.3
+"
+
+pkg_setup()
+{
+ HOMEDIR=/var/lib/$PN
+ enewgroup $PN
+ enewuser $PN -1 -1 $HOMEDIR "$PN,uucp,video"
+}
+
+src_install()
+{
+ distutils-r1_src_install
+ newinitd "$FILESDIR/$PN.initd" "$PN"
+ newconfd "$FILESDIR/$PN.confd" "$PN"
+}