summaryrefslogtreecommitdiff
path: root/net/entropy/Makefile
diff options
context:
space:
mode:
authortv <tv>2004-03-29 18:40:43 +0000
committertv <tv>2004-03-29 18:40:43 +0000
commitd5f6108fcdb92fd5e128f6c82f59a02fab7b60e3 (patch)
tree690225bdf9f1756a461c4920e4455872492591fd /net/entropy/Makefile
parentffc1233bb3b6ec0c984463c6dbda3b8a4dfda334 (diff)
downloadpkgsrc-d5f6108fcdb92fd5e128f6c82f59a02fab7b60e3.tar.gz
Entropy, a P2P anonymity network much like Freenet, but written in C.
From the DESCR: ===== ENTROPY is developed as a response to increasing censorship and surveillance in the internet. The program connects your computer to a network of machines which all run this software. The ENTROPY network is running parallel to the WWW and also other internet services like FTP, email, ICQ. etc. For the user the ENTROPY network looks like a collection of WWW pages. The difference to the WWW however is that there are no accesses to central servers. And this is why there is no site operator who could log who downloaded what and when. Every computer taking part in the ENTROPY network (every node) is at the same time server, router for other nodes, caching proxy and client for the user: that is You.
Diffstat (limited to 'net/entropy/Makefile')
-rw-r--r--net/entropy/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/net/entropy/Makefile b/net/entropy/Makefile
new file mode 100644
index 00000000000..9ad8c4237c3
--- /dev/null
+++ b/net/entropy/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/03/29 18:40:43 tv Exp $
+#
+
+DISTNAME= entropy-${ENTROPY_VERSION}
+PKGNAME= entropy-${ENTROPY_VERSION:S/-/./}
+WRKSRC= ${WRKDIR}/entropy-${ENTROPY_VERSION:C/-.*$//}
+CATEGORIES= net
+MASTER_SITES= http://entropy.stop1984.com/files/ \
+ http://www.duh.org/entropy/files/
+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
+
+ENTROPY_VERSION= 0.8.2-415
+
+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}
+.include "../../databases/mysql-client/buildlink2.mk"
+.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"