aboutsummaryrefslogtreecommitdiffstats
path: root/irc/srvx/Makefile
blob: a095f61caa22738b3230d5acd1283bb43a969fba (plain) (blame)
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
# New ports collection makefile for:    srvx
# Date created:             2003-11-28
# Whom:                 Walter Venable <weaseal@hotmail.com>
#
# $FreeBSD$
#

PORTNAME=   srvx
PORTVERSION=    1.3.1
CATEGORIES= irc net
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    A set of services for ircu P10 protocol networks

OPTIONS_DEFINE= PROTOCOL_BAHAMUT DEBUG
OPTIONS_DEFAULT=    PROTOCOL_BAHAMUT
PROTOCOL_BAHAMUT_DESC=  Enables Bahamut protocol (P10 is default)

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-getopt

SUB_FILES=  pkg-message

PORTDOCS=   chanserv.help       \
        global.help         \
        mod-helpserv.help   \
        mod-memoserv.help   \
        mod-sockcheck.help  \
        modcmd.help         \
        nickserv.help       \
        opserv.help         \
        saxdb.help      \
        sendmail.help
PLIST_FILES=    bin/srvx            \
        etc/srvx.conf.example       \
        etc/sockcheck.conf.example

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=    --enable-debug
.endif

.if ${PORT_OPTIONS:MPROTOCOL_BAHAMUT}
CONFIGURE_ARGS+=    --with-protocol=bahamut
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|= "srvx.conf"|= "${PREFIX}/etc/srx.conf"|g' \
        ${WRKSRC}/src/main.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/srvx ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/*.conf.example ${PREFIX}/etc
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/src/*.help ${DOCSDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>