summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2017-11-28 13:48:07 +0000
committerhauke <hauke@pkgsrc.org>2017-11-28 13:48:07 +0000
commit25f0ab119a67b01b35c2ffdc74bbad6dcde9b0f1 (patch)
treea23dce4b7e5406e25efd7feb3e82ad61c9b537fc /net
parent216d1f046059b477764542748b1893a3e939d381 (diff)
downloadpkgsrc-25f0ab119a67b01b35c2ffdc74bbad6dcde9b0f1.tar.gz
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 (limited to 'net')
-rw-r--r--net/Makefile3
-rw-r--r--net/py-bonjour/DESCR3
-rw-r--r--net/py-bonjour/Makefile50
-rw-r--r--net/py-bonjour/PLIST14
-rw-r--r--net/py-bonjour/distinfo7
-rw-r--r--net/py-bonjour/patches/patch-setup.py26
6 files changed, 102 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile
index 2a585c807a1..15bf2266699 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -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-apache-libcloud
SUBDIR+= py-awscli
SUBDIR+= py-beanstalkc
SUBDIR+= py-bitmessage
+SUBDIR+= py-bonjour
SUBDIR+= py-boto
SUBDIR+= py-boto3
SUBDIR+= py-botocore
diff --git a/net/py-bonjour/DESCR b/net/py-bonjour/DESCR
new file mode 100644
index 00000000000..822f16cea3e
--- /dev/null
+++ b/net/py-bonjour/DESCR
@@ -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 --git a/net/py-bonjour/Makefile b/net/py-bonjour/Makefile
new file mode 100644
index 00000000000..d5911bb0290
--- /dev/null
+++ b/net/py-bonjour/Makefile
@@ -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
+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 --git a/net/py-bonjour/PLIST b/net/py-bonjour/PLIST
new file mode 100644
index 00000000000..441aa2b745a
--- /dev/null
+++ b/net/py-bonjour/PLIST
@@ -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 --git a/net/py-bonjour/distinfo b/net/py-bonjour/distinfo
new file mode 100644
index 00000000000..8bb8d8420a2
--- /dev/null
+++ b/net/py-bonjour/distinfo
@@ -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 --git a/net/py-bonjour/patches/patch-setup.py b/net/py-bonjour/patches/patch-setup.py
new file mode 100644
index 00000000000..20956d0988c
--- /dev/null
+++ b/net/py-bonjour/patches/patch-setup.py
@@ -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():