pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Add net/py-bonjour v0.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39f22d8eb28a
branches:  trunk
changeset: 372134:39f22d8eb28a
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Tue Nov 28 13:48:07 2017 +0000

description:
Add net/py-bonjour v0.3

Bonjour provides service advertising and discovery on the local
network via multicast DNS.  These files use SWIG to provide a Python
interface for use by applications to interact with Bonjour.through
mDNSResponder.

diffstat:

 licenses/agtpl-license                |  92 +++++++++++++++++++++++++++++++++++
 net/Makefile                          |   3 +-
 net/py-bonjour/DESCR                  |   3 +
 net/py-bonjour/Makefile               |  50 +++++++++++++++++++
 net/py-bonjour/PLIST                  |  14 +++++
 net/py-bonjour/distinfo               |   7 ++
 net/py-bonjour/patches/patch-setup.py |  26 +++++++++
 7 files changed, 194 insertions(+), 1 deletions(-)

diffs (233 lines):

diff -r e6a5f3755745 -r 39f22d8eb28a licenses/agtpl-license
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/licenses/agtpl-license    Tue Nov 28 13:48:07 2017 +0000
@@ -0,0 +1,92 @@
+
+Access Grid Toolkit Public License (AGTPL)
+
+Copyright (c) 2000-2007 University of Chicago. All Rights Reserved.
+
+ 1) The "Software", below, refers to the Access Grid Toolkit (in
+ either source-code, or binary form and related documentation) and a
+ "work based on the Software" means a work based on either the
+ Software, on part of the Software, or on any derivative work of the
+ Software under copyright law: that is, a work containing all or a
+ portion of the Software either verbatim or with modifications.  Each
+ licensee is addressed as "you" or "Licensee."
+
+ 2) The University of Chicago as Operator of Argonne National
+ Laboratory is the copyright holder in the Software.  The holder
+ reserves all rights except those expressly granted to the Licensee
+ herein and license rights held by the U.S. Government.
+
+ 3) A copy or copies of the Software may be given to others, if you
+ meet the following conditions:
+
+    a) Copies in source code form must include the copyright notice
+    and this license.
+
+    b) Copies in binary form must include the copyright notice and
+    this license in the documentation.
+
+ 4) All advertising materials, journal articles and documentation
+ mentioning features derived from or use of the Software must display
+ the following acknowledgement:
+
+    "This product includes software developed by and/or derived from
+    the Access Grid project (http://www.accessgrid.org)."
+
+    In the event that the product being advertised includes an intact
+    Access Grid Toolkit distribution (with copyright and license
+    included) then this clause is waived.
+
+ 5) You may make modifications to the Software, however, if you modify
+ a copy or copies of the Software or any portion of it, thus forming a
+ work based on the Software, and give a copy or copies of such work to
+ others, either in source code or binary form, you must meet the
+ following conditions:
+
+    a) The Software must carry prominent notices stating that you
+    changed portions of the Software.
+
+    b) The Software must display the following acknowledgement:
+
+       "This product includes software developed by and/or derived
+       from the Access Grid Project (http://www.accessgrid.org) to
+       which the U.S. Government retains certain rights."
+
+ 6) LICENSEE AGREES THAT THE EXPORT OF GOODS AND/OR TECHNICAL DATA
+ FROM THE UNITED STATES MAY REQUIRE SOME FORM OF EXPORT CONTROL
+ LICENSE FROM THE U.S. GOVERNMENT AND THAT FAILURE TO OBTAIN SUCH
+ EXPORT CONTROL LICENSE MAY RESULT IN CRIMINAL LIABILITY UNDER
+ U.S. LAWS.
+
+ 7) Portions of the Software resulted from work developed under a
+ U.S. Government contract and are subject to the following license:
+ the Government is granted for itself and others acting on its behalf
+ a paid-up, nonexclusive, irrevocable worldwide license in this
+ computer software to reproduce, prepare derivative works, and perform
+ publicly and display publicly.
+
+ 8) The Software was prepared, in part, as an account of work
+ sponsored by an agency of the United States Government.  Neither the
+ United States, nor the University of Chicago, nor any contributors to
+ the Access Grid Project or Access Grid Toolkit, nor any of their
+ employees, makes any warranty express or implied, or assumes any
+ legal liability or responsibility for the accuracy, completeness, or
+ usefulness of any information, apparatus, product, or process
+ disclosed, or represents that its use would not infringe privately
+ owned rights.
+
+ 9) IN NO EVENT WILL THE UNITED STATES, THE UNIVERSITY OF CHICAGO OR
+ ANY CONTRIBUTORS TO THE ACCESS GRID PROJECT OR ACCESS GRID TOOLKIT BE
+ LIABLE FOR ANY DAMAGES, INCLUDING DIRECT, INCIDENTAL, SPECIAL, OR
+ CONSEQUENTIAL DAMAGES RESULTING FROM EXERCISE OF THIS LICENSE
+ AGREEMENT OR THE USE OF THE SOFTWARE.
+
+END OF LICENSE
+
+Copyrights
+==========
+
+This product includes software developed by the Computer Science
+Department at University College London.
+
+This product includes software developed by the Network Research Group
+at Lawrence Berkeley National Laboratory.
diff -r e6a5f3755745 -r 39f22d8eb28a net/Makefile
--- a/net/Makefile      Tue Nov 28 13:47:39 2017 +0000
+++ b/net/Makefile      Tue Nov 28 13:48:07 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1190 2017/11/06 11:07:27 wiz Exp $
+# $NetBSD: Makefile,v 1.1191 2017/11/28 13:48:28 hauke Exp $
 #
 
 COMMENT=       Networking tools
