diff options
author | M0Rf30 | 2015-06-17 16:07:34 +0200 |
---|---|---|
committer | M0Rf30 | 2015-06-17 16:07:34 +0200 |
commit | 76b4325dfc19ed457a85e2efc81e3e286635e724 (patch) | |
tree | 2937b1a3e1cccf3236b133db253a6c2e83467674 | |
download | aur-76b4325dfc19ed457a85e2efc81e3e286635e724.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 42 | ||||
-rw-r--r-- | PKGBUILD | 62 | ||||
-rw-r--r-- | pyload-git.install | 15 | ||||
-rw-r--r-- | pyload-gui.desktop | 19 | ||||
-rw-r--r-- | pyload-gui.png | bin | 0 -> 8093 bytes | |||
-rw-r--r-- | pyload.conf | 65 | ||||
-rw-r--r-- | pyload.desktop | 19 | ||||
-rw-r--r-- | pyload.service | 15 | ||||
-rw-r--r-- | pyload.svg | 107 |
9 files changed, 344 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..59d24edd8ef5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,42 @@ +pkgbase = pyload-git + pkgdesc = Downloadtool for One-Click-Hoster written in python. Latest stable branch + pkgver = 2621.76e7c4b + pkgrel = 1 + url = https://github.com/pyload/pyload + install = pyload-git.install + arch = any + license = GPL + makedepends = git + depends = python2 + depends = python2-crypto + depends = python2-pycurl + depends = tesseract + depends = python2-pillow + depends = python2-jinja + depends = python2-beaker + depends = python2-pyopenssl + optdepends = python2-pyqt4: Gui + optdepends = python2-flup: for additional webservers + optdepends = python2-notify: Notifications for GUI + optdepends = js: ClickNLoad + provides = pyload + conflicts = pyload + conflicts = pyload-hg + backup = var/lib/pyload/pyload.conf + source = pyload::git+https://github.com/pyload/pyload.git#branch=stable + source = pyload.service + source = pyload.conf + source = pyload-gui.desktop + source = pyload.desktop + source = pyload-gui.png + source = pyload.svg + md5sums = SKIP + md5sums = c9aec74442226efab711cc00bf4135b7 + md5sums = 32b00d50be868c165930c592b99730a9 + md5sums = b96a4e5091463b3b7fd79208623f1a3a + md5sums = c67462993d27d5884677dd6e8a8a17d2 + md5sums = 73fcec930d25a49e1b99576069d88bd5 + md5sums = 649d5af94101655d37fe50e7b127d1b6 + +pkgname = pyload-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c38d250c041 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: M0Rf30 + +pkgname='pyload-git' +pkgver=2621.76e7c4b +pkgrel=1 +pkgdesc="Downloadtool for One-Click-Hoster written in python. Latest stable branch" +url="https://github.com/pyload/pyload" +license=('GPL') +arch=('any') +provides=('pyload') +conflicts=('pyload' 'pyload-hg') +backup=('var/lib/pyload/pyload.conf') +depends=('python2' 'python2-crypto' 'python2-pycurl' 'tesseract' + 'python2-pillow' 'python2-jinja' 'python2-beaker' 'python2-pyopenssl') +optdepends=('python2-pyqt4: Gui' + 'python2-flup: for additional webservers' + 'python2-notify: Notifications for GUI' + 'js: ClickNLoad') +makedepends=('git') +install='pyload-git.install' + +source=('pyload::git+https://github.com/pyload/pyload.git#branch=stable' + pyload.service + pyload.conf + pyload-gui.desktop + pyload.desktop + pyload-gui.png + pyload.svg) + +pkgver() { + cd $startdir/pyload + echo $(git rev-list --count stable).$(git rev-parse --short stable) +} + +package() { + cd $srcdir + sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' pyload/pyLoad*.py + + install -d ${pkgdir}/opt/pyload + cp -r pyload/* ${pkgdir}/opt/pyload + install -d ${pkgdir}/usr/share/applications + cp pyload.desktop ${pkgdir}/usr/share/applications + cp pyload-gui.desktop ${pkgdir}/usr/share/applications + install -d ${pkgdir}/usr/share/pixmaps + cp pyload.svg ${pkgdir}/usr/share/pixmaps + cp pyload-gui.png ${pkgdir}/usr/share/pixmaps + install -d ${pkgdir}/usr/bin + ln -s /opt/pyload/pyLoadCore.py ${pkgdir}/usr/bin/pyLoadCore + ln -s /opt/pyload/pyLoadCli.py ${pkgdir}/usr/bin/pyLoadCli + ln -s /opt/pyload/pyLoadGui.py ${pkgdir}/usr/bin/pyLoadGui + # Create PyLoad service + install -Dm 644 ${srcdir}/pyload.service ${pkgdir}/usr/lib/systemd/system/pyload.service + install -Dm 644 ${srcdir}/pyload.conf ${pkgdir}/var/lib/pyload/pyload.conf +} + +md5sums=('SKIP' + 'c9aec74442226efab711cc00bf4135b7' + '32b00d50be868c165930c592b99730a9' + 'b96a4e5091463b3b7fd79208623f1a3a' + 'c67462993d27d5884677dd6e8a8a17d2' + '73fcec930d25a49e1b99576069d88bd5' + '649d5af94101655d37fe50e7b127d1b6') diff --git a/pyload-git.install b/pyload-git.install new file mode 100644 index 000000000000..047c49d045f9 --- /dev/null +++ b/pyload-git.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-gui.desktop b/pyload-gui.desktop new file mode 100644 index 000000000000..64e0e14e469f --- /dev/null +++ b/pyload-gui.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Categories=Network;FileTransfer;Qt; +Comment[de]=Graphical User Interface für pyLoad +Comment=Graphical User Interface for pyLoad +Exec=/usr/bin/pyLoadGui +GenericName[de]=pyLoad GUI +GenericName=pyLoad GUI +Icon=pyload-gui +MimeType= +Name[de]=pyLoad GUI +Name=pyLoad GUI +Path= +StartupNotify=false +Terminal=false +Type=Application +X-DBUS-ServiceName= +X-DBUS-StartupType= +X-KDE-SubstituteUID=false +X-KDE-Username= diff --git a/pyload-gui.png b/pyload-gui.png Binary files differnew file mode 100644 index 000000000000..5994b274d9ba --- /dev/null +++ b/pyload-gui.png 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.desktop b/pyload.desktop new file mode 100644 index 000000000000..16ec151df1f6 --- /dev/null +++ b/pyload.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Categories=Network;FileTransfer; +Comment[de]=schlanker, schneller Open-Source Downloader +Comment=fast, lightweight Open-Source Downloader +Exec=/usr/bin/pyLoadCore +GenericName[de]=pyLoad +GenericName=pyLoad +Icon=pyload +MimeType= +Name[de]=pyLoad Download Manager +Name=pyLoad Download Manager +Path= +StartupNotify=false +Terminal=true +Type=Application +X-DBUS-ServiceName= +X-DBUS-StartupType= +X-KDE-SubstituteUID=false +X-KDE-Username= diff --git a/pyload.service b/pyload.service new file mode 100644 index 000000000000..d93a8ed8b1b4 --- /dev/null +++ b/pyload.service @@ -0,0 +1,15 @@ +[Unit] +Description=pyLoad Core +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/pyLoadCore --daemon --configdir=/var/lib/pyload +Restart=on-abort +KillSignal=SIGQUIT +PIDFile=/var/lib/pyload/pyload.pid +User=pyload +Group=pyload + +[Install] +WantedBy=multi-user.target diff --git a/pyload.svg b/pyload.svg new file mode 100644 index 000000000000..672a5af3390e --- /dev/null +++ b/pyload.svg @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + id="svg2" + version="1.1" + inkscape:version="0.48.1 r9760" + width="111" + height="111" + sodipodi:docname="logo.svg"> + <metadata + id="metadata8"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs6"> + <linearGradient + id="linearGradient3815"> + <stop + style="stop-color:#ffd642;stop-opacity:1;" + offset="0" + id="stop3817" /> + <stop + style="stop-color:#ffe873;stop-opacity:1;" + offset="1" + id="stop3819" /> + </linearGradient> + <linearGradient + id="linearGradient3773"> + <stop + style="stop-color:#0062ae;stop-opacity:1;" + offset="0" + id="stop3775" /> + <stop + style="stop-color:#4e8cbc;stop-opacity:1;" + offset="1" + id="stop3777" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3773" + id="linearGradient3795" + x1="71.335106" + y1="77.345749" + x2="0.9232471" + y2="85.414894" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(0,-58.255319)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3815" + id="linearGradient3845" + x1="68.186165" + y1="61.896278" + x2="32.517345" + y2="31.194151" + gradientUnits="userSpaceOnUse" /> + </defs> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="959" + inkscape:window-height="1023" + id="namedview4" + showgrid="false" + inkscape:zoom="2.5405405" + inkscape:cx="63.638343" + inkscape:cy="54.211173" + inkscape:window-x="960" + inkscape:window-y="26" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" /> + <path + style="fill:url(#linearGradient3795);fill-opacity:1;stroke:#315788;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 81.478723,1.7712768 c 0,4.765764 2.969157,23.0265952 -12.595745,23.0265952 l -23.420212,0 c -11.757126,0 -20.074469,5.29995 -20.074469,16.728724 l 0,11.808515 -9.840425,0 c -4.831138,0 -14.3670209,-3.17019 -14.3670209,-25.388303 0,-13.556823 3.5778243,-26.1755312 18.6968079,-26.1755312 z" + id="path2987" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cccscccsc" /> + <path + style="fill:url(#linearGradient3845);fill-opacity:1;fill-rule:evenodd;stroke:#cfb447;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 75.671427,69.853532 c 0,7.377165 -10.701938,7.365555 -10.701938,-0.196312 0,-7.561867 10.701938,-7.180853 10.701938,0.196312 z M 56.090429,109.62234 28.930851,70.457447 l 0,-24.207447 c 0,-9.114114 2.68126,-16.236702 16.236702,-16.236702 l 21.747346,0 c 14.68592,0 19.23803,-11.824221 19.23803,-19.238032 l 0.0492,-9.0039892 8.26596,-0.196809 c 10.596551,0.208317 15.288621,6.948553 15.288621,25.9381532 0,19.925574 -5.50034,25.625677 -15.288621,25.625677 l -40.34575,0 0,5.904256 26.96277,0 0.368519,11.965305 z" + id="path3797" + inkscape:connector-curvature="0" + sodipodi:nodetypes="zzzccccccccssccccc" /> +</svg> |