2003-08-07 13:14:37 +00:00
|
|
|
# New ports collection makefile for: ircd-ru
|
|
|
|
# Date Created: 2003.07.11
|
|
|
|
# Whom: Khamushkin Ilya <ilya@ircd.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ircd-ru
|
|
|
|
PORTVERSION= 1.0.7
|
2006-12-30 19:49:40 +00:00
|
|
|
PORTREVISION= 4
|
2003-11-02 18:46:41 +00:00
|
|
|
CATEGORIES= irc russian
|
2006-12-30 19:49:40 +00:00
|
|
|
MASTER_SITES= http://muhnet.org.ru/ \
|
|
|
|
ftp://repoman.wenet.ru/pub/ircd-RU/
|
|
|
|
DISTNAME= ircd-RU-${PORTVERSION}-03-rc
|
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
|
2003-08-07 13:14:37 +00:00
|
|
|
|
2005-04-09 18:34:27 +00:00
|
|
|
VARDIR= /var
|
|
|
|
PLIST_SUB= VARDIR=${VARDIR}
|
|
|
|
|
|
|
|
OPTIONS= WENET "irc.wenet.ru specific options" off \
|
|
|
|
HUB "hub support" off \
|
|
|
|
ENCRYPTION "enable RC4 crypt (server to server connection)" off \
|
|
|
|
SYSLOGFILE "log to file instead of syslog" off \
|
|
|
|
DRONEMODULE "enable dronemodule support" off \
|
|
|
|
AUTHMODULE "enable authmodule support" off \
|
|
|
|
DNSBL "enable DNSBL support" off \
|
|
|
|
SELECT "enable select I/O" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-08-07 13:14:37 +00:00
|
|
|
|
|
|
|
# irc.wenet.ru specific options
|
|
|
|
.if defined(WITH_WENET)
|
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
|
|
|
|
.if defined(WITH_HUB)
|
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)
|
2003-08-07 13:14:37 +00:00
|
|
|
.if defined(WITH_ENCRYPTION)
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-encryption
|
2006-05-10 14:46:47 +00:00
|
|
|
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# log to file instead of syslog
|
|
|
|
.if defined(WITH_SYSLOGFILE)
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-syslogfile
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable dronemodule support
|
|
|
|
.if defined(WITH_DRONEMODULE)
|
2003-08-23 13:34:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-dronemodule
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable authmodule support
|
|
|
|
.if defined(WITH_AUTHMODULE)
|
|
|
|
CONFIGURE_ARGS+=--enable-authmodule
|
2003-08-07 13:14:37 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# enable DNSBL support
|
|
|
|
.if defined(WITH_DNSBL)
|
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
|
|
|
|
.if defined(WITH_SELECT)
|
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:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${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} ""
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
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
|
|
|
|
2004-03-19 11:56:38 +00:00
|
|
|
.include <bsd.port.post.mk>
|