summaryrefslogtreecommitdiff
path: root/comms/efax/Makefile
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-05-21 22:26:59 +0000
committerjtb <jtb@pkgsrc.org>2001-05-21 22:26:59 +0000
commit3f8819788317565daab4ad3c619293136777ea6c (patch)
tree4121c62bd85c31d134018cc252947631372bfa67 /comms/efax/Makefile
parente734091698bfa96bb6e72ec837152edaf506a659 (diff)
downloadpkgsrc-3f8819788317565daab4ad3c619293136777ea6c.tar.gz
Initial import of efax.
efax is a small ANSI C/POSIX program that sends and receives faxes using any fax modem (Class 1, 2 or 2.0). efax is smaller and easier to install than HylaFAX or mgetty+sendfax. As one user put it ``EFAX is a nice simple program for single user systems.'' The ``fax'' command, a shell script, lets you send, receive, view and print faxes. In larger systems, faxes can be sent by printing to a ``fax'' printer and received faxes can be e-mailed as MIME attachments to an administrator for distribution. efax can also pass incoming data calls to a getty program. The efax package includes ``efix,'' a program to convert between various image file formats. To fax Postscript files you will need Ghostscript. To view faxes you can use any program that displays PGM files. efix can convert received files to Postscript or HP Laserjet formats for printing. efax is distributed under the terms of the GNU General Public License.
Diffstat (limited to 'comms/efax/Makefile')
-rw-r--r--comms/efax/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/comms/efax/Makefile b/comms/efax/Makefile
new file mode 100644
index 00000000000..4e7e443d735
--- /dev/null
+++ b/comms/efax/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/21 22:26:59 jtb Exp $
+
+DISTNAME= efax-0.9
+CATEGORIES= comms
+MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/serialcomm/fax/}
+
+MAINTAINER= packages@netbsd.org
+COMMENT= set of small programs for sending and receiving faxes
+
+.include "../../mk/bsd.prefs.mk"
+
+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"