freebsd-ports/net-p2p/py-kenosis/Makefile

65 lines
1.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: kenosis
# Date created: Thu Jan 13 01:15:19 UTC 2005
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= kenosis
2005-04-04 01:50:35 +02:00
PORTVERSION= 0.95
Populate newly create net-p2p category with these ports: ftp/jigdo net/amule1 net/amule2 net/apollon net/azureus net/bnbt net/btpeer net/btqueue net/cdonkey net/ctorrent net/dcd net/dclib net/dctc net/dctc-gui net/dctc-gui-qt net/edonkey-gui-gtk net/edonkey-gui-gtk-urlslave net/fcptools net/fidelio net/freenet net/frost net/giftcurs net/giftoxic net/giftui net/gift net/gift-fasttrack net/gift-gnutella net/gift-openft net/gkrellm-gift net/gnewtellium net/gnome-btdownload net/gnunet net/gtkhx net/gtk-gnutella net/gtorrentviewer net/hagelslag net/hx net/i2p net/javadc net/kmldonkey net/ktorrent net/libbt net/liberator net/libfreenet net/libpdtp net/libtorrent net/limewire net/linux-agsatellite net/linux-edonkey-core net/linux-edonkey-server net/linux-jigdo net/linux-overnet-core net/minder net/mldonkey net/mldonkey-core net/mldonkey-core-devel net/mldonkey-devel net/mldonkey-gui net/mldonkey-gui-devel net/mldonkey-perlreactor net/mldonkey-sancho net/mldonkey-serverspy net/mldonkey-urlslave net/mutella net/mute-net net/mute-net-gui net/mute-net-text net/napshare net/nicotine net/opendchub net/peercast net/phex net/pyslsk net/py-bittornado net/py-bittornado-core net/py-bittorrent net/py-bittorrent-core net/py-bittorrent-core-devel net/py-bittorrent-devel net/py-fngrab net/py-kenosis net/py-kenosis-bittorrent net/py-py2play net/p5-pdonkey net/qtella net/qtorrent net/rtorrent net/squall net/torrentflux net/torrentsniff net/trackerbt net/transmission net/valknut net/verlihub net/verlihub-plugins net/xmule net/xnap misc/ed2k misc/edonkey-tool-hash misc/linux-edonkey-tool-recovermet Repocopies by: marcus
2006-01-30 22:36:28 +01:00
CATEGORIES= net-p2p python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= lioux@FreeBSD.org
COMMENT= A fully-distributed p2p RPC system built on top of XMLRPC
RUN_DEPENDS= \
${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/xmlrpclib.py:${PORTSDIR}/net/py-xmlrpclib
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYSETUP= ${PORTNAME}_setup.py
USE_REINPLACE= yes
post-extract:
# Avoid name collision and move ds inside kenosis package
# it is only used by kenosis anyway
@${MV} ${WRKSRC}/ds ${WRKSRC}/${PORTNAME}
# Contributed by Eric Ries <eric.ries@aya.yale.edu> - kenosis developer
# Queue.py changed API from python 2.3 to 2.4
# use Queue.py from python 2.3 while kenosis developers fix this
@${CP} ${FILESDIR}/python2.3-Queue.py \
${WRKSRC}/${PORTNAME}/Queue.py
post-patch:
# ds was moved inside kenosis package
# use local copy of Queue
# point at correct python
@${FIND} ${WRKSRC} -type f -print0 \
| ${XARGS} -0 -n 5 -x \
${REINPLACE_CMD} -E \
-e 's|from[[:space:]]+ds|from ${PORTNAME}.ds|' \
-e 's|import[[:space:]]+Queue|from ${PORTNAME} import Queue|' \
-e 's|/usr/bin/python|${PYTHON_CMD}|' \
-e 's|/usr/bin/env[[:space:]]+python|${PYTHON_CMD}|'
# remove all .bak files
@${FIND} ${WRKSRC} -name "*.bak" -type f -print0 \
| ${XARGS} -0 -n 5 -x \
${RM} -f
# Contributed by Eric Ries <eric.ries@aya.yale.edu> - kenosis developer
# set default time out to 20
@${REINPLACE_CMD} -E \
-e 's|(socket.setdefaulttimeout)\([[:digit:]]+\)|\1(20)|' \
${WRKSRC}/${PORTNAME}/node.py
post-install:
# fix post-install permissions
@${FIND} ${PYTHON_SITELIBDIR} -type f -print0 \
| ${XARGS} -0 -n 5 -x \
${CHMOD} ${SHAREMODE}
.include <bsd.port.mk>