blob: cb1dc3d55a6545b2de2a6e1e8427234d4d4be597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# ex:ts=8
# Ports collection makefile for: GNUnet
# Date created: Mar 23, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gnunet
PORTVERSION= 0.8.1b
PORTREVISION= 1
CATEGORIES= net-p2p ipv6
MASTER_SITES= GNU \
http://gnunet.org/download/
DISTNAME= GNUnet-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= An anonymous, distributed, reputation-based network
LIB_DEPENDS= adns.1:${PORTSDIR}/dns/adns \
cares.2:${PORTSDIR}/dns/c-ares \
curl.5:${PORTSDIR}/ftp/curl \
guile.20:${PORTSDIR}/lang/guile \
esmtp.6:${PORTSDIR}/mail/libesmtp \
gmp.8:${PORTSDIR}/math/libgmp4 \
gcrypt.16:${PORTSDIR}/security/libgcrypt \
extractor.2:${PORTSDIR}/textproc/libextractor \
microhttpd.6:${PORTSDIR}/www/libmicrohttpd
OPTIONS= MYSQL "Enable MySQL support" on \
PGSQL "Enable PostgreSQL support" off \
SQLITE "Enable SQLite support" off
USE_GNOME= gnomehack libglade2
USE_GETTEXT= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libltdl:22 libtool:22
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-dialog=no \
--with-cdialog=no \
--with-qt=no \
--with-daemon-home-dir=${DBDIR} \
--with-daemon-config-dir=${PREFIX}/etc
USE_LDCONFIG= yes
PLIST_SUB= DBDIR="${DBDIR}"
MAN1= gnunet-auto-share.1 gnunet-chat.1 gnunet-directory.1 \
gnunet-download.1 gnunet-insert.1 gnunet-peer-info.1 \
gnunet-pseudonym.1 gnunet-search.1 gnunet-setup.1 \
gnunet-stats.1 gnunet-tbench.1 gnunet-testbed.1 \
gnunet-tracekit.1 gnunet-transport-check.1 gnunet-unindex.1 \
gnunet-update.1 gnunet-vpn.1 gnunetd.1
MAN5= gnunet.conf.5 gnunetd.conf.5
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
DBDIR= /var/db/${PORTNAME}
.include <bsd.port.pre.mk>
.if defined(WITHOUT_MYSQL)
CONFIGURE_ARGS+= --without-mysql
PLIST_SUB+= MYSQL="@comment "
.else
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
PLIST_SUB+= MYSQL=""
.endif
.if defined(WITH_PGSQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
PLIST_SUB+= PGSQL=""
.else
CONFIGURE_ARGS+= --without-postgres
PLIST_SUB+= PGSQL="@comment "
.endif
.if defined(WITH_SQLITE)
USE_SQLITE= yes
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
PLIST_SUB+= SQLITE=""
.else
CONFIGURE_ARGS+= --without-sqlite
PLIST_SUB+= SQLITE="@comment "
.endif
post-patch:
.for i in configure src/applications/sqstore_postgres/postgres.c
@${REINPLACE_CMD} -e 's|postgresql/||g' ${WRKSRC}/${i}
.endfor
.for i in src/util/crypto/Makefile.in
@${REINPLACE_CMD} -e 's|)[[:space:]]-O3|)|g' ${WRKSRC}/${i}
.endfor
post-install:
@${MKDIR} ${DBDIR}
.for i in gnunet.conf gnunetd.conf
${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${PREFIX}/etc/${i}-dist
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in AUTHORS ChangeLog HACKING README UPDATING
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/*.cgi ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/*.sh ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|