2007-03-19 17:36:41 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2007/03/19 16:40:28 tv Exp $
|
2004-03-29 20:40:43 +02:00
|
|
|
#
|
|
|
|
|
2005-06-30 18:31:47 +02:00
|
|
|
DISTNAME= entropy_rsa-${ENTROPY_VERSION}
|
2004-03-29 20:40:43 +02:00
|
|
|
PKGNAME= entropy-${ENTROPY_VERSION:S/-/./}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 3
|
2005-06-30 18:31:47 +02:00
|
|
|
WRKSRC= ${WRKDIR}/entropy_rsa-${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
|
|
|
|
|
2007-03-19 17:36:41 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-03-29 20:40:43 +02:00
|
|
|
HOMEPAGE= http://entropy.stop1984.com/
|
|
|
|
COMMENT= Anonymous peer-to-peer networking node (similar to Freenet)
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2005-11-08 16:59:38 +01:00
|
|
|
USE_TOOLS+= autoconf gmake
|
2004-03-29 20:40:43 +02:00
|
|
|
|
2005-10-24 19:01:43 +02:00
|
|
|
ENTROPY_VERSION= 0.9.1-439
|
2004-03-29 20:40:43 +02:00
|
|
|
|
2004-10-29 19:38:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-setproctitle --enable-verbose --disable-posix-sem
|
2005-06-28 18:59:36 +02:00
|
|
|
LIBS+= -L${BUILDLINK_PREFIX.zlib}/lib -lz -L${BUILDLINK_PREFIX.expat}/lib -lexpat
|
2004-03-29 20:40:43 +02:00
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2004-03-29 20:40:43 +02:00
|
|
|
post-patch:
|
|
|
|
${SED} -e '/^# /!s/^#//' <${WRKSRC}/seed.txt-dist >${WRKSRC}/seed.txt
|
|
|
|
|
|
|
|
do-install:
|
2005-06-30 18:31:47 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/entropy_rsa ${PREFIX}/bin/entropy
|
2004-03-29 20:40:43 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/monoopt ${PREFIX}/bin/entropy-monoopt
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/storechg ${PREFIX}/bin/entropy-storechg
|
2005-06-28 18:59:36 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/entropy
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/[ERT]* ${PREFIX}/share/doc/entropy/
|
2004-03-29 20:40:43 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/entropy
|
2005-06-28 18:59:36 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/entropy/de
|
2004-03-29 20:40:43 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/entropy/node
|
2005-06-30 18:31:47 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/entropy_rsa.conf-dist ${PREFIX}/share/examples/entropy/entropy.conf
|
2004-03-29 20:40:43 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/seed.txt ${PREFIX}/share/examples/entropy/
|
2005-06-30 18:31:47 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/de/entropy_rsa.lo ${PREFIX}/share/examples/entropy/de/entropy.lo
|
2004-03-29 20:40:43 +02:00
|
|
|
${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"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE:Q}
|
2004-10-29 07:59:23 +02:00
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
2004-03-29 20:40:43 +02:00
|
|
|
.elif ${ENTROPY_STORE_TYPE} != "monolithic"
|
2005-12-05 21:49:47 +01:00
|
|
|
PKG_FAIL_REASON+= "unknown ENTROPY_STORE_TYPE: "${ENTROPY_STORE_TYPE:Q}""
|
2004-03-29 20:40:43 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# maximum allowed peer connections (and child processes); default 64
|
2005-12-05 21:49:47 +01:00
|
|
|
.if defined(ENTROPY_MAX_PEERS)
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-max-peers=${ENTROPY_MAX_PEERS:Q}
|
2004-03-29 20:40:43 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|