aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/msn-proxy/Makefile
blob: 3e61d36f7d9912fff139706627ba24a468d8695f (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
# New ports collection makefile for:    msn-proxy
# Date created:         20 January 2008
# Whom:             Luiz Otavio O Souza <loos.br@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   msn-proxy
PORTVERSION=    0.7
PORTREVISION=   2
CATEGORIES= net-im
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= loos.br@gmail.com
COMMENT=    Messenger proxy/control daemon

DEPRECATED= Primary MSN Messenger service terminated 30 APR 2013
EXPIRATION_DATE=2013-10-31

LIB_DEPENDS=    event-1.4:${PORTSDIR}/devel/libevent

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

DOCS=       INSTALL
MSNPROXYWWW=    js.inc.php lists.inc.php chat-to.php chat.php conf.php \
        default.array.cmd.inc.php default.array.option.inc.php \
        default.array.status.inc.php fl.inc.php group.inc.php \
        header.inc.php index.php save_contact_op.php save_default_op.php \
        save_msg.php save_user_op.php user.php view-to.php view.php \
        user.inc.php mysql.inc.php class.ctl.php .htaccess
MSNPROXYIMG=    ausente.gif block.gif notinlist.png ocupado.gif offline.gif \
        online.gif send_im.gif webcam.png

SUB_FILES=  pkg-message-mysql
WANT_PHP_WEB=   yes
USE_PHP=    mysql session sockets
USE_MYSQL=  yes
MAKE_ARGS=  SYSCONFDIR=$(DESTDIR)${PREFIX}/etc/msn-proxy \
        BINDIR=$(DESTDIR)${PREFIX}/bin

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/config.h

post-install:
    @${MKDIR} ${WWWDIR}
.for FILE in ${MSNPROXYWWW}
    @cd ${WRKSRC}/php && ${INSTALL} -m 644 ${FILE} ${WWWDIR}
.endfor
    @${MKDIR} ${WWWDIR}/imagens
.for FILE in ${MSNPROXYIMG}
    @cd ${WRKSRC}/php/imagens && ${INSTALL} -m 644 ${FILE} ${WWWDIR}/imagens
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>