summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Taboada2019-09-16 19:16:22 -0700
committerMichael Taboada2019-09-16 19:16:22 -0700
commit49cb082aca0f50bb886bf7f0b182bddb672eb295 (patch)
treea3f406c54d2e8d0bf6a7c3d52eb6837d43faa8d6
downloadaur-pyshaper.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
-rw-r--r--pyshaper.diff23
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f89afa0ab77
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = pyshaper
+ pkgdesc = your easy dynamic traffic shaper
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = http://freenet.mcnabhosting.com/python/pyshaper
+ arch = any
+ license = GPL2
+ makedepends = python2-setuptools
+ depends = python2
+ source = http://freenet.mcnabhosting.com/python/pyshaper/pyshaper-0.1.3.tar.gz
+ source = pyshaper.diff
+ sha512sums = 090561441e1b349072ac8eca7d114f375020683ce174d2ac1fca51f7c7eb2abd0bfae68a00631291c436ea580dd0ecff11b27adc85db6e2da54bed76a1815a12
+ sha512sums = a0322b8fbfaeaeb96e051a313d9a86ada084c470fd3398992c00cd7d30a838a77fd84488839154c15af004198bda72629b155e0c6815c0b74f2d973673e00785
+
+pkgname = pyshaper
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..50a1aadc920
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Michael Taboada <michael@2mb.solutions>
+
+pkgname=pyshaper
+pkgver=0.1.3
+pkgrel=1
+pkgdesc="your easy dynamic traffic shaper"
+arch=('any')
+url="http://freenet.mcnabhosting.com/python/pyshaper"
+license=('GPL2')
+depends=("python2")
+makedepends=('python2-setuptools')
+source=("$url/$pkgname-$pkgver.tar.gz" "$pkgname.diff")
+sha512sums=('090561441e1b349072ac8eca7d114f375020683ce174d2ac1fca51f7c7eb2abd0bfae68a00631291c436ea580dd0ecff11b27adc85db6e2da54bed76a1815a12'
+ 'a0322b8fbfaeaeb96e051a313d9a86ada084c470fd3398992c00cd7d30a838a77fd84488839154c15af004198bda72629b155e0c6815c0b74f2d973673e00785')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i "$srcdir/$pkgname.diff"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+}
diff --git a/pyshaper.diff b/pyshaper.diff
new file mode 100644
index 00000000000..aa8e80e30e4
--- /dev/null
+++ b/pyshaper.diff
@@ -0,0 +1,23 @@
+diff -u pyshaper-0.1.3/pyshaper.py pyshaper-0.1.3.patched/pyshaper.py
+--- pyshaper-0.1.3/pyshaper.py 2004-03-19 21:09:23.000000000 -0800
++++ pyshaper-0.1.3.patched/pyshaper.py 2019-09-16 19:09:22.889939432 -0700
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ #@+leo-ver=4
+ #@+node:@file pyshaper.py
+ #@@first
+diff -u pyshaper-0.1.3/setup.py pyshaper-0.1.3.patched/setup.py
+--- pyshaper-0.1.3/setup.py 2004-03-14 20:43:13.000000000 -0800
++++ pyshaper-0.1.3.patched/setup.py 2019-09-16 19:09:50.320251786 -0700
+@@ -5,10 +5,6 @@
+
+ import sys, os
+
+-if os.getuid() != 0:
+- print "Sorry, you must be root to install this program"
+- sys.exit(1)
+-
+ setup(
+ name="pyshaper",
+ version='0.1.1',