diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2015-04-16 16:57:47 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2015-05-09 07:40:26 +0000 |
commit | 83910e404c6a194aab7c29f54915317acb06f2f3 (patch) | |
tree | 8da37e87c4052187f39c3620d84915753b9b9664 /testing/py-telnetsrv/APKBUILD | |
parent | 27f6fdb9bf4ba9a4211f4a562cd74b7919f68869 (diff) | |
download | aports-83910e404c6a194aab7c29f54915317acb06f2f3.tar.bz2 aports-83910e404c6a194aab7c29f54915317acb06f2f3.tar.xz |
testing/py-telnetsrv: new aport
A Python Telnet server handler library
https://github.com/ianepperson/telnetsrvlib
Diffstat (limited to 'testing/py-telnetsrv/APKBUILD')
-rw-r--r-- | testing/py-telnetsrv/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-telnetsrv/APKBUILD b/testing/py-telnetsrv/APKBUILD new file mode 100644 index 0000000000..2192f6e546 --- /dev/null +++ b/testing/py-telnetsrv/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-telnetsrv +_pkgname=telnetsrv +pkgver=0.4 +pkgrel=0 +pkgdesc="A Python Telnet server handler library" +url="https://github.com/ianepperson/telnetsrvlib" +arch="noarch" +license="LGPL+" +depends="python py-gevent py-paramiko" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="eb59ce5a765c4f9acb85f60342ae0be9 telnetsrv-0.4.tar.gz" +sha256sums="195fa7acdeba7bb46a1a320c0afd66e23b5d7ab8810393468a05936113d84799 telnetsrv-0.4.tar.gz" +sha512sums="75c69378fecc5f344560d05f2195d9832add03c53a2955b95b030e2f72da3351cc9712fedd08ae576f2e175f8a887f3bc3f67155760fdc2749cb270cef5d4fba telnetsrv-0.4.tar.gz" |