blob: 05895ab75cc4c04fc1c28a063cd5a8d9fd51269b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Created by: Gerrit Beine <tux@pinguru.net>
# $FreeBSD$
PORTNAME= thales
PORTVERSION= 1.0
PORTREVISION= 3
CATEGORIES= irc
MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU Thales -- An IRC to MySQL gateway
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
USES= gmake shebangfix
SHEBANG_FILES= examples/MRTG/thalesinfo.pl
USE_MYSQL= yes
USE_RC_SUBR= thales
OPTIONS_DEFINE= MODES DOCS
OPTIONS_RADIO= IRCD
OPTIONS_RADIO_IRCD= HYBRID IRCDRU UNREAL
OPTIONS_DEFAULT=MODES UNREAL
MODES_DESC= Support modes in the database
HYBRID_DESC= Build for ircd-hybrid
IRCDRU_DESC= Build for ircd-ru
UNREAL_DESC= Build for unreal ircd
HYBRID_RUN_DEPENDS= ${LOCALBASE}/bin/ircd:irc/ircd-hybrid
IRCDRU_RUN_DEPENDS= ${LOCALBASE}/sbin/ircd:irc/ircd-ru
UNREAL_RUN_DEPENDS= ${LOCALBASE}/libexec/ircd:irc/unreal
# Currently, not all supported IRCDs are handled here, only the ones
# I could find corresponding RUN_DEPENDS in our Ports Collection.
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHYBRID}
_IRCD= hybrid
IS_INTERACTIVE= yes
.elif ${PORT_OPTIONS:MIRCDRU}
_IRCD= ircdru
IS_INTERACTIVE= yes
.else
_IRCD= unreal
.endif
# ``Assign with expansion'' is needed here, otherwise we cannot override
# WITH_IRCD value supplied as make(1) argument (which can be bogus).
CONFIGURE_ARGS:= --with-ircd=${_IRCD} \
--prefix=${PREFIX}/sbin/thales \
--with-mysql=${LOCALBASE} \
--with-mysql-libraries=${LOCALBASE}/lib/mysql
MODES_CONFIGURE_OFF= --enable-no-modes
post-patch: .SILENT
${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -r {} \;
${REINPLACE_CMD} -e 's,thales.conf,${PREFIX}/etc/&,' \
${WRKSRC}/src/conf.h
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/thales ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/data/thales.conf.default ${STAGEDIR}${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/data/*.sql ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/tools
${CP} -r ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
${CP} -r ${WRKSRC}/tools/* ${STAGEDIR}${DATADIR}/tools
.include <bsd.port.mk>
|