2013-03-26 12:36:21 +00:00
|
|
|
# Created by: Khamushkin Ilya <ilya@ircd.ru>
|
2003-08-07 13:14:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ircd-ru
|
|
|
|
PORTVERSION= 1.0.7
|
2010-04-19 10:43:42 +00:00
|
|
|
PORTREVISION= 6
|
2003-11-02 18:46:41 +00:00
|
|
|
CATEGORIES= irc russian
|
2010-01-20 14:08:30 +00:00
|
|
|
MASTER_SITES= http://link.wenet.su/
|
|
|
|
DISTNAME= ircd-RU-${PORTVERSION}-03-rc-20090810
|
2003-08-07 13:14:37 +00:00
|
|
|
|
2006-12-30 19:49:40 +00:00
|
|
|
MAINTAINER= bu7cher@yandex.ru
|
2003-08-07 13:14:37 +00:00
|
|
|
COMMENT= An irc daemon with translation schemes and other useful features
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-05-30 20:39:23 +00:00
|
|
|
SUB_FILES= pkg-message
|
2006-12-30 19:49:40 +00:00
|
|
|
USE_RC_SUBR= ircd
|
2010-01-20 14:08:30 +00:00
|
|
|
WRKSRC= ${WRKDIR}/ircd-RU-${PORTVERSION}-03-rc
|
2003-08-07 13:14:37 +00:00
|
|
|
|
2011-06-28 18:44:05 +00:00
|
|
|
USERS= ircd
|
|
|
|
GROUPS= ${USERS}
|
|
|
|
|
2005-04-09 18:34:27 +00:00
|
|
|
VARDIR= /var
|
|
|
|
PLIST_SUB= VARDIR=${VARDIR}
|
|
|
|
|
2013-03-26 12:36:21 +00:00
|
|
|
OPTIONS_DEFINE= WENET HUB ENCRYPTION SYSLOGFILE DRONEMODULE AUTHMODULE DNSBL SELECT DOCS
|
|
|
|
WENET_DESC= irc.wenet.ru specific options
|
|
|
|
HUB_DESC= hub support
|
|
|
|
ENCRYPTION_DESC= RC4 crypt (server to server connection)
|
|
|
|
SYSLOGFILE_DESC= log to file instead of syslog
|
|
|
|
DRONEMODULE_DESC= dronemodule support
|
|
|
|
AUTHMODULE_DESC= authmodule support
|
|
|
|
DNSBL_DESC= DNSBL support
|
|
|
|
SELECT_DESC= enable select I/O
|
2005-04-09 18:34:27 +00:00
|
|
|
|
2013-03-26 12:36:21 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2003-08-07 13:14:37 +00:00
|
|
|
|
|
|
|
# irc.wenet.ru specific options
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MWENET}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-wenet XFLAGS=-g
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable hub support
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MHUB}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-hub
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
2003-08-23 13:34:20 +00:00
|
|
|
# enable RC4 crypt (server to server connection)
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MENCRYPTION}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-encryption
|
2010-04-19 10:43:42 +00:00
|
|
|
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# log to file instead of syslog
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MSYSLOGFILE}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-syslogfile
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable dronemodule support
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MDRONEMODULE}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-dronemodule
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable authmodule support
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MAUTHMODULE}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-authmodule
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable DNSBL support
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MDNSBL}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-dnsbl
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable select I/O
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MSELECT}
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-select
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-09 18:34:27 +00:00
|
|
|
post-patch:
|
2013-03-26 12:36:21 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
2005-04-09 18:34:27 +00:00
|
|
|
@${REINPLACE_CMD} -Ee '/(dir_HPATH)|opers.txt/d' ${WRKSRC}/tools/install_ircd.in
|
|
|
|
.endif
|
|
|
|
|
2003-08-07 13:14:37 +00:00
|
|
|
pre-build:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "NOTE:"
|
|
|
|
@${ECHO_MSG} " Edit ${WRKSRC}/include/config.h for specific settings "
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
post-install:
|
2005-05-30 20:39:23 +00:00
|
|
|
@${CHOWN} -R ircd:ircd ${VARDIR}/log/ircd-ru
|
2005-04-09 18:34:27 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-08-07 13:14:37 +00:00
|
|
|
|
2013-03-26 12:36:21 +00:00
|
|
|
.include <bsd.port.mk>
|