aboutsummaryrefslogtreecommitdiffstats
path: root/net/siproxd/Makefile
blob: 832fbdf766148715736f03a6c7b08fd2684bbe37 (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
# Created by: Frank W. Josellis <frank@dynamical-systems.org>
# $FreeBSD$

PORTNAME=   siproxd
PORTVERSION=    0.7.2
PORTREVISION=   3
CATEGORIES= net
MASTER_SITES=   SF

MAINTAINER= frank@dynamical-systems.org
COMMENT=    Proxy/masquerading daemon for the SIP protocol

LICENSE=    GPLv2

LIB_DEPENDS=    libosip2.so:${PORTSDIR}/net/libosip

USES=       libtool:keepla
USE_RC_SUBR=    siproxd
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-doc --disable-static --with-libosip-prefix=${PREFIX}

PORTDOCS1=  AUTHORS ChangeLog README RELNOTES
PORTDOCS2=  FAQ KNOWN_BUGS RFC3261_compliance.txt \
        sample_cfg_budgetone.txt sample_cfg_x-lite.txt
PORTDOCS=   ${PORTDOCS1} ${PORTDOCS2}

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's,-lgnugetopt,,g ; 24600d ; 23998s,doc/Makefile ,,g' ${WRKSRC}/${CONFIGURE_SCRIPT}
    @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
    ${WRKSRC}/doc/siproxd.conf.example
    ${REINPLACE_CMD} -e '22s,doc ,,' ${WRKSRC}/Makefile.am
    ${REINPLACE_CMD} -e '212s,doc ,,' ${WRKSRC}/Makefile.in

post-extract:
.for docs in ${PORTDOCS2}
    ${CP} ${WRKSRC}/doc/${docs} ${WRKSRC}
.endfor

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docs in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor
    ${CP} ${WRKSRC}/doc/siproxd.conf.example ${STAGEDIR}${PREFIX}/etc
    ${CP} ${WRKSRC}/doc/siproxd_passwd.cfg ${STAGEDIR}${PREFIX}/etc
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/siproxd/plugin_defaulttarget.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/siproxd/plugin_demo.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/siproxd/plugin_fix_bogus_via.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/siproxd/plugin_logcall.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/siproxd/plugin_shortdial.so

.include <bsd.port.post.mk>