@@ -629,6 +629,7 @@
 SUBDIR+=       py-awscli
 SUBDIR+=       py-beanstalkc
 SUBDIR+=       py-bitmessage
+SUBDIR+=       py-bonjour
 SUBDIR+=       py-boto
 SUBDIR+=       py-boto3
 SUBDIR+=       py-botocore
diff -r e6a5f3755745 -r 39f22d8eb28a net/py-bonjour/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-bonjour/DESCR      Tue Nov 28 13:48:07 2017 +0000
@@ -0,0 +1,3 @@
+Bonjour provides service advertising and discovery on the local
+network via multicast DNS.  These files use SWIG to provide a Python
+interface for use by applications to interact with Bonjour.
diff -r e6a5f3755745 -r 39f22d8eb28a net/py-bonjour/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-bonjour/Makefile   Tue Nov 28 13:48:07 2017 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1 2017/11/28 13:48:07 hauke Exp $
+
+PKGNAME=       ${PYPKGPREFIX}-bonjour.${PKGVER}
+DISTNAME=      bonjour-py-${PKGVER}
+PKGVER=                0.3
+CATEGORIES=    net
+MASTER_SITES=  http://www.mcs.anl.gov/fl/research/accessgrid/bonjour-py/
+
+MAINTAINER=    hauke%NetBSD.org@localhost
+HOMEPAGE=      http://www.mcs.anl.gov/fl/research/accessgrid/bonjour-py/
+COMMENT=       Python interface to interact with Bonjour
+LICENSE=       agtpl-license
+
+EGDIR=         share/examples/py-bonjour
+EGFILES=       browse.py query.py register.py serviceTypes.py \
+               test.py wxBrowse.py
+DOCDIR=                share/py-bonjour
+DOCFILES=      COPYING.txt README
+
+.for ee in ${EGFILES}
+REPLACE_PYTHON+=       examples/${ee}
+.endfor
+
+SUBST_CLASSES+=                 fix-paths
+SUBST_STAGE.fix-paths=          pre-configure
+SUBST_MESSAGE.fix-paths=        Fixing absolute paths.
+SUBST_FILES.fix-paths=          setup.py
+SUBST_SED.fix-paths=            -e 's,%PREFIX%,${PREFIX},g'
+
+PLIST_SUBST+=  EGDIR=${EGDIR}
+PLIST_SUBST+=  DOCDIR=${DOCDIR}
+
+USE_LANGUAGES= c
+
+INSTALLATION_DIRS=     ${EGDIR} ${DOCDIR}
+
+post-install:
+.for ff in ${EGFILES}
+       ${INSTALL_DATA}  ${WRKSRC}/examples/${ff} \
+               ${DESTDIR}${PREFIX}/${EGDIR}/${ff}
+.endfor
+.for ff in ${DOCFILES}
+       ${INSTALL_DATA}  ${WRKSRC}/${ff} \
+               ${DESTDIR}${PREFIX}/${DOCDIR}/${ff}
+.endfor
+
+.include "../../net/mDNSResponder/buildlink3.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e6a5f3755745 -r 39f22d8eb28a net/py-bonjour/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-bonjour/PLIST      Tue Nov 28 13:48:07 2017 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2017/11/28 13:48:07 hauke Exp $
+${PYSITELIB}/PACKAGENAME-1.0-py${PYVERSSUFFIX}.egg-info
+${PYSITELIB}/bonjour/__init__.py
+${PYSITELIB}/bonjour/__init__.pyc
+${PYSITELIB}/bonjour/__init__.pyo
+${PYSITELIB}/bonjour/_bonjour.so
+${DOCDIR}/COPYING.txt
+${DOCDIR}/README
+${EGDIR}/browse.py
+${EGDIR}/query.py
+${EGDIR}/register.py
+${EGDIR}/serviceTypes.py
+${EGDIR}/test.py
+${EGDIR}/wxBrowse.py
diff -r e6a5f3755745 -r 39f22d8eb28a net/py-bonjour/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-bonjour/distinfo   Tue Nov 28 13:48:07 2017 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/11/28 13:48:07 hauke Exp $
+
+SHA1 (bonjour-py-0.3.tar.gz) = b8ea698fdcdc5b75e440d65439080830585a7255
+RMD160 (bonjour-py-0.3.tar.gz) = 6a2500f5c21f10782de5d0627ddd0724cc1b1ae1
+SHA512 (bonjour-py-0.3.tar.gz) = 064d825ddc075ffb92f55449f6648e4e59d5d8da708db97788824fada2349269064d61da92edd68cb4232609796de6dc413ccce2ab97caa063cd9a3521878f85
+Size (bonjour-py-0.3.tar.gz) = 16343 bytes
+SHA1 (patch-setup.py) = f0d83c11e5ab0257c4bf2b183a52847713f106f0
diff -r e6a5f3755745 -r 39f22d8eb28a net/py-bonjour/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-bonjour/patches/patch-setup.py     Tue Nov 28 13:48:07 2017 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-setup.py,v 1.1 2017/11/28 13:48:07 hauke Exp $
+
+For pkgsrc, default to PREFIX path
+
+--- setup.py.orig      2006-05-12 05:14:54.000000000 +0000
++++ setup.py
+@@ -104,16 +104,10 @@ if sys.platform == 'win32':
+     print "incDirList = ", incDirList
+     libDirList = [os.path.join(os.path.abspath(SRC), "lib") ]
+     libList = [ "dnssd" ]
+-elif sys.platform == 'linux2':
+-    incDirList = []
+-    libDirList = []
+-    libList = ["dns_sd"]
+-elif sys.platform == 'freebsd5' or sys.platform == 'freebsd6':
+-    incDirList = [os.path.join(os.path.abspath('/usr'), 'local', 'include')] 
+-    libDirList = [os.path.join(os.path.abspath('/usr'), 'local', 'lib')]
++else:
++    incDirList = [os.path.join(os.path.abspath('%PREFIX%'), 'include')] 
++    libDirList = [os.path.join(os.path.abspath('%PREFIX%'), 'lib')]
+     libList = ["dns_sd"]
+-elif sys.platform == 'darwin':
+-    incDirList = libDirList = libList = []
+ 
+ opts = get_config_vars()
+ #for k,v in opts.items():



Home | Main Index | Thread Index | Old Index