mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
4ee12cf6b4
- Add INSTALL_TARGET=install-strip - Use @sample
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Frank W. Josellis <frank@dynamical-systems.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= siproxd
|
|
PORTVERSION= 0.7.2
|
|
PORTREVISION= 4
|
|
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/libosip2
|
|
|
|
# :keepla because port uses lt_dlopen
|
|
USES= libtool:keepla
|
|
USE_RC_SUBR= siproxd
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-doc --disable-static --with-libosip-prefix=${PREFIX}
|
|
INSTALL_TARGET= install-strip
|
|
|
|
PORTDOCS1= AUTHORS ChangeLog README RELNOTES
|
|
PORTDOCS2= FAQ KNOWN_BUGS RFC3261_compliance.txt \
|
|
sample_cfg_budgetone.txt sample_cfg_x-lite.txt
|
|
PORTDOCS= ${PORTDOCS1} ${PORTDOCS2}
|
|
|
|
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
|
|
${INSTALL_DATA} ${WRKSRC}/doc/siproxd.conf.example \
|
|
${STAGEDIR}${PREFIX}/etc/siproxd.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/doc/siproxd_passwd.cfg \
|
|
${STAGEDIR}${PREFIX}/etc/siproxd_passwd.cfg.sample
|
|
|
|
.include <bsd.port.mk>
|