diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2018-11-16 17:04:10 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2018-11-16 17:04:10 +0000 |
commit | 5b4dae68d7419c5fe26aae2a9fb9e9260a574d86 (patch) | |
tree | 5726fea8107396ece5d71fde79bac7d2457ddb54 | |
parent | security/tor-devel: Update 0.3.5.4 -> 0.3.5.5 (diff) |
- Add LICENSE_FILE
- Switch to USES=localbase
- Switch to options helpers
- Update WWW
-rw-r--r-- | irc/anope/Makefile | 60 | ||||
-rw-r--r-- | irc/anope/pkg-descr | 2 |
2 files changed, 27 insertions, 35 deletions
diff --git a/irc/anope/Makefile b/irc/anope/Makefile index ea7e72baf24d..fce99638af3b 100644 --- a/irc/anope/Makefile +++ b/irc/anope/Makefile @@ -3,18 +3,16 @@ PORTNAME= anope PORTVERSION= 2.0.5 -PORTREVISION= 0 CATEGORIES= irc MAINTAINER= ports@FreeBSD.org COMMENT= Set of IRC services for IRC networks LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/docs/COPYING -USES= cmake:outsource shebangfix -CMAKE_ARGS+= -DINSTDIR:STRING="${LOCALBASE}/anope" -CXXFLAGS+= "-I${LOCALBASE}/include" -LDFLAGS+= "-L${LOCALBASE}/lib" +USES= cmake:outsource localbase:ldflags shebangfix +CMAKE_ARGS= -DINSTDIR:STRING="${PREFIX}/anope" SHEBANG_FILES= ${WRKSRC}/src/tools/*.sh CFLAGS_amd64= -fPIC @@ -34,7 +32,7 @@ TRE_DESC= Tre Regex Module GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls -LDAP_VARS_ON= USE_OPENLDAP=yes +LDAP_USE= OPENLDAP=yes MYSQL_USES= mysql @@ -52,50 +50,44 @@ SQLITE_USES= sqlite TRE_LIB_DEPENDS= libtre.so:textproc/libtre -.include <bsd.port.options.mk> - -.include <bsd.port.pre.mk> - -post-patch: -.if ${PORT_OPTIONS:MGNUTLS} +post-patch-GNUTLS-on: ${LN} -s ${WRKSRC}/modules/extra/m_ssl_gnutls.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MLDAP} + +post-patch-LDAP-on: ${LN} -s ${WRKSRC}/modules/extra/m_ldap.cpp ${WRKSRC}/modules/ ${LN} -s ${WRKSRC}/modules/extra/m_ldap_authentication.cpp ${WRKSRC}/modules/ ${LN} -s ${WRKSRC}/modules/extra/m_ldap_oper.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MMYSQL} + +post-patch-MYSQL-on: ${LN} -s ${WRKSRC}/modules/extra/m_mysql.cpp ${WRKSRC}/modules/ ${LN} -s ${WRKSRC}/modules/extra/m_sql_authentication.cpp ${WRKSRC}/modules/ ${LN} -s ${WRKSRC}/modules/extra/m_sql_log.cpp ${WRKSRC}/modules/ ${LN} -s ${WRKSRC}/modules/extra/m_sql_oper.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MOPENSSL} + +post-patch-OPENSSL-on: ${LN} -s ${WRKSRC}/modules/extra/m_ssl_openssl.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MSQLITE} + +post-patch-SQLITE-on: ${LN} -s ${WRKSRC}/modules/extra/m_sqlite.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MPCRE} + +post-patch-PCRE-on: ${LN} -s ${WRKSRC}/modules/extra/m_regex_pcre.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MPOSIX} + +post-patch-POSIX-on: ${LN} -s ${WRKSRC}/modules/extra/m_regex_posix.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MSASL} + +post-patch-SASL-on: ${LN} -s ${WRKSRC}/modules/extra/m_sasl_dh-aes.cpp ${WRKSRC}/modules/ ${LN} -s ${WRKSRC}/modules/extra/m_sasl_dh-blowfish.cpp ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MSTATS} + +post-patch-STATS-on: ${LN} -s ${WRKSRC}/modules/extra/stats ${WRKSRC}/modules/ -.endif -.if ${PORT_OPTIONS:MTRE} + +post-patch-TRE-on: ${LN} -s ${WRKSRC}/modules/extra/m_regex_tre.cpp ${WRKSRC}/modules/ -.endif post-install: - ${MKDIR} ${STAGEDIR}/${LOCALBASE}/anope/data/backups - ${MKDIR} ${STAGEDIR}/${LOCALBASE}/anope/logs + @${MKDIR} ${STAGEDIR}${PREFIX}/anope/data/backups + @${MKDIR} ${STAGEDIR}${PREFIX}/anope/logs -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/irc/anope/pkg-descr b/irc/anope/pkg-descr index 76d3016e6dc9..f78b58c65be3 100644 --- a/irc/anope/pkg-descr +++ b/irc/anope/pkg-descr @@ -21,4 +21,4 @@ Anope currently works with: Anope could also work with some of the daemons derived by the ones listed above, but there's no support for them if they work or don't work. -WWW: http://www.anope.org/ +WWW: https://www.anope.org/ |