diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-03-03 21:59:40 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-03-04 09:50:18 +0000 |
commit | 8f60056156a47e1934f415854cbe16c03034751f (patch) | |
tree | 73eb16bbe970bdac3e9af49b70d4c10fd9bb1589 /testing/py-netaddr/APKBUILD | |
parent | 78a98700eefe8e0ad512f2524e5912199471f8d5 (diff) | |
download | aports-8f60056156a47e1934f415854cbe16c03034751f.tar.bz2 aports-8f60056156a47e1934f415854cbe16c03034751f.tar.xz |
testing/py-netaddr: new aport
`netaddr` is a Python library for representing and manipulating
network addresses.
It support the ability to work and interact with the following:
- IPv4 and IPv6 addresses and subnets
- MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
- arbitrary (non-aligned) IP address ranges and IP address sets
- various non-CIDR IP range formats such as nmap and glob-style formats
Website: https://github.com/drkjam/netaddr
Diffstat (limited to 'testing/py-netaddr/APKBUILD')
-rw-r--r-- | testing/py-netaddr/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-netaddr/APKBUILD b/testing/py-netaddr/APKBUILD new file mode 100644 index 0000000000..47a1fcc94c --- /dev/null +++ b/testing/py-netaddr/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-netaddr +_pkgname=netaddr +pkgver=0.7.10 +pkgrel=0 +pkgdesc="A network address manipulation library for Python" +url="https://github.com/drkjam/netaddr" +arch="noarch" +license="BSD" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="https://github.com/downloads/drkjam/netaddr/$_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="605cfd09ff51eaeff0ffacdb485e270b netaddr-0.7.10.tar.gz" +sha256sums="9b79763141a855079b0589717696a4ccb5c56c0b807b6e584bfe12333399e0b7 netaddr-0.7.10.tar.gz" +sha512sums="28d51e81151c96df37adf3466de451fc7375624eee6cd4b5d5587c25fd82d23b2dbba0fac38938ca760b28e220fbf147d2e5fa326869b2500de036bf02b042ab netaddr-0.7.10.tar.gz" |