1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/net/iaxmodem/Makefile
Raphael Kubo da Costa c801875fa4 Implement upstream fix where multiple net/iaxmodem instances are spawned.
Multiple instances of iaxmodem are being spawned due to a badly placed
closedir call. The fix has been submitted (and accepted) upstream, however
there has been no new release since the fix was submitted.

PR:		ports/176178
Submitted by:	John Bayly <freebsd.ports@tipstrade.net>
Approved by:	maintainer timeout (93 days)
2013-05-18 23:09:58 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Filippo Natali <filippo.natali@gmail.com>
# $FreeBSD$
PORTNAME= iaxmodem
PORTVERSION= 1.2.0
PORTREVISION= 3
CATEGORIES= net comms
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= stucchi@gufi.org
COMMENT= Software modem that connects to IAX channel
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
MAN1= iaxmodem.1
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
USE_RC_SUBR= iaxmodem
GNU_CONFIGURE= yes
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local/etc|${PREFIX}/etc|g" ${WRKSRC}/iaxmodem.1
@${REINPLACE_CMD} -e "s|/etc/iaxmodem|${PREFIX}/etc/iaxmodem|g" ${WRKSRC}/iaxmodem.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/iaxmodem ${PREFIX}/sbin/ && \
${MKDIR} ${PREFIX}/etc/iaxmodem && \
${MKDIR} /var/log/iaxmodem && \
${MKDIR} ${EXAMPLESDIR} && \
${INSTALL_DATA} ${WRKSRC}/config.ttyIAX ${EXAMPLESDIR}/ && \
${INSTALL_DATA} ${WRKSRC}/iaxmodem-cfg.ttyIAX ${EXAMPLESDIR}/
${INSTALL_MAN} ${WRKSRC}/iaxmodem.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} && \
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/TODO ${WRKSRC}/FAQ ${WRKSRC}/CHANGES ${DOCSDIR}
.endif
post-install:
.if !defined(BATCH)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>