diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2004-01-07 11:04:11 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2004-01-07 11:04:11 +0000 |
commit | 2183f56f71383519da29afca3bd38b88344f9911 (patch) | |
tree | e1d63139ce921a2ef62f3052179c3d963d565bc4 /irc/ircd-hybrid/Makefile | |
parent | 59e84820b671d9c5d7973dea89529f8184cf80d7 (diff) | |
download | ports-2183f56f71383519da29afca3bd38b88344f9911.tar.gz ports-2183f56f71383519da29afca3bd38b88344f9911.zip |
Update to 7.0 adding lot's of new features.
*** IMPORTANT: ***
- The old config format WILL NOT WORK
- The old kline format WILL NOT WORK
Please read the INSTALL file for more information
PR: 60372
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=97566
Diffstat (limited to 'irc/ircd-hybrid/Makefile')
-rw-r--r-- | irc/ircd-hybrid/Makefile | 91 |
1 files changed, 67 insertions, 24 deletions
diff --git a/irc/ircd-hybrid/Makefile b/irc/ircd-hybrid/Makefile index ca4fad8a47d2..66fea632468f 100644 --- a/irc/ircd-hybrid/Makefile +++ b/irc/ircd-hybrid/Makefile @@ -6,8 +6,8 @@ # PORTNAME= ircd-hybrid -PORTVERSION= 6.3.1 -CATEGORIES= irc +PORTVERSION= 7.0 +CATEGORIES= irc ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ircd-hybrid EXTRACT_SUFX= .tgz @@ -19,36 +19,79 @@ MAN8= ircd.8 USE_GMAKE= yes GNU_CONFIGURE= yes +USE_REINPLACE= yes -CPIO?= /usr/bin/cpio --quiet -pdum -R +# +# User Configurable Variables +# +# PREFIX - Where to install ircd-hybrid. Default is /usr/local/ircd +# WITH_KQUEUE - Use kqueue(2) instead of poll(2). +# WITH_OPENSSL - Enable openssl. Allows use of CHALLENGE and encrypted links. +# WITH_IPV6 - Enable IPv6 Support. +# WITHOUT_SHARED_MODULES - Disable shared modules. More secure but reduces flexability. +# WITHOUT_ASSERT - Disable parts of the debugging code. +# WITH_SMALL_NET - Tunes the memory allocation for small networks. +# NICKLEN - Nick length. Default is 9. Must be consistant across the network. +# MAXCLIENTS - Set this to the maximum number of clients supported by this server. Default is 200 -.if !defined(PACKAGE_BUILDING) && !defined(BATCH) -IS_INTERACTIVE= yes +.if defined(PREFIX) +CONFIGURE_ARGS+= --prefix=${PREFIX} .endif -post-extract: - @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/include/config.h.in - @${MV} ${WRKSRC}/tools/install_ircd ${WRKSRC}/tools/install_ircd.in +.if defined(WITH_KQUEUE) +CONFIGURE_ARGS+= --enable-kqueue +.endif -post-configure: - ${CHMOD} +x ${WRKSRC}/tools/install_ircd +.if defined(WITH_OPENSSL) +USE_OPENSSL= yes +CONFIGURE_ARGS+= --enable-openssl=/usr/include/openssl +.endif -pre-install: -.if !defined(PACKAGE_BUILDING) && !defined(BATCH) - @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL +.if defined(WITH_IPV6) +CONFIGURE_ARGS+= --enable-ipv6 .endif +.if defined(WITHOUT_SHARED_MODULES) +CONFIGURE_ARGS+= --disable-shared-modules +PLIST_SUB+= SHAREDMODULES="@comment " +.else +PLIST_SUB+= SHAREDMODULES="" +.endif + +.if defined(WITHOUT_ASSERT) +CONFIGURE_ARGS+= --disable-assert +.endif + +.if defined(WITH_SMALL_NET) +CONFIGURE_ARGS+= --enable-small-net +.endif + +.if defined(NICKLEN) +CONFIGURE_ARGS+= --with-nicklen=${NICKLEN} +.endif + +.if defined(MAXCLIENTS) +CONFIGURE_ARGS+= --with-maxclients=${MAXCLIENTS} +.endif + +CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/ircd-hybrid +CONFIGURE_ARGS+= --moduledir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/modules +CONFIGURE_ARGS+= --automoduledir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/modules/autoload +CONFIGURE_ARGS+= --mandir=${PREFIX}/man +CONFIGURE_ARGS+= --uhelpdir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/help/users +CONFIGURE_ARGS+= --ohelpdir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/help/opers +CONFIGURE_ARGS+= --messagedir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/messages + +post-patch: + @${REINPLACE_CMD} -e "s#man8#man/man8#" ${WRKSRC}/doc/Makefile.in + +pre-install: + ${MKDIR} ${PREFIX}/etc/ircd-hybrid ${PREFIX}/share/${PORTNAME}-${PORTVERSION} + ${MKDIR} ${PREFIX}/share/${PORTNAME}-${PORTVERSION}/help/ + post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC}/doc && ${FIND} * -type f -print \ - | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} - @${CHMOD} -R ${SHAREMODE} ${DOCSDIR} - @${CHMOD} -R a+X ${DOCSDIR} -.endif - @${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/ircd.sh \ - > ${WRKDIR}/ircd.sh - @${INSTALL_SCRIPT} ${WRKDIR}/ircd.sh ${PREFIX}/etc/rc.d - @${SED} -e "s#/usr/local/#${PREFIX}/#" ${PKGMESSAGE} + @${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/ircd-hybrid.sh > ${WRKDIR}/ircd-hybrid.sh + @${INSTALL_SCRIPT} ${WRKDIR}/ircd-hybrid.sh ${LOCALBASE}/etc/rc.d + @${SED} -e "s#/usr/local/#${LOCALBASE}/#" ${PKGMESSAGE} .include <bsd.port.mk> |