2004-10-28 02:59:18 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2004/10/28 00:59:18 tv Exp $
|
2004-03-29 20:40:43 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= entropy-${ENTROPY_VERSION}
|
|
|
|
PKGNAME= entropy-${ENTROPY_VERSION:S/-/./}
|
2004-10-28 02:59:18 +02:00
|
|
|
PKGREVISION= 1
|
2004-03-29 20:40:43 +02:00
|
|
|
WRKSRC= ${WRKDIR}/entropy-${ENTROPY_VERSION:C/-.*$//}
|
2004-03-29 20:45:03 +02:00
|
|
|
CATEGORIES= net www
|
2004-07-25 17:29:29 +02:00
|
|
|
MASTER_SITES= http://entropy.stop1984.com/files/
|
2004-03-29 20:40:43 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= tv@duh.org
|
|
|
|
HOMEPAGE= http://entropy.stop1984.com/
|
|
|
|
COMMENT= Anonymous peer-to-peer networking node (similar to Freenet)
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
USE_GNU_TOOLS+= make
|
|
|
|
|
2004-09-25 15:43:05 +02:00
|
|
|
ENTROPY_VERSION= 0.8.2-418
|
2004-03-29 20:40:43 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-verbose --disable-posix-sem
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${SED} -e '/^# /!s/^#//' <${WRKSRC}/seed.txt-dist >${WRKSRC}/seed.txt
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/entropy ${PREFIX}/bin/entropy
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/monoopt ${PREFIX}/bin/entropy-monoopt
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/storechg ${PREFIX}/bin/entropy-storechg
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/entropy
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/entropy/node
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/entropy.conf-dist ${PREFIX}/share/examples/entropy/entropy.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/seed.txt ${PREFIX}/share/examples/entropy/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/node/[0-9a-z]* ${PREFIX}/share/examples/entropy/node/
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# tree is most efficient on *ix; can also be "monolithic" or "mysql"
|
|
|
|
ENTROPY_STORE_TYPE?= tree
|
|
|
|
|
|
|
|
.if ${ENTROPY_STORE_TYPE} == "tree"
|
|
|
|
CONFIGURE_ARGS+= --with-tree
|
|
|
|
.elif ${ENTROPY_STORE_TYPE} == "mysql"
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
2004-05-10 01:59:55 +02:00
|
|
|
.include "../../databases/mysql-client/buildlink3.mk"
|
2004-03-29 20:40:43 +02:00
|
|
|
.elif ${ENTROPY_STORE_TYPE} != "monolithic"
|
|
|
|
.error unknown ENTROPY_STORE_TYPE: ${ENTROPY_STORE_TYPE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# maximum allowed peer connections (and child processes); default 64
|
|
|
|
.ifdef ENTROPY_MAX_PEERS
|
|
|
|
CONFIGURE_ARGS+= --enable-max-peers=${ENTROPY_MAX_PEERS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|