blob: 4e38544b18a6e906fc32f06ea92ac87cf336b430 (
plain) (
blame)
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
|
# Created by: Meno Abels <meno.abels@adviser.com>
# $FreeBSD$
PORTNAME= aiccu
PORTVERSION= 20070115
PORTREVISION= 4
CATEGORIES= net ipv6
MASTER_SITES= http://www.sixxs.net/archive/sixxs/aiccu/unix/
PKGNAMEPREFIX= sixxs-
DISTNAME= aiccu_20070115
MAINTAINER= ports@FreeBSD.org
COMMENT= SixXS IPv6 TIC+ tunnel broker heartbeat client
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
USE_RC_SUBR= sixxs-aiccu
USES= gmake
CFLAGS+= -D_REENTRANT -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
MAKE_ARGS+= CC="${CC}" LDFLAGS="${LDFLAGS}"
WRKSRC= ${WRKDIR}/aiccu
BUILD_WRKSRC= ${WRKDIR}/aiccu/unix-console
PORTDOCS= README
OPTIONS_DEFINE= GNUTLS LOG_DAEMON DOCS
GNUTLS_DESC= Use gnutls to secure TIC supporting starttls
LOG_DAEMON_DESC=Log to LOG_DAEMON instead to LOG_LOCAL7
OPTIONS_DEFAULT+= GNUTLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= libgnutls-openssl.so:${PORTSDIR}/security/gnutls
CFLAGS+= -DAICCU_GNUTLS
LDFLAGS+= -lgnutls
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's:verbose true:verbose false:' \
-e 's:daemonize false:daemonize true:' \
-e 's:automatic false:automatic true:' \
-e 's:tunnel_id T2995:#tunnel_id TXXXX:' \
-e 's:ipv4_interface eth0:ipv4_interface sis0:' \
-e 's:ipv6_interface sixxs:ipv6_interface gif0:' \
${WRKSRC}/doc/aiccu.conf
.if ${PORT_OPTIONS:MLOG_DAEMON}
do-configure:
@${REINPLACE_CMD} \
-e 's:LOG_LOCAL7:LOG_DAEMON:' \
${WRKSRC}/common/common.c
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unix-console/aiccu ${STAGEDIR}${PREFIX}/sbin/sixxs-aiccu
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/aiccu.conf ${STAGEDIR}${PREFIX}/etc/aiccu.conf.sample
.include <bsd.port.mk>
|