diff options
Diffstat (limited to 'net-im/ejabberd/Makefile')
-rw-r--r-- | net-im/ejabberd/Makefile | 122 |
1 files changed, 104 insertions, 18 deletions
diff --git a/net-im/ejabberd/Makefile b/net-im/ejabberd/Makefile index 1c418132f0b4..3d0994a550e8 100644 --- a/net-im/ejabberd/Makefile +++ b/net-im/ejabberd/Makefile @@ -1,12 +1,8 @@ # $FreeBSD$ PORTNAME= ejabberd -PORTVERSION= 18.03 +PORTVERSION= 18.04 CATEGORIES= net-im -MASTER_SITES= http://www.process-one.net/downloads/${PORTNAME}/${PORTVERSION}/:p1 \ - http://distfiles.pirateparty.in/ashish/:deps \ - LOCAL/ashish:deps -DISTFILES+= ${DISTNAME}.tgz:p1 ejabberd-deps-18.tar.xz:deps MAINTAINER= ashish@FreeBSD.org COMMENT= Free and Open Source distributed fault-tolerant Jabber server @@ -14,8 +10,7 @@ COMMENT= Free and Open Source distributed fault-tolerant Jabber server LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= erlc:lang/erlang \ - git:devel/git +BUILD_DEPENDS= erlc:lang/erlang RUN_DEPENDS= erl:lang/erlang LIB_DEPENDS= libexpat.so:textproc/expat2 \ libyaml.so:textproc/libyaml \ @@ -27,11 +22,28 @@ USERS= ejabberd GROUPS= ${USERS} GNU_CONFIGURE= yes -USES= cpe gmake pkgconfig shebangfix ssl jpeg +USES= cpe gmake pkgconfig shebangfix ssl jpeg autoreconf:build USE_RC_SUBR= ${PORTNAME} NOPRECIOUSMAKEVARS= yes CPE_VENDOR= process-one +USE_GITHUB= yes +GH_ACCOUNT= processone +GH_TUPLE= erlang-lager:lager:${LAGER_VER}:lager/deps/lager \ + processone:p1_utils:${P1_UTILS_VER}:p1_utils/deps/p1_utils \ + processone:cache_tab:${CACHE_TAB_VER}:cache_tab/deps/cache_tab \ + processone:fast_tls:${FAST_TLS_VER}:fast_tls/deps/fast_tls \ + processone:stringprep:${STRINGPREP_VER}:stringprep/deps/stringprep \ + processone:fast_xml:${FAST_XML_VER}:fast_xml/deps/fast_xml \ + processone:xmpp:${XMPP_VER}:xmpp/deps/xmpp \ + processone:fast_yaml:${FAST_YAML_VER}:fast_yaml/deps/fast_yaml \ + davisp:jiffy:${JIFFY_VER}:jiffy/deps/jiffy \ + processone:p1_oauth2:${P1_OAUTH2_VER}:p1_oauth2/deps/p1_oauth2 \ + potatosalad:erlang-jose:${JOSE_VER}:jose/deps/jose \ + processone:eimp:${EIMP_VER}:eimp/deps/eimp \ + DeadZen:goldrush:${GOLDRUSH_VER}:goldrush/deps/goldrush \ + dvv:base64url:f2c64ed8:base64url/deps/base64url + OPTIONS_DEFINE= ODBC PAM DOCS MYSQL PGSQL ICONV RIAK ZLIB REDIS SIP SQLITE \ STUN TOOLS FULLXML OPTIONS_DEFAULT= ICONV @@ -43,15 +55,69 @@ MAKE_ARGS= "CPPFLAGS=${CPPFLAGS}" "CFLAGS=${CFLAGS}" "LDFLAGS=${LDFLAGS}" CPPFLAGS+= -I${LOCALBASE}/include CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -PLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \ - EJABBERD_LIBDIR=${EJABBERD_LIBDIR} +SUBS= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \ + EJABBERD_LIBDIR=${EJABBERD_LIBDIR} \ + BASE64URL_VER=${BASE64URL_VER} \ + CACHE_TAB_VER=${CACHE_TAB_VER} EIMP_VER=${EIMP_VER} \ + EPAM_VER=${EPAM_VER} EREDIS_VER=${EREDIS_VER} \ + ESIP_VER=${ESIP_VER} EZLIB_VER=${EZLIB_VER} \ + FAST_TLS_VER=${FAST_TLS_VER} \ + FAST_XML_VER=${FAST_XML_VER} \ + FAST_YAML_VER=${FAST_YAML_VER} \ + GOLDRUSH_VER=${GOLDRUSH_VER} \ + HAMCREST_VER=${HAMCREST_VER} ICONV_VER=${ICONV_VER} \ + JIFFY_VER=${JIFFY_VER} JOSE_VER=${JOSE_VER} \ + LAGER_VER=${LAGER_VER} LUERL_VER=${LUERL_VER} \ + MECK_VER=${MECK_VER} MOKA_VER=${MOKA_VER} \ + P1_MYSQL_VER=${P1_MYSQL_VER} \ + P1_OAUTH2_VER=${P1_OAUTH2_VER} \ + P1_PGSQL_VER=${P1_PGSQL_VER} \ + P1_UTILS_VER=${P1_UTILS_VER} \ + RIAK_PB_VER=${RIAK_PB_VER} RIAKC_VER=${RIAKC_VER} \ + SAMERLIB_VER=${SAMERLIB_VER} \ + SQLITE3_VER=${SQLITE3_VER} \ + STRINGPREP_VER=${STRINGPREP_VER} STUN_VER=${STUN_VER} \ + XMPP_VER=${XMPP_VER} + SUB_FILES= pkg-message pkg-install -SUB_LIST= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \ +PLIST_SUB= ${SUBS} +SUB_LIST= ${SUBS} \ USERS=${USERS} GROUPS=${GROUPS} SHAREMODE=${SHAREMODE} \ SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} \ EJABBERD_LIBDIR=${EJABBERD_LIBDIR} SHEBANG_FILES= ${WRKSRC}/ejabberdctl.template +BASE64URL_VER= 0.0.1 +CACHE_TAB_VER= 1.0.13 +EIMP_VER= 1.0.5 +EPAM_VER= 1.0.4 +EREDIS_VER= 1.0.8 +ESIP_VER= 1.0.23 +EZLIB_VER= 1.0.4 +FAST_TLS_VER= 1.0.22 +FAST_XML_VER= 1.1.30 +FAST_YAML_VER= 1.0.14 +GOLDRUSH_VER= 0.1.9 +HAMCREST_VER= 0.4.1 +ICONV_VER= 1.0.7 +JIFFY_VER= 0.14.8 +JOSE_VER= 1.8.4 +LAGER_VER= 3.4.2 +LUERL_VER= 0.3 +MECK_VER= 0.8.4 +MOKA_VER= 1.0.5c +P1_MYSQL_VER= 1.0.5 +P1_OAUTH2_VER= 0.6.3 +P1_PGSQL_VER= 1.1.5 +P1_UTILS_VER= 1.0.11 +RIAK_PB_VER= 2.3.2 +RIAKC_VER= 2.5.3 +SAMERLIB_VER= 0.8.0c +SQLITE3_VER= 1.1.6 +STRINGPREP_VER= 1.0.11 +STUN_VER= 1.0.22 +XMPP_VER= 1.1.21 + OPTIONS_SUB= yes RIAK_DESC= Riak database support SIP_DESC= SIP support @@ -59,30 +125,50 @@ STUN_DESC= STUN/TURN support TOOLS_DESC= Build development tools FULLXML_DESC= Full XML support PAM_CONFIGURE_ENABLE= pam +PAM_GH_TUPLE= processone:epam:${EPAM_VER}:epam/deps/epam ODBC_CONFIGURE_ENABLE= odbc MYSQL_CONFIGURE_ENABLE= mysql +MYSQL_GH_TUPLE= processone:p1_mysql:${P1_MYSQL_VER}:p1_mysql/deps/p1_mysql PGSQL_CONFIGURE_ENABLE= pgsql +PGSQL_GH_TUPLE= processone:p1_pgsql:${P1_PGSQL_VER}:p1_pgsql/deps/p1_pgsql RIAK_CONFIGURE_ENABLE= riak +RIAK_GH_TUPLE= processone:riak-erlang-client:${RIAKC_VER}:riakc/deps/riakc \ + basho:riak_pb:${RIAK_PB_VER}:riak_pb/deps/riak_pb \ + basho:hamcrest-erlang:${HAMCREST_VER}:hamcrest/deps/hamcrest ICONV_CONFIGURE_ENABLE= iconv +ICONV_GH_TUPLE= processone:iconv:${ICONV_VER}:iconv/deps/iconv REDIS_CONFIGURE_ENABLE= redis +REDIS_GH_TUPLE= wooga:eredis:v${EREDIS_VER}:eredis/deps/eredis SIP_CONFIGURE_ENABLE= sip +SIP_GH_TUPLE= processone:esip:${ESIP_VER}:esip/deps/esip STUN_CONFIGURE_ENABLE= stun +STUN_GH_TUPLE= processone:stun:${STUN_VER}:stun/deps/stun SQLITE_CONFIGURE_ENABLE=sqlite +SQLITE_GH_TUPLE= processone:erlang-sqlite3:${SQLITE3_VER}:sqlite3/deps/sqlite3 TOOLS_CONFIGURE_ENABLE= tools +TOOLS_GH_TUPLE= rvirding:luerl:v${LUERL_VER}:luerl/deps/luerl \ + eproxus:meck:${MECK_VER}:meck/deps/meck \ + processone:moka:${MOKA_VER}:moka/deps/moka \ + processone:samerlib:${SAMERLIB_VER}:samerlib/deps/samerlib FULLXML_CONFIGURE_ENABLE= full-xml ZLIB_CONFIGURE_ENABLE= zlib +ZLIB_GH_TUPLE= processone:ezlib:${EZLIB_VER}:ezlib/deps/ezlib SQLITE_USES= sqlite ICONV_USES= iconv:wchar_t ICONV_LDFLAGS= ${ICONV_LIB} DOCS_MAKE_ARGS_OFF= NOPORTDOCS=yes -post-extract: - @${LN} -s ${WRKDIR}/deps ${WRKSRC}/ - post-patch: @${REINPLACE_CMD} -e 's,^convert,${LOCALBASE}/bin/convert,' ${WRKSRC}/tools/captcha.sh + @${REINPLACE_CMD} -e 's,%%PORTVERSION%%,${PORTVERSION},' ${WRKSRC}/configure.ac + @${REINPLACE_CMD} -e '/vsn/s/git/"${JIFFY_VER}"/' ${WRKSRC}/deps/jiffy/src/jiffy.app.src + +post-patch-RIAK-on: + @${REINPLACE_CMD} -e '/vsn/s/git/"${RIAK_PB_VER}"/' ${WRKSRC}/deps/riak_pb/src/riak_pb.app.src + @${REINPLACE_CMD} -e '/vsn/s/git/"${RIAKC_VER}"/' ${WRKSRC}/deps/riakc/src/riakc.app.src pre-configure: + cd ${WRKSRC} && ${SH} autogen.sh @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ ${WRKSRC}/ejabberdctl.template @@ -93,9 +179,9 @@ pre-install: post-install-PAM-on: ${INSTALL} -m 444 ${FILESDIR}/pam_ejabberd \ ${STAGEDIR}${PREFIX}/etc/pam.d/ejabberd - ${INSTALL} -m 0750 ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/epam-1.0.4/priv/bin/epam \ + ${INSTALL} -m 0750 ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/epam-${EPAM_VER}/priv/bin/epam \ ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/epam - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/epam-1.0.4/priv/bin/epam \ + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/epam-${EPAM_VER}/priv/bin/epam \ ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/epam post-install: @@ -105,7 +191,7 @@ post-install: ${INSTALL_SCRIPT} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/captcha.sh \ ${STAGEDIR}${DATADIR} @${REINPLACE_CMD} -r -e '/captcha_cmd:/s,"[^"]+","${DATADIR}/captcha.sh",' ${STAGEDIR}${ETCDIR}/${PORTNAME}.yml.example - @${CHMOD} +x ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-1.0.3/priv/bin/eimp - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-1.0.3/priv/bin/eimp + @${CHMOD} +x ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-${EIMP_VER}/priv/bin/eimp + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-${EIMP_VER}/priv/bin/eimp .include <bsd.port.mk> |