freebsd-ports/net-p2p/i2p/Makefile

98 lines
2.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: i2p
# Date created: Sun Jan 9 05:05:02 UTC 2005
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= i2p
2010-12-05 11:17:02 +01:00
PORTVERSION= 0.8.1
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 java security
2010-01-18 10:08:54 +01:00
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}:i2p \
http://mirror.i2p2.de/:i2p \
http://dist.codehaus.org/jetty/jetty-5.1.x/:jetty
2007-04-18 13:23:26 +02:00
DISTFILES= \
2010-01-02 09:40:38 +01:00
i2psource_${PORTVERSION}${EXTRACT_SUFX}:i2p \
2007-04-18 13:23:26 +02:00
${JETTY_DISTFILE}:jetty
2010-01-02 09:40:38 +01:00
EXTRACT_ONLY= i2psource_${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= lioux@FreeBSD.org
2009-04-22 03:14:58 +02:00
COMMENT= An anonymizing network
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/gmp
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
LICENSE= ASL EULA
LICENSE_NAME_EULA= End User License Agreement
LICENSE_PERMS_EULA= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_FILE_EULA= ${WRKSRC}/LICENSE.txt
LICENSE_COMB= multi
LICENSE_DISTFILES_ASL= ${JETTY_DISTFILE}
LICENSE_DISTFILES_EULA= i2psource_${PORTVERSION}${EXTRACT_SUFX}
USE_BZIP2= yes
USE_RC_SUBR= i2p.sh
2006-04-06 05:33:42 +02:00
JAVA_BUILD= jdk
USE_JAVA= yes
2009-04-22 03:14:58 +02:00
JAVA_VERSION= 1.5+
USE_ANT= yes
ALL_TARGET= \
updater \
tarball
.ifndef(NOPORTDOCS)
ALL_TARGET+= javadoc
.endif
JAVADOC_WRKSRC= ${WRKSRC}/build/javadoc
.ifndef(NOPORTDOCS)
2009-04-22 03:14:58 +02:00
PORTDOCS= *
.endif
PLIST_DIRS= \
%%DATADIR%%
PLIST_FILES= \
sbin/i2prouter \
%%DATADIR%%/i2p.tar.bz2 \
%%DATADIR%%/i2pupdate.zip
JETTY_DISTFILE= jetty-5.1.15.tgz
2007-04-18 13:23:26 +02:00
SUB_FILES= wrapper.sh
2007-04-18 13:23:26 +02:00
post-extract:
@${MKDIR} ${WRKSRC}/apps/jetty/
@${CP} -f ${DISTDIR}/${JETTY_DISTFILE} ${WRKSRC}/apps/jetty/
post-patch:
# postinstall.sh SHOULD only do post installation house keeping
@${REINPLACE_CMD} -E \
-e 's|./i2prouter[[:space:]]+start||' \
${WRKSRC}/installer/resources/postinstall.sh
do-install:
@${MKDIR} ${DATADIR}
# install
@${INSTALL_DATA} ${WRKSRC}/i2p.tar.bz2 \
${DATADIR}/
# update
@${INSTALL_DATA} ${WRKSRC}/i2pupdate.zip \
${DATADIR}/
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${PREFIX}/sbin/i2prouter
# doc
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
2010-01-11 02:45:54 +01:00
@${INSTALL_DATA} ${WRKSRC}/installer/resources/readme/readme*.html ${DOCSDIR}
# line taken from textproc/xerces-j maintained by hq@FreeBSD.org
@cd ${JAVADOC_WRKSRC} && \
2009-04-22 03:14:58 +02:00
${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
${FIND} * -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif
.include <bsd.port.mk>