2003-12-15 08:30:40 +00:00
|
|
|
# New ports collection makefile for: ircd-hybrid-ru
|
|
|
|
# Date Created: 2003.12.14
|
|
|
|
# Whom: Evgueni V. Gavrilov <aquatique@rusunix.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ircd
|
|
|
|
PORTVERSION= 7.1
|
2005-02-13 10:26:10 +00:00
|
|
|
PORTREVISION= 5
|
2003-12-15 08:30:40 +00:00
|
|
|
CATEGORIES= irc russian
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
2004-05-16 16:13:41 +00:00
|
|
|
ftp://rusunix.org/pub/FreeBSD/distfiles/
|
2003-12-15 08:30:40 +00:00
|
|
|
MASTER_SITE_SUBDIR= ircd-hybrid-ru
|
|
|
|
PKGNAMESUFFIX= -hybrid-ru
|
2005-02-13 10:26:10 +00:00
|
|
|
DISTNAME= ircd-hybrid-ru-7.0rc12
|
2003-12-15 08:30:40 +00:00
|
|
|
|
2004-04-16 07:47:21 +00:00
|
|
|
MAINTAINER= aquatique-ports@rambler.ru
|
2003-12-15 08:30:40 +00:00
|
|
|
COMMENT= Russian version of well known hybrid IRC server
|
|
|
|
|
2004-11-16 13:48:43 +00:00
|
|
|
CONFLICTS= ircd-hybrid-7* ircd-ru[0-9]*
|
2003-12-15 08:30:40 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_BISON= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-11-16 13:48:43 +00:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/ircd-hybrid-ru --enable-kqueue
|
2003-12-15 08:30:40 +00:00
|
|
|
|
2004-11-16 13:48:43 +00:00
|
|
|
MANCOMPRESSED= no
|
2003-12-15 08:30:40 +00:00
|
|
|
MAN8= ircd.8
|
|
|
|
|
2006-01-26 04:07:53 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
BROKEN= "Incorrect pkg-plist"
|
|
|
|
.endif
|
|
|
|
|
2003-12-15 08:30:40 +00:00
|
|
|
.if defined(WITH_SMALL_NET)
|
|
|
|
CONFIGURE_ARGS+=-enable-small-net
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NICKLENGTH)
|
|
|
|
CONFIGURE_ARGS+=--with-nicklen=${NICKLENGTH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(TOPICLENGTH)
|
|
|
|
CONFIGURE_ARGS+=--with-topiclen=${TOPICLENGTH}
|
|
|
|
.endif
|
|
|
|
|
2004-11-16 13:48:43 +00:00
|
|
|
.if defined(MAXCLIENTS)
|
|
|
|
CONFIGURE_ARGS+=--with-maxclients=${MAXCLIENTS}
|
2003-12-15 08:30:40 +00:00
|
|
|
.endif
|
|
|
|
|
2004-11-16 13:48:43 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,"-g,",; s,-O2 -g,-O,' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's,/modules/,/lib/ircd-hybrid-ru-modules/,' ${WRKSRC}/include/config.h
|
|
|
|
@${REINPLACE_CMD} -e 's,/etc,/etc/ircd-hybrid-ru,' ${WRKSRC}/include/config.h
|
|
|
|
@${REINPLACE_CMD} -e 's,IRCD_PREFIX "/logs","/var/log/ircd-hybrid-ru",' ${WRKSRC}/include/config.h
|
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
|
|
|
|
-e "s,/modules,/lib/ircd-hybrid-ru-modules,"
|
|
|
|
|
2003-12-15 08:30:40 +00:00
|
|
|
pre-extract:
|
|
|
|
@${ECHO_MSG} "* * * Build options for ircd-hybrid-ru * * *"
|
|
|
|
@${ECHO_MSG} "Issue make WITH_SMALL_NET=yes to build server optimized for small network"
|
|
|
|
@${ECHO_MSG} "You can define maximum nick length. For example make NICKLENGTH=46 (default is 30)"
|
|
|
|
@${ECHO_MSG} "You can define maximum topic length. For example make TOPICLENGTH=254 (default is 120; maximum is 390)"
|
2004-11-16 13:48:43 +00:00
|
|
|
@${ECHO_MSG} "You can define maximum number of connections for ircd. For example make MAXCLIENTS=512"
|
2003-12-15 08:30:40 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2004-11-16 13:48:43 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,ircd/etc/codepage,etc/ircd-hybrid-ru/codepage,' ${WRKSRC}/doc/example.conf
|
|
|
|
@${REINPLACE_CMD} -e 's,/ircd/modules,/lib/ircd-hybrid-ru-modules,' ${WRKSRC}/doc/example.conf
|
|
|
|
@${REINPLACE_CMD} -e 's,logs/,/var/log/ircd-hybrid-ru/,' ${WRKSRC}/doc/example.conf
|
2003-12-15 08:30:40 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_SCRIPT} -m 555 ${FILESDIR}/ircd-hybrid-ru.sh.sample ${PREFIX}/etc/rc.d
|
|
|
|
@${CHOWN} -R ircdru:ircdru ${PREFIX}/etc/ircd-hybrid-ru
|
|
|
|
@${CHOWN} -R ircdru:ircdru /var/log/ircd-hybrid-ru
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/RELNOTE* ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/server-version-info ${DOCSDIR}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|