From d777a5be1f911b74aec179fe26bd1342a7dfd3a1 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Fri, 11 Nov 2016 09:00:13 +0000 Subject: - Switch to options helpers --- net/sixxs-aiccu/Makefile | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/net/sixxs-aiccu/Makefile b/net/sixxs-aiccu/Makefile index a06af23d5600..eb05cad5f229 100644 --- a/net/sixxs-aiccu/Makefile +++ b/net/sixxs-aiccu/Makefile @@ -15,29 +15,26 @@ COMMENT= SixXS IPv6 TIC+ tunnel broker heartbeat client LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/doc/LICENSE +WRKSRC= ${WRKDIR}/aiccu +BUILD_WRKSRC= ${WRKDIR}/aiccu/unix-console + USE_RC_SUBR= sixxs-aiccu USES= gmake - +MAKE_ARGS= CC="${CC}" LDFLAGS="${LDFLAGS}" 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 +OPTIONS_DEFAULT= GNUTLS + GNUTLS_DESC= Use gnutls to secure TIC supporting starttls LOG_DAEMON_DESC=Log to LOG_DAEMON instead to LOG_LOCAL7 -OPTIONS_DEFAULT+= GNUTLS - -.include - -.if ${PORT_OPTIONS:MGNUTLS} -LIB_DEPENDS+= libgnutls.so:security/gnutls -CFLAGS+= -DAICCU_GNUTLS -LDFLAGS+= -lgnutls -.endif +GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls +GNUTLS_CFLAGS= -DAICCU_GNUTLS +GNUTLS_LDFLAGS= -lgnutls post-patch: @${REINPLACE_CMD} \ @@ -49,17 +46,17 @@ post-patch: -e 's:ipv6_interface sixxs:ipv6_interface gif0:' \ ${WRKSRC}/doc/aiccu.conf -.if ${PORT_OPTIONS:MLOG_DAEMON} -do-configure: +post-patch-LOG_DAEMON-on: @${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 +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/README ${STAGEDIR}${DOCSDIR} + .include -- cgit