# $NetBSD: Makefile,v 1.6 2003/06/02 01:21:23 jschauma Exp $ DISTNAME= efax-0.9 CATEGORIES= comms MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/serialcomm/fax/} MAINTAINER= tech-pkg@netbsd.org HOMEPAGE= http://www.cce.com/efax/ COMMENT= collection of small programs for sending and receiving faxes CONFLICTS= kdeutils-[0-9]* USE_BUILDLINK2= # defined post-patch: ${SED} -e 's:@PREFIX@:${PREFIX}:g; \ s:@LOCALBASE@:${LOCALBASE}:g; \ s:@SERIAL_DEVICE@:${DEFAULT_SERIAL_DEVICE:S,/dev/,,}:g' \ ${WRKSRC}/fax > ${WRKSRC}/fax.tmp ${MV} -f ${WRKSRC}/fax.1 ${WRKSRC}/fax.1.dist ${SED} -e 's:@PREFIX@:${PREFIX}:g; \ s:@SERIAL_DEVICE@:${DEFAULT_SERIAL_DEVICE:S,/dev/,,}:g' \ ${WRKSRC}/fax.1.dist > ${WRKSRC}/fax.1 # XXX We need to split the `fax' script into `efax.rc' and a smaller # `fax' script so that the user doesn't need to edit the script itself # to set important variables. ${HEAD} -n 5 ${WRKSRC}/fax.tmp > ${WRKSRC}/fax ${TAIL} -n 649 ${WRKSRC}/fax.tmp >> ${WRKSRC}/fax ${HEAD} -n 404 ${WRKSRC}/fax.tmp > ${WRKSRC}/efax.rc1 ${TAIL} -n 402 ${WRKSRC}/efax.rc1 > ${WRKSRC}/efax.rc post-install: ${INSTALL_DATA_DIR} /var/spool/efax ${CHMOD} 755 /var/spool/efax ${INSTALL_DATA_DIR} /var/log/efax ${CHMOD} 755 /var/log/efax .include "../../mk/bsd.pkg.mk"