ports/85031: [NEW PORT] net/astfax

Filippo Natali filippo.natali at gmail.com
Wed Aug 17 07:00:40 UTC 2005


>Number:         85031
>Category:       ports
>Synopsis:       [NEW PORT] net/astfax
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 17 07:00:37 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Filippo Natali
>Release:        FreeBSD 6.0-BETA2 amd64
>Organization:
Netwing 
>Environment:


System: FreeBSD 6.0-BETA2 #0: Fri Aug 12 10:52:32 CEST 2005
    root at ulby.hq.netwing.it:/usr/obj/usr/src/sys/GENERIC



>Description:


AstFax provides an outgoing email to fax gateway for the Asterisk PBX package.


>How-To-Repeat:





>Fix:


--- astfax.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	astfax
#	astfax/Makefile
#	astfax/distinfo
#	astfax/pkg-descr
#	astfax/pkg-plist
#
echo c - astfax
mkdir -p astfax > /dev/null 2>&1
echo x - astfax/Makefile
sed 's/^X//' >astfax/Makefile << 'END-of-astfax/Makefile'
X# New ports collection makefile for:   astfax
X# Date created:                 13 Aug 2005
X# Whom:				filippo.natali at gmail.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	astfax
XPORTVERSION=	1.0
XCATEGORIES=	net
XMASTER_SITES=	http://www.inter7.com/astfax/
X
XMAINTAINER=	filippo.natali at gmail.com
XCOMMENT=	AstFax provides an outgoing email to fax gateway for Asterisk
X
XLIB_DEPENDS=	spandsp.0:${PORTSDIR}/comms/spandsp
XBUILD_DEPENDS=	${LOCALBASE}/lib/libeps.a:${PORTSDIR}/mail/eps
XRUN_DEPENDS=	${LOCALBASE}/sbin/asterisk:${PORTSDIR}/net/asterisk
X
XPORTDOCS=	README testfax.eml testfax.tif
XUSE_REINPLACE=	yes
X
XMAKE_ENV+=	DEFS="${CFLAGS}"
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|^CC =|CC \?=|' \
X			  -e 's|^DEFS =|DEFS \?=|' \
X			  -e 's|\/usr\/include\/eps|${LOCALBASE}\/include|' \
X			  -e 's|^LIBS=-leps|LIBS=-leps -L${LOCALBASE}\/lib|' \
X		${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e 's|"\/tmp"|"\/var\/tmp"|' \
X			  -e 's|"\./ast_fax.call"|"${DATADIR}\/ast_fax.call"|' \
X		${WRKSRC}/ast_fax.c
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/ast_fax ${PREFIX}/bin
X	${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/ast_fax.call ${DATADIR}
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	for f in ${PORTDOCS}; do \
X		${INSTALL_DATA} ${WRKSRC}/$${f} ${DOCSDIR}; \
X	done
X.endif
X
X.include <bsd.port.mk>
END-of-astfax/Makefile
echo x - astfax/distinfo
sed 's/^X//' >astfax/distinfo << 'END-of-astfax/distinfo'
XMD5 (astfax-1.0.tar.gz) = 66e4ef4efc42b3b136bfa81b77552bf5
XSIZE (astfax-1.0.tar.gz) = 8664
END-of-astfax/distinfo
echo x - astfax/pkg-descr
sed 's/^X//' >astfax/pkg-descr << 'END-of-astfax/pkg-descr'
XAstFax provides an outgoing email to fax gateway for the Asterisk PBX package.
XIncoming fax to email can also be configured so your Asterisk server can act
Xas both an outgoing and incoming fax server.
X
XFeatures
X
X    * Written in C
X    * Processes large email messages quickly with the EPS library
X    * Easy to use, simply send an email to the fax number
X    * Configures easily with Asterisk, and most Unix-based MTAs 
X
XWWW: http://www.inter7.com/index.php?page=astfax
END-of-astfax/pkg-descr
echo x - astfax/pkg-plist
sed 's/^X//' >astfax/pkg-plist << 'END-of-astfax/pkg-plist'
Xbin/ast_fax
X%%DATADIR%%/ast_fax.call
X at dirrm %%DATADIR%%
END-of-astfax/pkg-plist
exit

--- astfax.shar ends here ---

Note: I've changed the temporary directory used by Astfax from /tmp to /var/tmp because rename(2), used to move files between temporary and asterisk spool dirs, doesn't cross filesystems. 



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list