summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordobo902015-06-08 19:31:30 +0200
committerdobo902015-06-08 19:31:30 +0200
commite2283cb032aba35e7c1561664f6cc6baeab6dc4f (patch)
tree0a542f0012e6965050a93ea155905ed6827a1a2f
downloadaur-e2283cb032aba35e7c1561664f6cc6baeab6dc4f.tar.gz
Initial import
-rw-r--r--.SRCINFO48
-rw-r--r--PKGBUILD74
-rw-r--r--pyLoadCli3
-rw-r--r--pyLoadCore3
-rw-r--r--pyLoadGui3
-rw-r--r--pyload.conf65
-rw-r--r--pyload.install15
-rw-r--r--pyload.service11
-rw-r--r--suppress_jinja2_version_check.patch17
9 files changed, 239 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..d38f26d750d6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,48 @@
+pkgbase = pyload
+ pkgdesc = Downloadtool for One-Click-Hoster written in python.
+ pkgver = 0.4.9
+ pkgrel = 17
+ url = http://www.pyload.org
+ install = pyload.install
+ arch = any
+ license = GPL
+ depends = python2
+ depends = python2-crypto
+ depends = python2-pycurl
+ depends = tesseract
+ depends = python2-imaging
+ depends = python2-pyopenssl
+ optdepends = python2-pyqt: Gui
+ optdepends = python2-flup: for additional webservers
+ optdepends = python2-notify: Notifications for GUI
+ optdepends = js: ClickNLoad
+ conflicts = pyload-hg
+ conflicts = pyload-git
+ replaces = pyload-hg
+ replaces = pyload-git
+ backup = var/lib/pyload/pyload.conf
+ source = http://get.pyload.org/get/src/0.4.9
+ source = http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload-gui.desktop
+ source = http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload.desktop
+ source = http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload-gui.png
+ source = http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload.svg
+ source = pyload.service
+ source = pyload.conf
+ source = pyLoadCore
+ source = pyLoadCli
+ source = pyLoadGui
+ source = suppress_jinja2_version_check.patch
+ sha512sums = 6265602073279763c5393b958ec2cc6825d51e872556d2f2141db1e2afd9a2aaded8275aac0576526f96863d768bc9ff3669e7ff31e7b9fb5c5f655bba920a8e
+ sha512sums = 86eb27f042adaf7096dec6c50bfd8f2ca0d099cbb1a27a47af276a3f42b6aebc5807022fbd9f5ca543e329543fe5ab1c3ee873163b9d90b8b3242523082b7a0d
+ sha512sums = 3f5d237d8e8ca469fa138e37b2118154146526340d151e8e75c79630c6bd01baab5d21f912d97fdce62ef6ff2e7c4c479d69ba8b66d3f17dbd4adb2636eddb08
+ sha512sums = 07ed25d6b1b62f6589f350854ac8e864bcb94a8b497d00522c3e7481d6ec2a25ba1a072b947872c7b82ca4de03ac30ffd96811bfae64df2f5dc586e4960282c6
+ sha512sums = 96fb4952e2fe178e6f2c0a79213b5f3c82401b0edd386698fbddfe5002d9ec676ba71cfc2cbb9fd773749fb4c3173d445cef851635d8ee981536ba7946ec8bf6
+ sha512sums = 50860117f9156b76e52e00e87329745b30015c20e1b2e5728ec7d65a840c585c04fa9372564ffae0645029e2727fd565a3fa4b8edd43081b65547bb85a0ba555
+ sha512sums = 37b6e41bdd493c5652c484a4c772e3d70da197f724ad48901451049eda019698b923a561173162771bd06ac4cf6d9da162b085535684195bb57502b5205df424
+ sha512sums = d3bb07a48f90952df53eb6185988f53caf8bc3321dad8ef554889d0dde55414309a2d4fb8a800a1a85ed62c3a02e458061e061b98cfe23550599888fa6cd3975
+ sha512sums = d0f90d680302780fb46fc7f473dc4ad1497f1a6b8134802820418130e16105515ca9eef8a582f1e4e3005939577c63fdcf2d8a61ecfae36b844960f145555018
+ sha512sums = 397791e2d6c059360703f4e249a818e1186778e63f8bea4d3c741e8e8fac2dd8ae6fcc3a6f5b05d22124eea48b26bed622f207e338aa60fef2edfa0869fcf602
+ sha512sums = eb26da900c9cab96b3a08078f721686dac0bd0cc7929d48a297300cdd5693af1de98c8f581fcc2b329d9a7355b6ef7f9fc7c2ed7216ceca1becd9c9336df917f
+
+pkgname = pyload
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..b55126b85976
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer : Dobroslaw Kijowski [dobo] <dobo90_at_gmail.com>
+# Contributor: RaNaN <ranan@pyload.org>
+# Contributor: Jonas Heinrich <onny@project-insanity.org>
+# Contributor: prophy <4prophy@gmail.com>
+# Contributor: carstene1ns <carsten.1 gmx net>
+
+pkgname='pyload'
+pkgver=0.4.9
+pkgrel=17
+pkgdesc="Downloadtool for One-Click-Hoster written in python."
+url="http://www.pyload.org"
+license='GPL'
+arch=('any')
+conflicts=('pyload-hg' 'pyload-git')
+replaces=('pyload-hg' 'pyload-git')
+backup=('var/lib/pyload/pyload.conf')
+depends=('python2' 'python2-crypto' 'python2-pycurl' 'tesseract'
+ 'python2-imaging' 'python2-pyopenssl')
+optdepends=('python2-pyqt: Gui'
+ 'python2-flup: for additional webservers'
+ 'python2-notify: Notifications for GUI'
+ 'js: ClickNLoad')
+source=("http://get.pyload.org/get/src/${pkgver}"
+ 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload-gui.desktop'
+ 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload.desktop'
+ 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload-gui.png'
+ 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload.svg'
+ 'pyload.service' 'pyload.conf' 'pyLoadCore' 'pyLoadCli' 'pyLoadGui' 'suppress_jinja2_version_check.patch')
+install='pyload.install'
+sha512sums=('6265602073279763c5393b958ec2cc6825d51e872556d2f2141db1e2afd9a2aaded8275aac0576526f96863d768bc9ff3669e7ff31e7b9fb5c5f655bba920a8e'
+ '86eb27f042adaf7096dec6c50bfd8f2ca0d099cbb1a27a47af276a3f42b6aebc5807022fbd9f5ca543e329543fe5ab1c3ee873163b9d90b8b3242523082b7a0d'
+ '3f5d237d8e8ca469fa138e37b2118154146526340d151e8e75c79630c6bd01baab5d21f912d97fdce62ef6ff2e7c4c479d69ba8b66d3f17dbd4adb2636eddb08'
+ '07ed25d6b1b62f6589f350854ac8e864bcb94a8b497d00522c3e7481d6ec2a25ba1a072b947872c7b82ca4de03ac30ffd96811bfae64df2f5dc586e4960282c6'
+ '96fb4952e2fe178e6f2c0a79213b5f3c82401b0edd386698fbddfe5002d9ec676ba71cfc2cbb9fd773749fb4c3173d445cef851635d8ee981536ba7946ec8bf6'
+ '50860117f9156b76e52e00e87329745b30015c20e1b2e5728ec7d65a840c585c04fa9372564ffae0645029e2727fd565a3fa4b8edd43081b65547bb85a0ba555'
+ '37b6e41bdd493c5652c484a4c772e3d70da197f724ad48901451049eda019698b923a561173162771bd06ac4cf6d9da162b085535684195bb57502b5205df424'
+ 'd3bb07a48f90952df53eb6185988f53caf8bc3321dad8ef554889d0dde55414309a2d4fb8a800a1a85ed62c3a02e458061e061b98cfe23550599888fa6cd3975'
+ 'd0f90d680302780fb46fc7f473dc4ad1497f1a6b8134802820418130e16105515ca9eef8a582f1e4e3005939577c63fdcf2d8a61ecfae36b844960f145555018'
+ '397791e2d6c059360703f4e249a818e1186778e63f8bea4d3c741e8e8fac2dd8ae6fcc3a6f5b05d22124eea48b26bed622f207e338aa60fef2edfa0869fcf602'
+ 'eb26da900c9cab96b3a08078f721686dac0bd0cc7929d48a297300cdd5693af1de98c8f581fcc2b329d9a7355b6ef7f9fc7c2ed7216ceca1becd9c9336df917f')
+
+prepare() {
+ cd ${srcdir}
+ sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' pyload/pyLoad*.py
+ patch -p0 < suppress_jinja2_version_check.patch
+}
+
+build() {
+ python2 -O -m compileall ${srcdir}/pyload
+}
+
+package(){
+ cd ${srcdir}
+
+ install -d -m 755 ${pkgdir}/opt/pyload
+ cp -r pyload/* ${pkgdir}/opt/pyload
+
+ install -d -m 755 ${pkgdir}/usr/share/applications
+ install -D -m 644 pyload.desktop ${pkgdir}/usr/share/applications
+ install -D -m 644 pyload-gui.desktop ${pkgdir}/usr/share/applications
+
+ install -d -m 755 ${pkgdir}/usr/share/pixmaps
+ install -D -m 644 pyload.svg ${pkgdir}/usr/share/pixmaps
+ install -D -m 644 pyload-gui.png ${pkgdir}/usr/share/pixmaps
+
+ install -d -m 755 ${pkgdir}/usr/bin
+ install -D -m 755 pyLoadCore ${pkgdir}/usr/bin/pyLoadCore
+ install -D -m 755 pyLoadCli ${pkgdir}/usr/bin/pyLoadCli
+ install -D -m 755 pyLoadGui ${pkgdir}/usr/bin/pyLoadGui
+
+ # Create PyLoad service
+ install -D -m 644 ${srcdir}/pyload.service ${pkgdir}/usr/lib/systemd/system/pyload.service
+ install -D -m 644 ${srcdir}/pyload.conf ${pkgdir}/var/lib/pyload/pyload.conf
+}
diff --git a/pyLoadCli b/pyLoadCli
new file mode 100644
index 000000000000..d19f87597657
--- /dev/null
+++ b/pyLoadCli
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+PYTHONPATH=/opt/pyload/module/lib python2 /opt/pyload/pyLoadCli.py "$@" \ No newline at end of file
diff --git a/pyLoadCore b/pyLoadCore
new file mode 100644
index 000000000000..cf7d20fc7f72
--- /dev/null
+++ b/pyLoadCore
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+PYTHONPATH=/opt/pyload/module/lib python2 /opt/pyload/pyLoadCore.py "$@" \ No newline at end of file
diff --git a/pyLoadGui b/pyLoadGui
new file mode 100644
index 000000000000..93399f170176
--- /dev/null
+++ b/pyLoadGui
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+PYTHONPATH=/opt/pyload/module/lib python2 /opt/pyload/pyLoadGui.py "$@" \ No newline at end of file
diff --git a/pyload.conf b/pyload.conf
new file mode 100644
index 000000000000..d5e2a448d25e
--- /dev/null
+++ b/pyload.conf
@@ -0,0 +1,65 @@
+version: 1
+
+remote - "Remote":
+ int port : "Port" = 7227
+ ip listenaddr : "Adress" = 0.0.0.0
+ bool nolocalauth : "No authentication on local connections" = True
+ bool activated : "Activated" = True
+ssl - "SSL":
+ bool activated : "Activated"= False
+ file cert : "SSL Certificate" = ssl.crt
+ file key : "SSL Key" = ssl.key
+webinterface - "Webinterface":
+ bool activated : "Activated" = True
+ builtin;threaded;fastcgi;lightweight server : "Server" = builtin
+ bool https : "Use HTTPS" = False
+ ip host : "IP" = 0.0.0.0
+ int port : "Port" = 8001
+ str template : "Template" = default
+ str prefix: "Path Prefix" =
+log - "Log":
+ bool file_log : "File Log" = True
+ folder log_folder : "Folder" = Logs
+ int log_count : "Count" = 5
+ int log_size : "Size in kb" = 100
+ bool log_rotate : "Log Rotate" = True
+general - "General":
+ en;de;fr;it;es;nl;sv;ru;pl;cs;sr;pt_BR language : "Language" = en
+ folder download_folder : "Download Folder" = Downloads
+ bool debug_mode : "Debug Mode" = False
+ bool checksum : "Use Checksum" = False
+ int min_free_space : "Min Free Space (MB)" = 200
+ bool folder_per_package : "Create folder for each package" = True
+ int renice : "CPU Priority" = 0
+download - "Download":
+ int chunks : "Max connections for one download" = 3
+ int max_downloads : "Max Parallel Downloads" = 3
+ int max_speed : "Max Download Speed in kb/s" = -1
+ bool limit_speed : "Limit Download Speed" = False
+ str interface : "Download interface to bind (ip or Name)" = None
+ bool ipv6 : "Allow IPv6" = False
+ bool skip_existing : "Skip already existing files" = False
+permission - "Permissions":
+ bool change_user : "Change user of running process" = False
+ str user : "Username" = pyload
+ str folder : "Folder Permission mode" = 0755
+ bool change_file : "Change file mode of downloads" = False
+ str file : "Filemode for Downloads" = 0644
+ bool change_group : "Change group of running process" = False
+ str group : "Groupname" = pyload
+ bool change_dl : "Change Group and User of Downloads" = False
+reconnect - "Reconnect":
+ bool activated : "Use Reconnect" = False
+ str method : "Method" = None
+ time startTime : "Start" = 0:00
+ time endTime : "End" = 0:00
+downloadTime - "Download Time":
+ time start : "Start" = 0:00
+ time end : "End" = 0:00
+proxy - "Proxy":
+ str address : "Address" = "localhost"
+ int port : "Port" = 7070
+ http;socks4;socks5 type : "Protocol" = http
+ str username : "Username" = None
+ password password : "Password" = None
+ bool proxy : "Use Proxy" = False
diff --git a/pyload.install b/pyload.install
new file mode 100644
index 000000000000..047c49d045f9
--- /dev/null
+++ b/pyload.install
@@ -0,0 +1,15 @@
+post_install() {
+ getent group pyload &>/dev/null || groupadd -r pyload >/dev/null
+ getent passwd pyload &>/dev/null || useradd -r -g pyload -d /var/lib/pyload -s /bin/false -c pyload pyload >/dev/null
+ chown -R pyload:pyload /var/lib/pyload
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent passwd pyload &>/dev/null && userdel pyload >/dev/null
+ getent group pyload &>/dev/null && groupdel pyload >/dev/null
+ true
+}
diff --git a/pyload.service b/pyload.service
new file mode 100644
index 000000000000..4004c8f323a5
--- /dev/null
+++ b/pyload.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=pyLoad Core
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/pyLoadCore
+User=pyload
+Group=pyload
+
+[Install]
+WantedBy=multi-user.target
diff --git a/suppress_jinja2_version_check.patch b/suppress_jinja2_version_check.patch
new file mode 100644
index 000000000000..a982bb71210d
--- /dev/null
+++ b/suppress_jinja2_version_check.patch
@@ -0,0 +1,17 @@
+diff -rupN pyload/module/setup.py pyloadp/module/setup.py
+--- pyload/module/setup.py 2012-10-13 10:31:30.000000000 +0200
++++ pyloadp/module/setup.py 2014-06-12 18:17:30.351347907 +0200
+@@ -242,13 +242,6 @@ class Setup():
+ import jinja2
+
+ v = jinja2.__version__
+- if v and "unknown" not in v:
+- if not v.startswith("2.5") and not v.startswith("2.6"):
+- print _("Your installed jinja2 version %s seems too old.") % jinja2.__version__
+- print _("You can safely continue but if the webinterface is not working,")
+- print _("please upgrade or deinstall it, pyLoad includes a sufficient jinja2 libary.")
+- print
+- jinja = False
+ except:
+ pass
+