1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/net-p2p/gnunet/Makefile
Kurt Jaeger cba03c03e1 security/libgcrypt: 1.6.1 -> 1.6.2, bump depends
Changes:
- src/sexp.c (do_vsexp_sscan): Return error for invalid args.
- cipher/md.c (_gcry_md_info): Fix a segv in case of calling
  with wrong parameters.
- cipher/primegen.c (_gcry_generate_elg_prime): Change to return an
  error code, possible NULL deref in call to prime generator.
- cipher/dsa.c (generate): Take care of new return code.
- cipher/elgamal.c (generate): Change to return an error code.  Take
	care of _gcry_generate_elg_prime return code.
- ecc: Support the non-standard 0x40 compression flag for EdDSA.
- mpi: Extend the internal mpi_get_buffer.
- mpi: Fix regression for powerpc-apple-darwin detection.
- Fix bug inhibiting the use of the sentinel attribute in src/gcrypt.h.in
- Fix building for the x32 target without asm modules in
  mpi/generic/mpi-asm-defs.h: Use a fixed value for the x32 ABI.
- Fix ARM assembly when building __PIC__
- mpi: Fix a subtle bug setting spurious bits with in mpi_set_bit.
  * mpi/mpi-bit.c (_gcry_mpi_set_bit, _gcry_mpi_set_highbit): Clear
    allocated but not used bits before resizing.
  * tests/t-mpi-bits.c (set_bit_with_resize): New.
- Use internal malloc function in fips.c.
  * src/fips.c (check_binary_integrity): s/gcry_malloc/xtrymalloc/.
- pubkey: Re-map all deprecated RSA algo numbers.
- cipher: Fix possible NULL dereference in cipher/md.c for being NULL.
- Fix ARMv6 detection when CFLAGS modify target CPU architecture.

PR:		193264
Approved by:	cpm@fbsd.es (maintainer)
2015-01-02 18:46:33 +00:00

117 lines
3.5 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= gnunet
PORTVERSION= 0.10.1
PORTREVISION= 1
CATEGORIES= net-p2p ipv6 security
MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= Anonymous, distributed, reputation-based network
LICENSE= GPLv3
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \
libopus.so:${PORTSDIR}/audio/opus \
libpulse.so:${PORTSDIR}/audio/pulseaudio \
libltdl.so:${PORTSDIR}/devel/libltdl \
libunistring.so:${PORTSDIR}/devel/libunistring \
libidn.so:${PORTSDIR}/dns/libidn \
libglpk.so:${PORTSDIR}/math/glpk \
libgmp.so:${PORTSDIR}/math/gmp \
libgnutls.so:${PORTSDIR}/security/gnutls \
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libextractor.so:${PORTSDIR}/textproc/libextractor
USES= gmake iconv libtool pathfix pkgconfig
USE_GNOME= glib20
USE_GSTREAMER1= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-silent-rules \
--with-extractor=${LOCALBASE} \
--with-gnutls=${LOCALBASE} \
--with-libgcrypt-prefix=${LOCALBASE} \
--with-libunistring-prefix=${LOCALBASE} \
--with-ltdl=${LOCALBASE} \
--with-nssdir=no
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GROUPS= gnunet
USERS= gnunet
SUB_FILES= pkg-install pkg-deinstall pkg-message
SUB_LIST= GNUNET_DAEMON_DIR="${GNUNET_DAEMON_DIR}"
PLIST_SUB= GNUNET_DAEMON_DIR="${GNUNET_DAEMON_DIR}"
OPTIONS_DEFINE= DOCS EXAMPLES HTTP NLS
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= SQLITE
OPTIONS_SUB= yes
HTTP_DESC= Enable HTTP transport via libmicrohttpd
HTTP_LIB_DEPENDS= libmicrohttpd.so:${PORTSDIR}/www/libmicrohttpd
HTTP_CONFIGURE_ON= --with-microhttpd=${LOCALBASE}
HTTP_CONFIGURE_OFF= --without-microhttpd
MYSQL_DESC= Use MySQL for the data store and cache
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}
MYSQL_CONFIGURE_OFF= --without-mysql
NLS_USES= gettext
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE}
NLS_CONFIGURE_OFF= --disable-nls
PGSQL_DESC= Use PostgreSQL for the data store and cache
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-postgres=${LOCALBASE}
PGSQL_CONFIGURE_OFF= --without-postgres
SQLITE_DESC= Use SQLite for the data store and cache
SQLITE_USE= sqlite=yes
SQLITE_CONFIGURE_ON= --with-sqlite=${LOCALBASE}
SQLITE_CONFIGURE_OFF= --without-sqlite
#If a non-default GNUNET_DAEMON_DIR is defined, the home directory
#of the gnunet user may need to be adjusted -- e.g., via:
#pw usermod gnunet -d $GNUNET_DAEMON_DIR
GNUNET_DAEMON_DIR?= /var/lib/gnunet
post-patch:
@${REINPLACE_CMD} -e \
'/^install-data-am/s|install-docDATA||' ${WRKSRC}/Makefile.in
.for i in configure gnunet_config.h \
src/datacache/plugin_datacache_postgres.c \
src/datastore/plugin_datastore_postgres.c \
src/include/gnunet_postgres_lib.h
@${REINPLACE_CMD} -e \
's|postgresql/||g' ${WRKSRC}/${i}
.endfor
post-build:
@${PRINTF} "%s\n%s\n%s\n" "[PATHS]" \
"SERVICEHOME = ${GNUNET_DAEMON_DIR}" \
"DEFAULTCONFIG = ${PREFIX}/etc/gnunet.conf" \
> ${WRKDIR}/gnunet.conf.sample
post-install:
(cd ${WRKSRC}/contrib && ${INSTALL_PROGRAM} timeout_watchdog \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKDIR} && ${INSTALL_DATA} gnunet.conf.sample \
${STAGEDIR}${PREFIX}/etc)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DOCSDIR})
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in gnunet_janitor.py gnunet_pyexpect.py report.sh
(cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${i} \
${STAGEDIR}${EXAMPLESDIR})
.endfor
.include <bsd.port.mk>