- Unbreak the build, sort the knobs, generally cleanup Makefile

- Convert pkg-plist into PLIST_FILES, PORTDOCS, and PORTEXAMPLES
- Sanitize installation procedure, improve files/pkg-message.in
- Reformat port description, point WWW to a more canonical URL
This commit is contained in:
Alexey Dokuchaev 2013-08-02 05:06:26 +00:00
parent 90dd978a7d
commit b6d2252ce2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324141
4 changed files with 39 additions and 45 deletions

View file

@ -10,38 +10,45 @@ 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
LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff
BROKEN= Does not build
USES= perl5
USE_PERL5= patch
HAS_CONFIGURE= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message
MAN1= iaxmodem.1
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
USE_RC_SUBR= iaxmodem
GNU_CONFIGURE= yes
PLIST_FILES= sbin/${PORTNAME}
PORTDOCS= CHANGES FAQ README
PORTEXAMPLES= config.ttyIAX iaxmodem-cfg.ttyIAX
MAN1= ${PORTNAME}.1
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
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
@${PERL} -0pi.bak -e "s|for ac_header in tgmath\.h.*?done||s" \
${WRKSRC}/lib/spandsp/configure
@${REINPLACE_CMD} -e "s|/etc/iaxmodem|${PREFIX}&|" \
${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_PROGRAM} ${WRKSRC}/iaxmodem ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/iaxmodem.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} && \
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/TODO ${WRKSRC}/FAQ ${WRKSRC}/CHANGES ${DOCSDIR}
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}
.endif
post-install:
.if !defined(BATCH)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
.endif
@${ECHO_MSG}
.include <bsd.port.mk>

View file

@ -1,15 +1,13 @@
To use iaxmodem with Hylafax:
To use IAXmodem with Hylafax:
- Install and configure Hylafax
- Take a look to %%EXAMPLESDIR%%/config.ttyIAX to configure the "virtual" modem
- Take a look at %%EXAMPLESDIR%%/config.ttyIAX on how to
configure the "virtual" modem
- For accepting incoming FAX/data calls, modify /etc/ttys as below
and send SIGHUP to init process:
- For accepting incoming FAX/data calls, modify /etc/ttys as shown
below and send SIGHUP to init process:
>ttyIAX "%%PREFIX%%/sbin/faxgetty" dialup on secure
ttyIAX "%%PREFIX%%/sbin/faxgetty" dialup on secure
Additional Documentation:
%%DOCSDIR%%
%%EXAMPLESDIR%%
http://www.voip-info.org/wiki/view/Asterisk+IAXmodem
Consult documentation for additional information.

View file

@ -1,6 +1,5 @@
IAXmodem is a software modem written in C that uses
an IAX channel (commonly provided by an Asterisk PBX
system) instead of a traditional phone line and uses
a DSP library instead of DSP hardware chipsets.
IAXmodem is a software modem written in C that uses an IAX channel (commonly
provided by an Asterisk PBX system) instead of a traditional phone line and
uses a DSP library instead of DSP hardware chipsets.
WWW: http://sourceforge.net/projects/iaxmodem
WWW: http://iaxmodem.sourceforge.net/

View file

@ -1,10 +0,0 @@
sbin/iaxmodem
%%EXAMPLESDIR%%/iaxmodem-cfg.ttyIAX
%%EXAMPLESDIR%%/config.ttyIAX
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/TODO
@dirrm etc/iaxmodem
@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%