2005-04-26 05:45:48 +00:00
|
|
|
# Ports collection makefile for: GNU Thales
|
|
|
|
# Date created: 30 May 2004
|
|
|
|
# Whom: Gerrit Beine <tux@pinguru.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= thales
|
|
|
|
PORTVERSION= 1.0
|
2011-03-19 13:15:34 +00:00
|
|
|
PORTREVISION= 2
|
2005-04-26 05:45:48 +00:00
|
|
|
CATEGORIES= irc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2006-04-15 11:47:42 +00:00
|
|
|
MAINTAINER= gerrit.beine@gmx.de
|
2005-04-26 05:45:48 +00:00
|
|
|
COMMENT= GNU Thales -- An IRC to MySQL gateway
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_MYSQL= yes
|
2005-11-29 22:44:49 +00:00
|
|
|
USE_RC_SUBR= thales.sh
|
2005-04-26 05:45:48 +00:00
|
|
|
|
|
|
|
# Currently, not all supported IRCDs are handled here, only the ones
|
2005-04-26 05:57:26 +00:00
|
|
|
# I could find corresponding RUN_DEPENDS in our Ports Collection.
|
2005-04-26 05:45:48 +00:00
|
|
|
.if defined(WITH_IRCD) && ${WITH_IRCD} == hybrid
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/ircd:${PORTSDIR}/irc/ircd-hybrid
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.elif defined(WITH_IRCD) && ${WITH_IRCD} == ircdru
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/ircd:${PORTSDIR}/irc/ircd-ru
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.else
|
|
|
|
WITH_IRCD= unreal
|
2005-04-28 09:26:16 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/ircd:${PORTSDIR}/irc/unreal
|
2005-04-26 05:45:48 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-26 05:57:26 +00:00
|
|
|
# ``Assign with expansion'' is needed here, otherwise we cannot override
|
|
|
|
# WITH_IRCD value supplied as make(1) argument (which can be bogus).
|
2005-11-29 22:44:49 +00:00
|
|
|
CONFIGURE_ARGS:= --with-ircd=${WITH_IRCD} \
|
|
|
|
--prefix=${PREFIX}/sbin/thales \
|
|
|
|
--with-mysql=${LOCALBASE} \
|
|
|
|
--with-mysql-libraries=${LOCALBASE}/lib/mysql
|
2005-04-26 05:45:48 +00:00
|
|
|
|
|
|
|
.if defined(WITHOUT_MODES)
|
|
|
|
CONFIGURE_ARGS+= --enable-no-modes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything:: .SILENT
|
|
|
|
${ECHO_CMD} ""
|
|
|
|
${ECHO_CMD} "You may specify the IRCD which thales is compiled for"
|
|
|
|
${ECHO_CMD} ""
|
|
|
|
${ECHO_CMD} " WITH_IRCD=foo"
|
|
|
|
${ECHO_CMD} ""
|
|
|
|
${ECHO_CMD} "The default value is \"unreal\". Other possible values are:"
|
|
|
|
${ECHO_CMD} " bahamut, hybrid, ircdru, unreal, ultimate28, ultimate30"
|
|
|
|
${ECHO_CMD} ""
|
|
|
|
${ECHO_CMD} "Additinal tunables:"
|
|
|
|
${ECHO_CMD} ""
|
|
|
|
${ECHO_CMD} " WITHOUT_MODES Disable modes in the database (default: on)"
|
|
|
|
${ECHO_CMD} ""
|
|
|
|
|
|
|
|
post-patch: .SILENT
|
|
|
|
${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -rf {} \;
|
|
|
|
${REINPLACE_CMD} -e 's,thales.conf,${PREFIX}/etc/&,' \
|
|
|
|
${WRKSRC}/src/conf.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
2005-11-29 22:44:49 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/thales ${PREFIX}/sbin
|
2005-04-26 05:45:48 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/thales.conf.default ${PREFIX}/etc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/*.sql ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR} ${DATADIR}/tools
|
|
|
|
${CP} -r ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
|
|
${CP} -r ${WRKSRC}/tools/* ${DATADIR}/tools
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|