aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ezbounce/Makefile
blob: 774b6c702c3022acc2334007442da3a01bc618d5 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# New ports collection makefile for:    ezbounce
# Date created:     19 February 1999
# Whom:         Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   ezbounce
PORTVERSION=    1.04.b
CATEGORIES= irc
MASTER_SITES=   http://druglord.freelsd.org/ezbounce/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.b/b/}

MAINTAINER= ab@astralblue.com
COMMENT=    A highly configurable IRC Proxy

GNU_CONFIGURE=  yes

MAN1=       ezbounce.1

.if !defined(WITH_MDIDENTD)
ALL_TARGET= ezbounce_src
PLIST_SUB+= MDIDENTD="@comment "
.else
PLIST_SUB+= MDIDENTD=""
.endif

.if defined(WITH_SSL)
USE_OPENSSL=    YES
CONFIGURE_ARGS+=    --with-ssl
PLIST_SUB+= SSL=""
.else
PLIST_SUB+= SSL="@comment "
.endif

pre-everything::
    @${ECHO} ""
    @${ECHO} "You may use the following build options:"
    @${ECHO} ""
    @${ECHO} "  WITH_SSL=yes      Enable SSL support"
    @${ECHO} "  WITH_MDIDENTD=yes Install the mdidentd binary to"
    @${ECHO} "                        modify ident replies"
    @${ECHO} ""

post-patch:
    @${SED} -e "s:/path/to:${PREFIX}/sbin:" ${WRKSRC}/sample.conf > \
        ${WRKSRC}/ezb.conf.default

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ezbounce ${PREFIX}/sbin
    ${INSTALL_SCRIPT} ${WRKSRC}/ezb.conf.default ${PREFIX}/etc
    ${INSTALL_MAN}  ${WRKSRC}/misc/ezbounce.1 ${PREFIX}/man/man1

.if defined(WITH_MDIDENTD)
    ${INSTALL_PROGRAM} ${WRKSRC}/mdidentd/mdidentd ${PREFIX}/sbin
.endif

    @if [ ! -f ${PREFIX}/etc/ezb.conf ]; then \
        ${INSTALL_DATA} \
        ${WRKSRC}/ezb.conf.default ${PREFIX}/etc/ezb.conf; \
    fi

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/worklog ${DOCSDIR}

.if defined(WITH_MDIDENTD)
    ${INSTALL_DATA} ${WRKSRC}/mdidentd/README \
        ${DOCSDIR}/mdidentd.README
.endif
.if defined(WITH_SSL)
    ${INSTALL_DATA} ${WRKSRC}/README.SSL ${DOCSDIR}
.endif

.endif
    @${SED} -e "s:/usr/local:${PREFIX}:g" ${PKGMESSAGE}

.include <bsd.port.mk>