# HG changeset patch # User Norm Jacobs # Date 1369330230 25200 # Node ID 27b67da05e40fd0ec3f42050f7a5bf8d7afa50bf # Parent 10372d23d3cf8f9531592041f62fd155d25dc504 15798522 SUNBT7177417 Add python netaddr to Solaris diff -r 10372d23d3cf -r 27b67da05e40 components/python/netaddr/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/python/netaddr/Makefile Thu May 23 10:30:30 2013 -0700 @@ -0,0 +1,58 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. +# +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= netaddr +COMPONENT_VERSION= 0.7.10 +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= \ + sha256:9b79763141a855079b0589717696a4ccb5c56c0b807b6e584bfe12333399e0b7 +COMPONENT_PROJECT_URL= http://github.com/drkjam/netaddr/ +COMPONENT_ARCHIVE_URL= http://github.com/downloads/drkjam/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) +COMPONENT_BUGDB= python-mod/netaddr + +include $(WS_TOP)/make-rules/prep.mk +include $(WS_TOP)/make-rules/setup.py.mk +include $(WS_TOP)/make-rules/ips.mk + +COMPONENT_POST_INSTALL_ACTION = \ + (cd $(PROTOUSRBINDIR) ; $(MV) netaddr netaddr-$(PYTHON_VERSION)) + +# common targets +build: $(BUILD_32) + +install: $(INSTALL_32) + +COMPONENT_TEST_DIR= $(@D)/lib/netaddr +COMPONENT_TEST_ARGS= tests/__init__.py +COMPONENT_PRE_TEST_ACTION= \ + ( cd $(COMPONENT_TEST_DIR)/tests ; \ + ln -s $(SOURCE_DIR)/netaddr/tests/2.x ; \ + ln -s $(SOURCE_DIR)/netaddr/tests/3.x ) + +test: $(TEST_32) + +BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) + +include $(WS_TOP)/make-rules/depend.mk diff -r 10372d23d3cf -r 27b67da05e40 components/python/netaddr/netaddr-PYVER.p5m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/python/netaddr/netaddr-PYVER.p5m Thu May 23 10:30:30 2013 -0700 @@ -0,0 +1,81 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. +# + +set name=pkg.fmri \ + value=pkg:/library/python-2/netaddr-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="Python network address manipulation" +set name=pkg.description \ + value="The netaddr Python library represents and manipulates network addresses. It supports 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." +set name=com.oracle.info.description \ + value="the Python network address manipulation library" +set name=com.oracle.info.tpno value=13141 +set name=info.classification \ + value=org.opensolaris.category.2008:Development/Python +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=org.opensolaris.arc-caseid value=PSARC/2012/037 +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) +# +link path=usr/bin/netaddr target=netaddr-$(PYVER) mediator=python \ + mediator-version=$(PYVER) +# +# since we have IPython < 0.11, skip dependencies for +# IPython.frontend.terminal.embed +file path=usr/bin/netaddr-$(PYVER) \ + pkg.depend.bypass-generate=.*(frontend|terminal|embed).* +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr-$(IPS_COMPONENT_VERSION)-py$(PYVER).egg-info +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/compat.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/core.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/eui/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/eui/iab.idx +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/eui/iab.txt +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/eui/ieee.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/eui/oui.idx +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/eui/oui.txt +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/fbsocket.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/glob.py +# urllib.request is not available in python 2.X +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/iana.py \ + pkg.depend.bypass-generate=.*(urllib|request).* +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/intset.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/ipv4-address-space.xml +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/ipv6-address-space.xml +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/multicast-addresses.xml +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/nmap.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/rfc1924.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/ip/sets.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/strategy/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/strategy/eui48.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/strategy/eui64.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/strategy/ipv4.py +file path=usr/lib/python$(PYVER)/vendor-packages/netaddr/strategy/ipv6.py +# +license LICENSE license=BSD +# +# force a dependency on the netaddr package +depend type=require \ + fmri=library/python-2/netaddr@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) diff -r 10372d23d3cf -r 27b67da05e40 components/python/netaddr/resolve.deps --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/python/netaddr/resolve.deps Thu May 23 10:30:30 2013 -0700 @@ -0,0 +1,4 @@ +library/python-2/ipython-26 +library/python-2/ipython-27 +runtime/python-26 +runtime/python-27