summaryrefslogtreecommitdiff
path: root/www-apps/octoprint
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-17 01:16:38 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-17 01:16:38 +0000
commit53cba99042fa967e2a93da9f8db806fe2d035543 (patch)
tree9780d3b87dfc6bdebc6b7b7d15af1ecb813c6853 /www-apps/octoprint
parent71deace00d1a2b091313fe137ab7092418c6f87c (diff)
gentoo resync : 17.02.2020
Diffstat (limited to 'www-apps/octoprint')
-rw-r--r--www-apps/octoprint/Manifest5
-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.xml12
-rw-r--r--www-apps/octoprint/octoprint-1.4.0_rc5.ebuild95
5 files changed, 156 insertions, 0 deletions
diff --git a/www-apps/octoprint/Manifest b/www-apps/octoprint/Manifest
new file mode 100644
index 000000000000..7e76d6460b49
--- /dev/null
+++ b/www-apps/octoprint/Manifest
@@ -0,0 +1,5 @@
+AUX octoprint.confd 160 BLAKE2B 3c930cd1ee7008e5d61f2a7fb8be9213f2d97ebb7af224912711b124021e3448b1f0137595641bdcd3a9a4661868f09690bc06d3df0f93309c08d4d0399a4b38 SHA512 2989058912d8a4cf86484a37f2219c7b3035ae8c9980191160558d2994b896ee3b3f35615d4c34370f5e5ca27455fbf7e3cb3ef59ebff1e3e6578edfbd5ef666
+AUX octoprint.initd 691 BLAKE2B 062c5e3553a4d8ce942d90e57f79a9dcf09112da0d52e065daac48e8df60a823afe34a63f3daff2b32dba787dd1284dea6bdede999dca6e48b79959dc691197b SHA512 a1a7343cd23a2a5c83c77661239afebf6199a31f4b08e41d70c72e2ed645a3c4f2f52f656ccd4671ddd9eda6865d2b2173c6c426be03253e98af293981138eba
+DIST octoprint-1.4.0_rc5.tar.gz 5117820 BLAKE2B 6140ec81ad257e6197275e8289bfba09a140f216f1718b595e2b9ed19a21570c28979a081db537b4fe63ec128498940307a3f311c6d30dd52be45ef867a15114 SHA512 db22ac1cbc9e6ce9214f1066ef2748b613c83466ee539a4b3d2eb6d5b0b1a83a5cf4b434bce4d1a2053ad38f6f1cfcec115ee1f1f9e7140c741651913ffcabda
+EBUILD octoprint-1.4.0_rc5.ebuild 2354 BLAKE2B 7415abea8b7eb921beb768f7e8801f09742b511df7bdfb36182c223f50320904995f8ba4d41bb006d295138f4452396429f303bdb61b8e332b3014c6cb6350ee SHA512 427211fdde3767fcce1943bd139c43cc99cd3f2c9d7e22ca53419676e5f97453f09bdfd028f3144ad7a13457b960cd0ed70e710b054a79f6a952c613b3e39bf1
+MISC metadata.xml 368 BLAKE2B 704d114808c6508978c8f6a5235f4646e17196794bfbead6ca440cbb0ec6ebccaa91a3c20e785039c5d16adabd061cbb65dd0537e50c650df66a8fc33abeebee SHA512 aade5c4a14a07bc43e4777647b2a7e7ba20cc7e0376f1092ca914f126d916ae93a9516511424738586b801197ee46fe245f34a0038a286c9d5a1af91de86e1b5
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 @@
+<?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>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Packages for 3d printing</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apps/octoprint/octoprint-1.4.0_rc5.ebuild b/www-apps/octoprint/octoprint-1.4.0_rc5.ebuild
new file mode 100644
index 000000000000..9e00b40aef97
--- /dev/null
+++ b/www-apps/octoprint/octoprint-1.4.0_rc5.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/flask-0.13
+ >=dev-python/jinja-2.8.1
+ <dev-python/jinja-2.9
+ ~www-servers/tornado-4.5.3
+ dev-python/regex
+ >=dev-python/flask-login-0.4.1
+ <dev-python/flask-login-0.5
+ >=dev-python/flask-babel-0.12
+ <dev-python/flask-babel-0.13
+ >=dev-python/flask-assets-0.12
+ <dev-python/flask-assets-0.13
+ >=dev-python/blinker-1.4
+ <dev-python/blinker-1.5
+ >=dev-python/werkzeug-0.16
+ <dev-python/werkzeug-0.17
+ >=dev-python/cachelib-0.1
+ <dev-python/cachelib-0.2
+ >=dev-python/pyyaml-5.1
+ <dev-python/pyyaml-6
+ >=dev-python/markdown-3.1
+ <dev-python/markdown-3.2
+ >=dev-python/pyserial-3.4
+ <dev-python/pyserial-3.5
+ >=dev-python/netaddr-0.7.19
+ <dev-python/netaddr-0.8
+ >=dev-python/watchdog-0.9.0
+ <dev-python/watchdog-0.10
+ ~dev-python/sarge-0.1.5
+ >=dev-python/netifaces-0.10.9
+ <dev-python/netifaces-0.11
+ >=dev-python/pylru-1.2
+ <dev-python/pylru-1.3
+ >=dev-python/rsa-4.0
+ <dev-python/rsa-5
+ >=dev-python/pkginfo-1.5.0.1
+ <dev-python/pkginfo-1.6
+ >=dev-python/requests-2.22.0
+ <dev-python/requests-3
+ >=dev-python/semantic_version-2.8
+ <dev-python/semantic_version-2.9
+ >=dev-python/psutil-5.6.5
+ <dev-python/psutil-5.7
+ >=dev-python/click-7
+ <dev-python/click-8
+ >=dev-python/awesome-slugify-1.6.5
+ <dev-python/awesome-slugify-1.7
+ >=dev-python/feedparser-5.2.1
+ <dev-python/feedparser-5.3
+ >=dev-python/future-0.18.2
+ <dev-python/future-0.19
+ >=dev-python/websocket-client-0.56
+ <dev-python/websocket-client-0.57
+ >=dev-python/wrapt-1.11.2
+ <dev-python/wrapt-1.12
+ >=dev-python/emoji-0.5.4
+ <dev-python/emoji-0.6
+ >=dev-python/frozendict-1.2
+ <dev-python/frozendict-1.3
+ ~dev-python/sentry-sdk-0.13.2
+ >=dev-python/filetype-1.0.5
+ <dev-python/filetype-2
+"
+
+src_install()
+{
+ distutils-r1_src_install
+ newinitd "$FILESDIR/$PN.initd" "$PN"
+ newconfd "$FILESDIR/$PN.confd" "$PN"
+}