mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
f834090870
Changes since 8.2.32: -- Noteworthy changes in version 8.2.33 (2020-09-07) o) Added 'client' option to listener::flags o) Added 'defer' option to listener::flags o) IRC operators may now use CIDR notation in "WHO" o) For a full list of all changes in this release, see https://git.io/JUZKO
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# Created by: David Taylor <davidt@yadt.co.uk>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ircd-hybrid
|
|
PORTVERSION= 8.2.33
|
|
CATEGORIES= irc
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= fox@FreeBSD.org
|
|
COMMENT= Fast irc daemon with a number of new features
|
|
|
|
LICENSE= GPLv2
|
|
|
|
# :keepla because port uses lt_dlopen
|
|
USES= cpe gmake libtool:keepla tar:tgz
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
LIB_DEPENDS+= libltdl.so:devel/libltdl
|
|
|
|
USERS= ircd
|
|
GROUPS= ${USERS}
|
|
|
|
USE_RC_SUBR= ircd-hybrid
|
|
SUB_FILES= pkg-message
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= ASSERT
|
|
OPTIONS_RADIO= TLS
|
|
OPTIONS_RADIO_TLS= GNUTLS OPENSSL WOLFSSL
|
|
OPTIONS_DEFAULT= OPENSSL
|
|
OPTIONS_SUB= yes
|
|
|
|
ASSERT_CONFIGURE_ENABLE= assert
|
|
ASSERT_DESC= Enable parts of the debugging code
|
|
|
|
OPENSSL_DESC= Enable openssl - allows use of CHALLENGE and encrypted links
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
INSTALL_IGNORES= charby* ircd-rat* ircu-*
|
|
|
|
CERTSFILE= ${LOCALBASE}/share/certs/ca-root-nss.crt
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
|
USES+= ssl
|
|
CONFIGURE_ARGS+= --with-tls=openssl
|
|
CONFIGURE_ENV+= libssl_CFLAGS="-I${OPENSSLINC}" \
|
|
libssl_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
|
|
.elif ${PORT_OPTIONS:MGNUTLS}
|
|
LIB_DEPENDS+= libgnutls.so:security/gnutls
|
|
CONFIGURE_ARGS+= --with-tls=gnutls
|
|
.elif ${PORT_OPTIONS:MWOLFSSL}
|
|
LIB_DEPENDS+= libwolfssl.so:security/wolfssl
|
|
CONFIGURE_ARGS+= --with-tls=wolfssl
|
|
.else
|
|
CONFIGURE_ARGS+= --with-tls=none
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGNUTLS} || ${PORT_OPTIONS:MOPENSSL} || ${PORT_OPTIONS:MWOLFSSL}
|
|
RUN_DEPENDS+= ${CERTSFILE}:security/ca_root_nss
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/${PORTNAME}-${PORTVERSION} \
|
|
--localstatedir=/var/${PORTNAME} \
|
|
--sysconfdir=${PREFIX}/etc/${PORTNAME}
|
|
|
|
post-install:
|
|
@${MV} ${STAGEDIR}${PREFIX}/bin/mkpasswd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-mkpasswd
|
|
|
|
.include <bsd.port.mk>
|