Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / entropy / Makefile
blob88917a72bfd4f28cce29e76dfdf540be19259bf6
1 # $NetBSD: Makefile,v 1.28 2012/10/23 17:18:19 asau Exp $
4 DISTNAME= entropy_rsa-${ENTROPY_VERSION}
5 PKGNAME= entropy-${ENTROPY_VERSION:S/-/./}
6 PKGREVISION= 4
7 WRKSRC= ${WRKDIR}/entropy_rsa-${ENTROPY_VERSION:C/-.*$//}
8 CATEGORIES= net www
9 MASTER_SITES= http://entropy.stop1984.com/files/
10 EXTRACT_SUFX= .tgz
12 MAINTAINER= pkgsrc-users@NetBSD.org
13 HOMEPAGE= http://entropy.stop1984.com/
14 COMMENT= Anonymous peer-to-peer networking node (similar to Freenet)
16 GNU_CONFIGURE= yes
17 USE_TOOLS+= autoconf gmake
19 ENTROPY_VERSION= 0.9.1-439
21 CONFIGURE_ARGS+= --enable-setproctitle --enable-verbose --disable-posix-sem
22 LIBS+= -L${BUILDLINK_PREFIX.zlib}/lib -lz -L${BUILDLINK_PREFIX.expat}/lib -lexpat
24 INSTALLATION_DIRS= bin share/doc/entropy share/examples/entropy/de \
25 share/examples/entropy/node
27 post-patch:
28 ${SED} -e '/^# /!s/^#//' <${WRKSRC}/seed.txt-dist >${WRKSRC}/seed.txt
30 do-install:
31 ${INSTALL_PROGRAM} ${WRKSRC}/entropy_rsa ${DESTDIR}${PREFIX}/bin/entropy
32 ${INSTALL_PROGRAM} ${WRKSRC}/monoopt ${DESTDIR}${PREFIX}/bin/entropy-monoopt
33 ${INSTALL_PROGRAM} ${WRKSRC}/storechg ${DESTDIR}${PREFIX}/bin/entropy-storechg
34 ${INSTALL_DATA} ${WRKSRC}/[ERT]* ${DESTDIR}${PREFIX}/share/doc/entropy/
35 ${INSTALL_DATA} ${WRKSRC}/entropy_rsa.conf-dist ${DESTDIR}${PREFIX}/share/examples/entropy/entropy.conf
36 ${INSTALL_DATA} ${WRKSRC}/seed.txt ${DESTDIR}${PREFIX}/share/examples/entropy/
37 ${INSTALL_DATA} ${WRKSRC}/de/entropy_rsa.lo ${DESTDIR}${PREFIX}/share/examples/entropy/de/entropy.lo
38 ${INSTALL_DATA} ${WRKSRC}/node/[0-9a-z]* ${DESTDIR}${PREFIX}/share/examples/entropy/node/
40 .include "../../mk/bsd.prefs.mk"
42 # tree is most efficient on *ix; can also be "monolithic" or "mysql"
43 ENTROPY_STORE_TYPE?= tree
45 .if ${ENTROPY_STORE_TYPE} == "tree"
46 CONFIGURE_ARGS+= --with-tree
47 .elif ${ENTROPY_STORE_TYPE} == "mysql"
48 CONFIGURE_ARGS+= --with-mysql=${LOCALBASE:Q}
49 .include "../../mk/mysql.buildlink3.mk"
50 .elif ${ENTROPY_STORE_TYPE} != "monolithic"
51 PKG_FAIL_REASON+= "unknown ENTROPY_STORE_TYPE: "${ENTROPY_STORE_TYPE:Q}""
52 .endif
54 # maximum allowed peer connections (and child processes); default 64
55 .if defined(ENTROPY_MAX_PEERS)
56 CONFIGURE_ARGS+= --enable-max-peers=${ENTROPY_MAX_PEERS:Q}
57 .endif
59 .include "../../devel/zlib/buildlink3.mk"
60 .include "../../textproc/expat/buildlink3.mk"
61 .include "../../mk/bsd.pkg.mk"